mirror of
https://github.com/godotengine/godot.git
synced 2025-10-28 12:14:44 +00:00
Rename Control margin to offset
This commit is contained in:
parent
30d469a5e0
commit
4b8b803931
106 changed files with 1278 additions and 1278 deletions
|
|
@ -202,7 +202,7 @@ AudioStreamEditor::AudioStreamEditor() {
|
|||
add_child(_player);
|
||||
|
||||
VBoxContainer *vbox = memnew(VBoxContainer);
|
||||
vbox->set_anchors_and_margins_preset(PRESET_WIDE, PRESET_MODE_MINSIZE, 0);
|
||||
vbox->set_anchors_and_offsets_preset(PRESET_WIDE, PRESET_MODE_MINSIZE, 0);
|
||||
add_child(vbox);
|
||||
|
||||
_preview = memnew(ColorRect);
|
||||
|
|
@ -211,7 +211,7 @@ AudioStreamEditor::AudioStreamEditor() {
|
|||
vbox->add_child(_preview);
|
||||
|
||||
_indicator = memnew(Control);
|
||||
_indicator->set_anchors_and_margins_preset(PRESET_WIDE);
|
||||
_indicator->set_anchors_and_offsets_preset(PRESET_WIDE);
|
||||
_indicator->connect("draw", callable_mp(this, &AudioStreamEditor::_draw_indicator));
|
||||
_indicator->connect("gui_input", callable_mp(this, &AudioStreamEditor::_on_input_indicator));
|
||||
_preview->add_child(_indicator);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue