From 077554daf5ec8a92ed68fb97020e88dbfb0ea29f Mon Sep 17 00:00:00 2001 From: Hop311 Date: Thu, 14 Sep 2023 21:07:08 +0100 Subject: Compat localisation loading --- .../Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd | 2 +- game/src/Game/Theme/PieChart/PieChart.gd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'game') diff --git a/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd b/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd index 0220be2..267bd5d 100644 --- a/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd +++ b/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd @@ -104,7 +104,7 @@ func _set_building_row(index : int, building : Dictionary) -> void: func _update_info() -> void: _province_info = GameSingleton.get_province_info_from_index(_selected_index) if _province_info: - _province_name_label.text = _province_info.get(GameSingleton.get_province_info_province_key(), + _province_name_label.text = "PROV" + _province_info.get(GameSingleton.get_province_info_province_key(), GameSingleton.get_province_info_province_key() + _missing_suffix) _region_name_label.text = _province_info.get(GameSingleton.get_province_info_region_key(), GameSingleton.get_province_info_region_key() + _missing_suffix) diff --git a/game/src/Game/Theme/PieChart/PieChart.gd b/game/src/Game/Theme/PieChart/PieChart.gd index cfd7917..4b81b28 100644 --- a/game/src/Game/Theme/PieChart/PieChart.gd +++ b/game/src/Game/Theme/PieChart/PieChart.gd @@ -193,13 +193,13 @@ func _create_tooltip(labelHovered : String) -> String: for label in _slice_order: var slice : SliceData = _slices.get(label) var percent := _format_percent(slice.percentage) - var entry : String = "%s %s%%" % [label, percent] + var entry : String = "%s %s%%" % [tr(label), percent] if label == labelHovered: entry = "[i][u][b]>>%s<<[/b][/u][/i]" % entry slice_tooltips.push_back(entry) # Slices are ordered smallest to largest, but here we want the opposite slice_tooltips.reverse() - return "[font_size=10]%s[/font_size]" % "\n".join(slice_tooltips) + return "[font_size=14]%s[/font_size]" % "\n".join(slice_tooltips) # Angle from center.angle_to_point is measured from the +x axis, # but the chart starts from +y -- cgit v1.2.3-56-ga3b1