You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Make contents of "Create Script" dialog expand with the window size
This commit is contained in:
@@ -784,6 +784,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
|
|||||||
|
|
||||||
status_panel = memnew(PanelContainer);
|
status_panel = memnew(PanelContainer);
|
||||||
status_panel->set_h_size_flags(Control::SIZE_FILL);
|
status_panel->set_h_size_flags(Control::SIZE_FILL);
|
||||||
|
status_panel->set_v_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
status_panel->add_child(vb);
|
status_panel->add_child(vb);
|
||||||
|
|
||||||
/* Spacing */
|
/* Spacing */
|
||||||
@@ -795,10 +796,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
|
|||||||
vb->add_child(gc);
|
vb->add_child(gc);
|
||||||
vb->add_child(spacing);
|
vb->add_child(spacing);
|
||||||
vb->add_child(status_panel);
|
vb->add_child(status_panel);
|
||||||
HBoxContainer *hb = memnew(HBoxContainer);
|
add_child(vb);
|
||||||
hb->add_child(vb);
|
|
||||||
|
|
||||||
add_child(hb);
|
|
||||||
|
|
||||||
/* Language */
|
/* Language */
|
||||||
|
|
||||||
@@ -827,7 +825,7 @@ ScriptCreateDialog::ScriptCreateDialog() {
|
|||||||
|
|
||||||
base_type = "Object";
|
base_type = "Object";
|
||||||
|
|
||||||
hb = memnew(HBoxContainer);
|
HBoxContainer *hb = memnew(HBoxContainer);
|
||||||
hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||||
parent_name = memnew(LineEdit);
|
parent_name = memnew(LineEdit);
|
||||||
parent_name->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_parent_name_changed));
|
parent_name->connect("text_changed", callable_mp(this, &ScriptCreateDialog::_parent_name_changed));
|
||||||
|
|||||||
Reference in New Issue
Block a user