1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Bring that Whole New World to the Old Continent too

Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
Rémi Verschelde
2017-03-19 00:36:26 +01:00
parent 1d418afe86
commit f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions

View File

@@ -28,14 +28,12 @@
/*************************************************************************/
#include "run_settings_dialog.h"
void RunSettingsDialog::popup_run_settings() {
popup_centered(Size2( 300, 150 ));
popup_centered(Size2(300, 150));
}
void RunSettingsDialog::set_custom_arguments(const String& p_arguments) {
void RunSettingsDialog::set_custom_arguments(const String &p_arguments) {
arguments->set_text(p_arguments);
}
@@ -44,16 +42,15 @@ String RunSettingsDialog::get_custom_arguments() const {
return arguments->get_text();
}
void RunSettingsDialog::_bind_methods() {
ObjectTypeDB::bind_method("_run_mode_changed",&RunSettingsDialog::_run_mode_changed);
ObjectTypeDB::bind_method("_run_mode_changed", &RunSettingsDialog::_run_mode_changed);
//ObjectTypeDB::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
arguments->set_editable(true);
@@ -74,17 +71,17 @@ RunSettingsDialog::RunSettingsDialog() {
/* SNAP DIALOG */
VBoxContainer *vbc = memnew( VBoxContainer );
VBoxContainer *vbc = memnew(VBoxContainer);
add_child(vbc);
set_child_rect(vbc);
run_mode = memnew( OptionButton );
vbc->add_margin_child(TTR("Run Mode:"),run_mode);
run_mode = memnew(OptionButton);
vbc->add_margin_child(TTR("Run Mode:"), run_mode);
run_mode->add_item(TTR("Current Scene"));
run_mode->add_item(TTR("Main Scene"));
run_mode->connect("item_selected",this,"_run_mode_changed");
arguments = memnew( LineEdit );
vbc->add_margin_child(TTR("Main Scene Arguments:"),arguments);
run_mode->connect("item_selected", this, "_run_mode_changed");
arguments = memnew(LineEdit);
vbc->add_margin_child(TTR("Main Scene Arguments:"), arguments);
arguments->set_editable(false);
get_ok()->set_text(TTR("Close"));
@@ -93,6 +90,4 @@ RunSettingsDialog::RunSettingsDialog() {
arguments->set_text("-l $scene");
set_title(TTR("Scene Run Settings"));
}