checheche/Robo-Bus-A31-HMI/common/gui/check.gd
2024-12-06 21:22:11 +08:00

15 lines
344 B
GDScript

@tool
extends BaseControl
var check = false : set = check_set
@onready var hook = find_child("Hook")
func check_set(value):
check = value
# hook.visible = check
hook.texture = load("res://profile/login/res/btn_ye_op.webp") if check else load("res://profile/login/res/btn_ye_cl.webp")
func _on_Control_on_click(node):
self.check = !check