You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +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:
@@ -2074,7 +2074,7 @@ void CanvasItemEditor::_viewport_draw() {
|
||||
VisualServer::get_singleton()->canvas_item_add_line(ci,transform.xform(display_rotate_from), transform.xform(display_rotate_to),rotate_color);
|
||||
}
|
||||
|
||||
Size2 screen_size = Size2( Globals::get_singleton()->get("display/width"), Globals::get_singleton()->get("display/height") );
|
||||
Size2 screen_size = Size2( GlobalConfig::get_singleton()->get("display/width"), GlobalConfig::get_singleton()->get("display/height") );
|
||||
|
||||
Vector2 screen_endpoints[4]= {
|
||||
transform.xform(Vector2(0,0)),
|
||||
@@ -2409,7 +2409,7 @@ void CanvasItemEditor::_update_scrollbars() {
|
||||
h_scroll->set_end( Point2(size.width-vmin.width, size.height) );
|
||||
|
||||
|
||||
Size2 screen_rect = Size2( Globals::get_singleton()->get("display/width"), Globals::get_singleton()->get("display/height") );
|
||||
Size2 screen_rect = Size2( GlobalConfig::get_singleton()->get("display/width"), GlobalConfig::get_singleton()->get("display/height") );
|
||||
|
||||
Rect2 local_rect = Rect2(Point2(),viewport->get_size()-Size2(vmin.width,hmin.height));
|
||||
|
||||
@@ -3810,7 +3810,7 @@ bool CanvasItemEditorViewport::_create_instance(Node* parent, String& path, cons
|
||||
}
|
||||
}
|
||||
|
||||
instanced_scene->set_filename( Globals::get_singleton()->localize_path(path) );
|
||||
instanced_scene->set_filename( GlobalConfig::get_singleton()->localize_path(path) );
|
||||
|
||||
editor_data->get_undo_redo().add_do_method(parent,"add_child",instanced_scene);
|
||||
editor_data->get_undo_redo().add_do_method(instanced_scene,"set_owner",editor->get_edited_scene());
|
||||
|
||||
Reference in New Issue
Block a user