You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Rename Control margin to offset
This commit is contained in:
@@ -1015,7 +1015,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
||||
break;
|
||||
case TOOL_CREATE_USER_INTERFACE: {
|
||||
Control *node = memnew(Control);
|
||||
node->set_anchors_and_margins_preset(PRESET_WIDE); //more useful for resizable UIs.
|
||||
node->set_anchors_and_offsets_preset(PRESET_WIDE); //more useful for resizable UIs.
|
||||
new_node = node;
|
||||
|
||||
} break;
|
||||
@@ -1107,7 +1107,7 @@ void SceneTreeDock::_notification(int p_what) {
|
||||
node_shortcuts_toggle->set_toggle_mode(true);
|
||||
node_shortcuts_toggle->set_tooltip(TTR("Switch to Favorite Nodes"));
|
||||
node_shortcuts_toggle->set_pressed(EDITOR_GET("_use_favorites_root_selection"));
|
||||
node_shortcuts_toggle->set_anchors_and_margins_preset(Control::PRESET_CENTER_RIGHT);
|
||||
node_shortcuts_toggle->set_anchors_and_offsets_preset(Control::PRESET_CENTER_RIGHT);
|
||||
node_shortcuts_toggle->connect("pressed", callable_mp(this, &SceneTreeDock::_update_create_root_dialog));
|
||||
top_row->add_child(node_shortcuts_toggle);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user