1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Use CheckBoxes in the editor instead of CheckButtons when applicable

CheckButtons should only be used if toggling them has an
immediate effect. Otherwise, CheckBoxes should be used.
This commit is contained in:
Hugo Locurcio
2019-07-04 17:30:44 +02:00
parent 550f436f8f
commit acbd0fea97
8 changed files with 18 additions and 19 deletions

View File

@@ -742,8 +742,8 @@ ScriptCreateDialog::ScriptCreateDialog() {
/* Built-in Script */
internal = memnew(CheckButton);
internal->set_h_size_flags(0);
internal = memnew(CheckBox);
internal->set_text(TTR("On"));
internal->connect("pressed", this, "_built_in_pressed");
internal_label = memnew(Label(TTR("Built-in Script")));
internal_label->set_align(Label::ALIGN_RIGHT);