mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2024-11-14 15:17:20 +01:00
15 lines
221 B
GDScript
15 lines
221 B
GDScript
tool
|
|
class_name ThemeIconButton
|
|
extends Button
|
|
|
|
export var icon_name := "Node" setget _set_icon_name
|
|
|
|
|
|
func _ready():
|
|
_set_icon_name(icon_name)
|
|
|
|
|
|
func _set_icon_name(v):
|
|
icon_name = v
|
|
icon = get_icon(v, "EditorIcons")
|