mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-25 16:54:59 +02:00
14 lines
237 B
GDScript
14 lines
237 B
GDScript
@tool
|
|
class_name ThemeIconButton
|
|
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)
|