From 5022ec800b096e9a85d6ef07ca4b652abb8625ee Mon Sep 17 00:00:00 2001 From: Hop311 Date: Fri, 28 Apr 2023 19:08:58 +0100 Subject: Terrain channel for provinces + generated minimap --- game/src/GameSession/Minimap.gd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'game/src/GameSession/Minimap.gd') diff --git a/game/src/GameSession/Minimap.gd b/game/src/GameSession/Minimap.gd index 25c7cac..05c662b 100644 --- a/game/src/GameSession/Minimap.gd +++ b/game/src/GameSession/Minimap.gd @@ -4,8 +4,15 @@ signal minimap_clicked(pos_clicked : Vector2) const _action_click : StringName = &"map_click" +@export var _minimap_texture : Control + var _viewport_points : PackedVector2Array +func _ready(): + _minimap_texture.custom_minimum_size = Vector2(GameSingleton.get_aspect_ratio(), 1.0) * 150 + if Events.ShaderManager.set_up_shader(_minimap_texture.get_material(), false) != OK: + push_error("Failed to set up minimap shader") + # REQUIREMENTS # * SS-80 # * UI-752 -- cgit v1.2.3-56-ga3b1