You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Rename Control margin to offset
This commit is contained in:
@@ -471,10 +471,10 @@ EditorSettingsDialog::EditorSettingsDialog() {
|
||||
|
||||
Label *l = memnew(Label);
|
||||
l->set_text(TTR("Press a Key..."));
|
||||
l->set_anchors_and_margins_preset(Control::PRESET_WIDE);
|
||||
l->set_anchors_and_offsets_preset(Control::PRESET_WIDE);
|
||||
l->set_align(Label::ALIGN_CENTER);
|
||||
l->set_margin(MARGIN_TOP, 20);
|
||||
l->set_anchor_and_margin(MARGIN_BOTTOM, Control::ANCHOR_BEGIN, 30);
|
||||
l->set_offset(SIDE_TOP, 20);
|
||||
l->set_anchor_and_offset(SIDE_BOTTOM, Control::ANCHOR_BEGIN, 30);
|
||||
press_a_key_label = l;
|
||||
press_a_key->add_child(l);
|
||||
press_a_key->connect("window_input", callable_mp(this, &EditorSettingsDialog::_wait_for_key));
|
||||
|
||||
Reference in New Issue
Block a user