2024-09-12 21:55:55 +08:00
|
|
|
extends Button
|
|
|
|
class_name ToolButton
|
|
|
|
|
|
|
|
func on_button_down() -> void:
|
|
|
|
get_parent().modulate=Color(0.5,0.5,0.5,1)
|
|
|
|
pass # Replace with function body.
|
|
|
|
func on_button_up() -> void:
|
|
|
|
get_parent().modulate=Color(1,1,1,1)
|
|
|
|
pass # Replace with function body.ion body.
|
2024-09-13 17:55:00 +08:00
|
|
|
static func static_on_button_down(canvas:CanvasItem) -> void:
|
|
|
|
canvas.modulate=Color(0.5,0.5,0.5,1)
|
|
|
|
pass # Replace with function body.
|
|
|
|
static func static_on_button_up(canvas:CanvasItem) -> void:
|
|
|
|
canvas.modulate=Color(1,1,1,1)
|
|
|
|
pass # Replace with function body.ion body.
|