diff options
Diffstat (limited to 'game/src/GameSession/MapControlPanel.gd')
-rw-r--r-- | game/src/GameSession/MapControlPanel.gd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/game/src/GameSession/MapControlPanel.gd b/game/src/GameSession/MapControlPanel.gd index cfd102c..fb4f161 100644 --- a/game/src/GameSession/MapControlPanel.gd +++ b/game/src/GameSession/MapControlPanel.gd @@ -2,8 +2,11 @@ extends PanelContainer signal game_session_menu_button_pressed signal mapmode_changed +signal map_view_camera_changed(near_left : Vector2, far_left : Vector2, far_right : Vector2, near_right : Vector2) +signal minimap_clicked(pos_clicked : Vector2) @export var _mapmodes_grid : GridContainer + var _mapmode_button_group : ButtonGroup func _add_mapmode_button(identifier : String) -> void: @@ -30,3 +33,9 @@ func _on_game_session_menu_button_pressed() -> void: func _mapmode_pressed(button : BaseButton) -> void: MapSingleton.set_mapmode(button.tooltip_text) mapmode_changed.emit() + +func _on_map_view_camera_changed(near_left : Vector2, far_left : Vector2, far_right : Vector2, near_right : Vector2) -> void: + map_view_camera_changed.emit(near_left, far_left, far_right, near_right) + +func _on_minimap_clicked(pos_clicked : Vector2) -> void: + minimap_clicked.emit(pos_clicked) |