You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[Scene] Add SceneStringName::toggled
This commit is contained in:
@@ -1769,7 +1769,7 @@ SceneTreeDialog::SceneTreeDialog() {
|
||||
// Add 'Show All' button to HBoxContainer next to the filter, visible only when valid_types is defined.
|
||||
show_all_nodes = memnew(CheckButton);
|
||||
show_all_nodes->set_text(TTR("Show All"));
|
||||
show_all_nodes->connect("toggled", callable_mp(this, &SceneTreeDialog::_show_all_nodes_changed));
|
||||
show_all_nodes->connect(SceneStringName(toggled), callable_mp(this, &SceneTreeDialog::_show_all_nodes_changed));
|
||||
show_all_nodes->set_h_size_flags(Control::SIZE_SHRINK_BEGIN);
|
||||
show_all_nodes->hide();
|
||||
filter_hbc->add_child(show_all_nodes);
|
||||
|
||||
Reference in New Issue
Block a user