Now the history tab will try to fall back to use the resource name property if the text name property cannot be found.

This commit is contained in:
Relintai 2022-01-26 22:17:19 +01:00
parent da9b6703c9
commit 78f97c94ea
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,8 @@ func set_data(pdata: Resource) -> void:
if data.has_method("get_text_name"):
s += str(data.get_text_name())
elif data.has_method("get_name"):
s += str(data.get_name())
if data.has_method("get_rank"):
s += " (R " + str(data.get_rank()) + ")"

View File

@ -2,7 +2,6 @@
[ext_resource path="res://addons/data_manager/panels/HistoryEntry.gd" type="Script" id=1]
[node name="HistoryEntry" type="Button"]
margin_right = 236.0
margin_bottom = 37.0