diff options
Diffstat (limited to 'editor/run_settings_dialog.cpp')
-rw-r--r-- | editor/run_settings_dialog.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/editor/run_settings_dialog.cpp b/editor/run_settings_dialog.cpp index a5ae1fd8a6..b6dda4c5bb 100644 --- a/editor/run_settings_dialog.cpp +++ b/editor/run_settings_dialog.cpp @@ -31,45 +31,39 @@ #include "run_settings_dialog.h" void RunSettingsDialog::popup_run_settings() { - popup_centered(Size2(300, 150)); } void RunSettingsDialog::set_custom_arguments(const String &p_arguments) { - arguments->set_text(p_arguments); } -String RunSettingsDialog::get_custom_arguments() const { +String RunSettingsDialog::get_custom_arguments() const { return arguments->get_text(); } void RunSettingsDialog::_bind_methods() { - //ClassDB::bind_method("_browse_selected_file",&RunSettingsDialog::_browse_selected_file); } void RunSettingsDialog::_run_mode_changed(int idx) { - - if (idx == 0) + if (idx == 0) { arguments->set_editable(false); - else + } else { arguments->set_editable(true); + } } int RunSettingsDialog::get_run_mode() const { - return run_mode->get_selected(); } void RunSettingsDialog::set_run_mode(int p_run_mode) { - run_mode->select(p_run_mode); arguments->set_editable(p_run_mode); } RunSettingsDialog::RunSettingsDialog() { - /* SNAP DIALOG */ VBoxContainer *vbc = memnew(VBoxContainer); |