Added resource table plugin
This commit is contained in:
12
addons/resources_spreadsheet_view/editor_icon_button.gd
Normal file
12
addons/resources_spreadsheet_view/editor_icon_button.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
@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)
|
||||
Reference in New Issue
Block a user