13 lines
210 B
GDScript
13 lines
210 B
GDScript
@tool
|
|
extends Button
|
|
|
|
@export var icon_name := "Node" :
|
|
set(v):
|
|
icon_name = v
|
|
if has_theme_icon(v, "EditorIcons"):
|
|
icon = get_theme_icon(v, "EditorIcons")
|
|
|
|
|
|
func _ready():
|
|
self.icon_name = (icon_name)
|