aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/Minimap.gd
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2023-04-29 00:48:13 +0200
committer GitHub <noreply@github.com>2023-04-29 00:48:13 +0200
commit5195a460330af234391dfdc892847d74d0d29393 (patch)
tree588f505bd94991b3a6c7a95b18b02e712df36cc7 /game/src/GameSession/Minimap.gd
parent1b35c3a4434873b98f8e3aa7770f0edd37ec053c (diff)
parent05937359e8c53ee76dc3ce537dd70083a016f766 (diff)
Merge branch 'main' into goods
Diffstat (limited to 'game/src/GameSession/Minimap.gd')
-rw-r--r--game/src/GameSession/Minimap.gd7
1 files changed, 7 insertions, 0 deletions
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