add animations
This commit is contained in:
13
core/game_menu/arrow_button.gd
Normal file
13
core/game_menu/arrow_button.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
@tool
|
||||
extends Control
|
||||
|
||||
@export var image: Texture:
|
||||
set(value):
|
||||
image = value
|
||||
if is_inside_tree() and has_node("%Texture"):
|
||||
$%Texture.texture = image
|
||||
|
||||
|
||||
func _ready():
|
||||
if image != null and has_node("%Texture"):
|
||||
$%Texture.texture = image
|
||||
Reference in New Issue
Block a user