Files
tgcc/core/game_menu/tab.gd

13 lines
247 B
GDScript

@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