aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/MapControlPanel.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-30 21:09:35 +0200
committer Hop311 <hop3114@gmail.com>2023-04-30 21:09:35 +0200
commitbce925ad8efa7bbf508e79cab2110416a71cb8ee (patch)
treef8ede3f3734c5c34abddd783984cc6a4b97c5810 /game/src/GameSession/MapControlPanel.gd
parent7e2700514652212e50a006ad525e7c7ca8e7840c (diff)
Highlight selected province on minimap
Diffstat (limited to 'game/src/GameSession/MapControlPanel.gd')
-rw-r--r--game/src/GameSession/MapControlPanel.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/game/src/GameSession/MapControlPanel.gd b/game/src/GameSession/MapControlPanel.gd
index 508f692..e9249b3 100644
--- a/game/src/GameSession/MapControlPanel.gd
+++ b/game/src/GameSession/MapControlPanel.gd
@@ -3,6 +3,7 @@ extends PanelContainer
signal game_session_menu_button_pressed
signal map_view_camera_changed(near_left : Vector2, far_left : Vector2, far_right : Vector2, near_right : Vector2)
signal minimap_clicked(pos_clicked : Vector2)
+signal province_selcted(index : int)
signal zoom_in_button_pressed
signal zoom_out_button_pressed
@@ -47,6 +48,9 @@ func _on_map_view_camera_changed(near_left : Vector2, far_left : Vector2, far_ri
func _on_minimap_clicked(pos_clicked : Vector2) -> void:
minimap_clicked.emit(pos_clicked)
+func _on_province_selected(index : int) -> void:
+ province_selcted.emit(index)
+
# REQUIREMENTS:
# * UIFUN-269
func _on_zoom_in_button_pressed() -> void: