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
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
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);