diff options
author | hop311 <hop3114@gmail.com> | 2024-09-08 18:55:42 +0200 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2024-09-10 00:29:16 +0200 |
commit | 6d4b8b087b62b5487d72cc6c2265b3e00afb9c8a (patch) | |
tree | 95518129dcaf6116c71b8c9f0e819675c31b99fd /game/src/Game/GameSession/MapView.gd | |
parent | a3b34e2d6a9bf2bc59619390e0490a5b45d75337 (diff) |
Ranking + army topbar inforanking
Diffstat (limited to 'game/src/Game/GameSession/MapView.gd')
-rw-r--r-- | game/src/Game/GameSession/MapView.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/game/src/Game/GameSession/MapView.gd b/game/src/Game/GameSession/MapView.gd index 171374c..6bf84f3 100644 --- a/game/src/Game/GameSession/MapView.gd +++ b/game/src/Game/GameSession/MapView.gd @@ -225,7 +225,11 @@ func _unhandled_input(event : InputEvent) -> void: elif event.is_action_pressed(_action_right_click): if _mouse_over_viewport: if _map_mesh.is_valid_uv_coord(_mouse_pos_map): - Events.NationManagementScreens.open_nation_management_screen(NationManagement.Screen.DIPLOMACY) + # TODO - open diplomacy screen on province owner or viewed country if province has no owner + #Events.NationManagementScreens.open_nation_management_screen(NationManagement.Screen.DIPLOMACY) + GameSingleton.set_viewed_country_by_province_index(GameSingleton.get_province_index_from_uv_coords(_mouse_pos_map)) + else: + print("Right-clicked outside the map!") elif event.is_action_pressed(_action_drag): if _drag_active: push_warning("Drag being activated while already active!") |