You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user