You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
-Changed most project settings in the engine, so they have major and minor categories.
-Changed SectionedPropertyEditor to support this -Renamed Globals singleton to GlobalConfig, makes more sense. -Changed the logic behind persisten global settings, instead of the persist checkbox, a revert button is now available
This commit is contained in:
@@ -2815,8 +2815,8 @@ bool Node::is_displayed_folded() const {
|
||||
|
||||
void Node::_bind_methods() {
|
||||
|
||||
_GLOBAL_DEF("node/name_num_separator",0);
|
||||
Globals::get_singleton()->set_custom_property_info("node/name_num_separator",PropertyInfo(Variant::INT,"node/name_num_separator",PROPERTY_HINT_ENUM, "None,Space,Underscore,Dash"));
|
||||
_GLOBAL_DEF("editor/node_name_num_separator",0);
|
||||
GlobalConfig::get_singleton()->set_custom_property_info("editor/node_name_num_separator",PropertyInfo(Variant::INT,"editor/node_name_num_separator",PROPERTY_HINT_ENUM, "None,Space,Underscore,Dash"));
|
||||
|
||||
|
||||
ClassDB::bind_method(_MD("_add_child_below_node","node:Node","child_node:Node","legible_unique_name"),&Node::add_child_below_node,DEFVAL(false));
|
||||
@@ -2989,7 +2989,7 @@ void Node::_bind_methods() {
|
||||
|
||||
|
||||
String Node::_get_name_num_separator() {
|
||||
switch(Globals::get_singleton()->get("node/name_num_separator").operator int()) {
|
||||
switch(GlobalConfig::get_singleton()->get("node/name_num_separator").operator int()) {
|
||||
case 0: return "";
|
||||
case 1: return " ";
|
||||
case 2: return "_";
|
||||
|
||||
Reference in New Issue
Block a user