mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09: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:
parent
550f436f8f
commit
acbd0fea97
8 changed files with 18 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue