aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MapView.gd
diff options
context:
space:
mode:
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!")