aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MapView.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-09-10 20:14:49 +0200
committer GitHub <noreply@github.com>2024-09-10 20:14:49 +0200
commitdc0b0ede2368b43ab6c91a5e24d76ec34e91cf46 (patch)
tree732102566650ae717c43db5c2381fb72ce8ed88c /game/src/Game/GameSession/MapView.gd
parentcfad2d9e2011a5b930efa14e07ce9caf25d9459a (diff)
parent6d4b8b087b62b5487d72cc6c2265b3e00afb9c8a (diff)
Merge pull request #266 from OpenVicProject/ranking
Ranking + army topbar info
Diffstat (limited to 'game/src/Game/GameSession/MapView.gd')
-rw-r--r--game/src/Game/GameSession/MapView.gd6
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!")