mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +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:
parent
9e477babb3
commit
0f7af4ea51
109 changed files with 847 additions and 789 deletions
|
@ -1933,13 +1933,13 @@ public:
|
|||
VisualScriptNodeInstance* VisualScriptEngineSingleton::instance(VisualScriptInstance* p_instance) {
|
||||
|
||||
VisualScriptNodeInstanceEngineSingleton * instance = memnew(VisualScriptNodeInstanceEngineSingleton );
|
||||
instance->singleton=Globals::get_singleton()->get_singleton_object(singleton);
|
||||
instance->singleton=GlobalConfig::get_singleton()->get_singleton_object(singleton);
|
||||
return instance;
|
||||
}
|
||||
|
||||
VisualScriptEngineSingleton::TypeGuess VisualScriptEngineSingleton::guess_output_type(TypeGuess* p_inputs, int p_output) const {
|
||||
|
||||
Object *obj=Globals::get_singleton()->get_singleton_object(singleton);
|
||||
Object *obj=GlobalConfig::get_singleton()->get_singleton_object(singleton);
|
||||
TypeGuess tg;
|
||||
tg.type=Variant::OBJECT;
|
||||
if (obj) {
|
||||
|
@ -1958,11 +1958,11 @@ void VisualScriptEngineSingleton::_bind_methods() {
|
|||
|
||||
String cc;
|
||||
|
||||
List<Globals::Singleton> singletons;
|
||||
List<GlobalConfig::Singleton> singletons;
|
||||
|
||||
Globals::get_singleton()->get_singletons(&singletons);
|
||||
GlobalConfig::get_singleton()->get_singletons(&singletons);
|
||||
|
||||
for (List<Globals::Singleton>::Element *E=singletons.front();E;E=E->next()) {
|
||||
for (List<GlobalConfig::Singleton>::Element *E=singletons.front();E;E=E->next()) {
|
||||
if (E->get().name=="VS" || E->get().name=="PS" || E->get().name=="PS2D" || E->get().name=="AS" || E->get().name=="TS" || E->get().name=="SS" || E->get().name=="SS2D")
|
||||
continue; //skip these, too simple named
|
||||
|
||||
|
@ -3600,7 +3600,7 @@ void VisualScriptInputAction::_validate_property(PropertyInfo& property) const {
|
|||
String actions;
|
||||
|
||||
List<PropertyInfo> pinfo;
|
||||
Globals::get_singleton()->get_property_list(&pinfo);
|
||||
GlobalConfig::get_singleton()->get_property_list(&pinfo);
|
||||
Vector<String> al;
|
||||
|
||||
for(List<PropertyInfo>::Element *E=pinfo.front();E;E=E->next()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue