aboutsummaryrefslogtreecommitdiff
path: root/game/src
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-09-19 00:40:33 +0200
committer hop311 <hop3114@gmail.com>2024-09-19 00:41:51 +0200
commita9e175ef71feb04598f3eb0bbb663a00b2ec7ed7 (patch)
tree570662008cd7c0d2f1b96acaf11b02118460f171 /game/src
parent33dcbeeb8166edd247effeaa7e16923f3a24ddd1 (diff)
Test modifier localisation
Diffstat (limited to 'game/src')
-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: