mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
17 lines
299 B
GDScript
17 lines
299 B
GDScript
extends Button
|
|
class_name RoundButton
|
|
|
|
|
|
func _ready() -> void:
|
|
if disabled: disable()
|
|
else: enable()
|
|
|
|
|
|
func disable() -> void:
|
|
disabled = true
|
|
mouse_default_cursor_shape = Control.CURSOR_ARROW
|
|
|
|
|
|
func enable() -> void:
|
|
disabled = false
|
|
mouse_default_cursor_shape = Control.CURSOR_POINTING_HAND
|