mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2025-04-08 17:41:50 +02:00
Allow Resource cells to show res name when able to
This commit is contained in:
parent
e2d4c550bd
commit
0be896b40f
@ -26,7 +26,11 @@ func set_value(node : Control, value):
|
||||
if !value is Resource: return
|
||||
|
||||
node.editor_description = value.resource_path
|
||||
node.get_node("Box/Label").text = "[" + value.resource_path.get_file().get_basename() + "]"
|
||||
node.get_node("Box/Label").text = (
|
||||
"[" + value.resource_path.get_file().get_basename() + "]"
|
||||
if value.resource_name == "" else
|
||||
value.resource_name
|
||||
)
|
||||
if value is Texture:
|
||||
node.get_node("Box/Tex").visible = true
|
||||
node.get_node("Box/Tex").texture = value
|
||||
|
Loading…
Reference in New Issue
Block a user