[Scene] Add SceneStringName::toggled
This commit is contained in:
@ -102,7 +102,7 @@ private:
|
||||
toggle_button->add_theme_color_override("icon_color_pressed", Color(1, 1, 1, 1));
|
||||
toggle_button->set_focus_mode(FOCUS_NONE);
|
||||
// When toggled call the callback and pass the MessageType this button is for.
|
||||
toggle_button->connect("toggled", p_toggled_callback.bind(type));
|
||||
toggle_button->connect(SceneStringName(toggled), p_toggled_callback.bind(type));
|
||||
}
|
||||
|
||||
int get_message_count() {
|
||||
|
||||
Reference in New Issue
Block a user