aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/Topbar.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-19 00:40:33 +0200
committer hop311 <hop3114@gmail.com>2024-09-20 00:48:27 +0200
commit36bee4ceacc5c8b13cbab97c36129ff5dddaa2a1 (patch)
tree89ad803b88cce38975685202642b8b70fd0f38f0 /game/src/Game/GameSession/Topbar.gd
parent33dcbeeb8166edd247effeaa7e16923f3a24ddd1 (diff)
Test modifier localisation
Diffstat (limited to 'game/src/Game/GameSession/Topbar.gd')
-rw-r--r--game/src/Game/GameSession/Topbar.gd17
1 files changed, 14 insertions, 3 deletions
diff --git a/game/src/Game/GameSession/Topbar.gd b/game/src/Game/GameSession/Topbar.gd
index 2f1fdbf..737ed9d 100644
--- a/game/src/Game/GameSession/Topbar.gd
+++ b/game/src/Game/GameSession/Topbar.gd
@@ -295,6 +295,16 @@ enum CountryStatus {
PRIMITIVE
}
+var test_scroll : int = 0
+
+func _input(event) -> void:
+ if event is InputEventKey and event.pressed:
+ if event.keycode == KEY_O:
+ test_scroll -= 1
+ elif event.keycode == KEY_P:
+ test_scroll += 1
+ _update_info()
+
func _update_info() -> void:
var topbar_info : Dictionary = MenuSingleton.get_topbar_info()
@@ -392,9 +402,10 @@ func _update_info() -> void:
_country_colonial_power_label.set_text(
"§%s%s§!/%s" % ["W" if available_colonial_power > 0 else "R", available_colonial_power, max_colonial_power]
)
- _country_colonial_power_label.set_tooltip_string(tr("COLONIAL_POINTS") + MenuSingleton.get_tooltip_separator() + (
- topbar_info.get(colonial_power_tooltip_key, "") if country_status <= CountryStatus.SECONDARY_POWER else tr("NON_COLONIAL_POWER")
- ))
+ #_country_colonial_power_label.set_tooltip_string(tr("COLONIAL_POINTS") + MenuSingleton.get_tooltip_separator() + (
+ #topbar_info.get(colonial_power_tooltip_key, "") if country_status <= CountryStatus.SECONDARY_POWER else tr("NON_COLONIAL_POWER")
+ #))
+ _country_colonial_power_label.set_tooltip_string("(Use O and P to scroll) " + MenuSingleton.get_test_tooltip(test_scroll))
## Time control
if _date_label: