mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 02:13:36 +00:00
[Scene] Add SceneStringName::toggled
This commit is contained in:
parent
f648de1a83
commit
52889ab7ee
44 changed files with 74 additions and 72 deletions
|
|
@ -632,7 +632,7 @@ GradientEditor::GradientEditor() {
|
|||
snap_button->set_tooltip_text(TTR("Toggle Grid Snap"));
|
||||
snap_button->set_toggle_mode(true);
|
||||
toolbar->add_child(snap_button);
|
||||
snap_button->connect("toggled", callable_mp(this, &GradientEditor::_set_snap_enabled));
|
||||
snap_button->connect(SceneStringName(toggled), callable_mp(this, &GradientEditor::_set_snap_enabled));
|
||||
|
||||
snap_count_edit = memnew(EditorSpinSlider);
|
||||
snap_count_edit->set_min(2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue