godot-resources-as-sheets-p.../addons/resources_spreadsheet_view/editor_icon_button.gd
don-tnowe c56a638340 Various bug fixes.
Should fix #15, #14, #12, #13.
2022-12-31 02:00:47 +02:00

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)