You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Make LineEdits in create plugin dialog expand horizontally
This commit is contained in:
@@ -234,6 +234,7 @@ PluginConfigDialog::PluginConfigDialog() {
|
||||
name_edit = memnew(LineEdit);
|
||||
name_edit->connect("text_changed", callable_mp(this, &PluginConfigDialog::_on_required_text_changed));
|
||||
name_edit->set_placeholder("MyPlugin");
|
||||
name_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
grid->add_child(name_edit);
|
||||
|
||||
// Subfolder
|
||||
@@ -248,6 +249,7 @@ PluginConfigDialog::PluginConfigDialog() {
|
||||
|
||||
subfolder_edit = memnew(LineEdit);
|
||||
subfolder_edit->set_placeholder("\"my_plugin\" -> res://addons/my_plugin");
|
||||
subfolder_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
subfolder_edit->connect("text_changed", callable_mp(this, &PluginConfigDialog::_on_required_text_changed));
|
||||
grid->add_child(subfolder_edit);
|
||||
|
||||
@@ -276,6 +278,7 @@ PluginConfigDialog::PluginConfigDialog() {
|
||||
|
||||
author_edit = memnew(LineEdit);
|
||||
author_edit->set_placeholder("Godette");
|
||||
author_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
grid->add_child(author_edit);
|
||||
|
||||
// Version
|
||||
@@ -289,6 +292,7 @@ PluginConfigDialog::PluginConfigDialog() {
|
||||
|
||||
version_edit = memnew(LineEdit);
|
||||
version_edit->set_placeholder("1.0");
|
||||
version_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
grid->add_child(version_edit);
|
||||
|
||||
// Language dropdown
|
||||
@@ -326,6 +330,7 @@ PluginConfigDialog::PluginConfigDialog() {
|
||||
script_edit = memnew(LineEdit);
|
||||
script_edit->connect("text_changed", callable_mp(this, &PluginConfigDialog::_on_required_text_changed));
|
||||
script_edit->set_placeholder("\"plugin.gd\" -> res://addons/my_plugin/plugin.gd");
|
||||
script_edit->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
grid->add_child(script_edit);
|
||||
|
||||
// Activate now checkbox
|
||||
|
||||
Reference in New Issue
Block a user