From 78f97c94eaef2c5a0899af9a126bd9d073685f79 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 26 Jan 2022 22:17:19 +0100 Subject: [PATCH] Now the history tab will try to fall back to use the resource name property if the text name property cannot be found. --- game/addons/data_manager/panels/HistoryEntry.gd | 4 +++- game/addons/data_manager/panels/HistoryEntry.tscn | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/game/addons/data_manager/panels/HistoryEntry.gd b/game/addons/data_manager/panels/HistoryEntry.gd index f32b6e16..a60afea5 100644 --- a/game/addons/data_manager/panels/HistoryEntry.gd +++ b/game/addons/data_manager/panels/HistoryEntry.gd @@ -18,7 +18,9 @@ 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()) + ")" diff --git a/game/addons/data_manager/panels/HistoryEntry.tscn b/game/addons/data_manager/panels/HistoryEntry.tscn index 770b168a..8bc48dc4 100644 --- a/game/addons/data_manager/panels/HistoryEntry.tscn +++ b/game/addons/data_manager/panels/HistoryEntry.tscn @@ -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