mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 01:21:26 +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
|
|
@ -133,7 +133,7 @@ void ScriptCreateDialog::_create_new() {
|
|||
scr->set_name(cname);
|
||||
|
||||
if (!internal->is_pressed()) {
|
||||
String lpath = Globals::get_singleton()->localize_path(file_path->get_text());
|
||||
String lpath = GlobalConfig::get_singleton()->localize_path(file_path->get_text());
|
||||
scr->set_path(lpath);
|
||||
if (!path_valid) {
|
||||
alert->set_text(TTR("Invalid path!"));
|
||||
|
|
@ -243,7 +243,7 @@ void ScriptCreateDialog::_browse_path() {
|
|||
|
||||
void ScriptCreateDialog::_file_selected(const String& p_file) {
|
||||
|
||||
String p = Globals::get_singleton()->localize_path(p_file);
|
||||
String p = GlobalConfig::get_singleton()->localize_path(p_file);
|
||||
file_path->set_text(p);
|
||||
_path_changed(p);
|
||||
|
||||
|
|
@ -262,7 +262,7 @@ void ScriptCreateDialog::_path_changed(const String& p_path) {
|
|||
|
||||
}
|
||||
|
||||
p = Globals::get_singleton()->localize_path(p);
|
||||
p = GlobalConfig::get_singleton()->localize_path(p);
|
||||
if (!p.begins_with("res://")) {
|
||||
|
||||
path_error_label->set_text(TTR("Path is not local"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue