This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
Jessist/addons/Mono-Build-Toggler/toggler.gd

11 lines
219 B
GDScript3
Raw Permalink Normal View History

2022-06-18 13:05:48 +02:00
tool
extends HBoxContainer
signal TOGGLED(new_value)
func _on_ToggleButton_toggled(button_pressed: bool) -> void:
emit_signal("TOGGLED", button_pressed)
func set_enabled(value: bool):
$ToggleButton.pressed = value