aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/MapControlPanel.tscn
blob: 70d7eabf7ad0b6d1aaa789f35ca753cf0c5bc8b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[gd_scene load_steps=7 format=3 uid="uid://g524p8lr574w"]

[ext_resource type="Script" path="res://src/GameSession/MapControlPanel.gd" id="1_ign64"]
[ext_resource type="Texture2D" uid="uid://c0sm1jfu4kyv3" path="res://art/ui/minimap.png" id="2_r613r"]
[ext_resource type="Script" path="res://src/GameSession/Minimap.gd" id="3_s4dml"]
[ext_resource type="Texture2D" uid="uid://vr1hq2stk8ny" path="res://art/ui/minimap_frame.png" id="4_f1exl"]

[sub_resource type="InputEventAction" id="InputEventAction_5nck3"]
action = &"ui_cancel"

[sub_resource type="Shortcut" id="Shortcut_fc1tk"]
events = [SubResource("InputEventAction_5nck3")]

[node name="MapControlPanel" type="PanelContainer" node_paths=PackedStringArray("_mapmodes_grid")]
editor_description = "SS-103"
mouse_filter = 1
script = ExtResource("1_ign64")
_mapmodes_grid = NodePath("HBoxContainer/VBoxContainer/MapmodesGrid")

[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
alignment = 2

[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2

[node name="MapmodesGrid" type="GridContainer" parent="HBoxContainer/VBoxContainer"]
editor_description = "UI-750"
layout_mode = 2
columns = 11

[node name="Minimap" type="PanelContainer" parent="HBoxContainer/VBoxContainer"]
editor_description = "UI-549"
layout_mode = 2
mouse_filter = 1

[node name="TextureRect" type="TextureRect" parent="HBoxContainer/VBoxContainer/Minimap"]
editor_description = "UI-751, FS-338"
layout_mode = 2
texture = ExtResource("2_r613r")

[node name="ViewportQuad" type="Control" parent="HBoxContainer/VBoxContainer/Minimap"]
layout_mode = 2
mouse_filter = 2
script = ExtResource("3_s4dml")

[node name="Frame" type="NinePatchRect" parent="HBoxContainer/VBoxContainer/Minimap"]
layout_mode = 2
texture = ExtResource("4_f1exl")

[node name="AuxiliaryPanel" type="VBoxContainer" parent="HBoxContainer"]
editor_description = "UI-761"
layout_mode = 2

[node name="GameSessionMenuButton" type="Button" parent="HBoxContainer/AuxiliaryPanel"]
editor_description = "UI-9"
layout_mode = 2
shortcut = SubResource("Shortcut_fc1tk")
text = "ESC"

[connection signal="map_view_camera_changed" from="." to="HBoxContainer/VBoxContainer/Minimap/ViewportQuad" method="_on_map_view_camera_changed"]
[connection signal="minimap_clicked" from="HBoxContainer/VBoxContainer/Minimap/ViewportQuad" to="." method="_on_minimap_clicked"]
[connection signal="pressed" from="HBoxContainer/AuxiliaryPanel/GameSessionMenuButton" to="." method="_on_game_session_menu_button_pressed"]