2020-09-24 17:03:47 +02:00
|
|
|
[gd_scene load_steps=10 format=2]
|
2019-11-20 14:30:34 +01:00
|
|
|
|
2022-02-12 19:45:36 +01:00
|
|
|
[ext_resource path="res://ui/theme/ui_theme.tres" type="Theme" id=1]
|
|
|
|
[ext_resource path="res://ui/theme/locked_icon.tres" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://ui/theme/menu_icon.tres" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://ui/theme/unlocked_icon.tres" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://player/GUI.gd" type="Script" id=5]
|
|
|
|
[ext_resource path="res://ui/player/player_ui/player_ui.gd" type="Script" id=6]
|
2022-02-12 19:59:26 +01:00
|
|
|
[ext_resource path="res://ui/player/player_ui/ingame_menu/IngameMenu.tscn" type="PackedScene" id=7]
|
2022-02-12 19:52:07 +01:00
|
|
|
[ext_resource path="res://ui/player/player_ui/buttons/Buttons.gd" type="Script" id=8]
|
|
|
|
[ext_resource path="res://ui/player/player_ui/buttons/ImageButton.tscn" type="PackedScene" id=9]
|
2019-11-20 14:30:34 +01:00
|
|
|
|
|
|
|
[node name="GUILayer" type="CanvasLayer"]
|
2022-02-12 19:45:36 +01:00
|
|
|
script = ExtResource( 6 )
|
2020-09-22 15:10:34 +02:00
|
|
|
gui_base_path = NodePath("GUI")
|
|
|
|
buttons_path = NodePath("GUI/Buttons")
|
|
|
|
windows_path = NodePath("GUI/Windows")
|
2019-11-20 14:30:34 +01:00
|
|
|
|
|
|
|
[node name="GUI" type="Control" parent="."]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
mouse_filter = 2
|
2022-02-12 19:45:36 +01:00
|
|
|
theme = ExtResource( 1 )
|
|
|
|
script = ExtResource( 5 )
|
2019-11-20 14:30:34 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_lock_": true
|
|
|
|
}
|
|
|
|
|
2020-07-29 22:46:52 +02:00
|
|
|
[node name="Buttons" type="HBoxContainer" parent="GUI"]
|
2019-11-20 14:30:34 +01:00
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2020-07-29 22:46:52 +02:00
|
|
|
margin_top = -40.0
|
|
|
|
margin_right = 342.0
|
|
|
|
rect_min_size = Vector2( 0, 40 )
|
2019-11-20 14:30:34 +01:00
|
|
|
mouse_filter = 2
|
2020-07-29 22:46:52 +02:00
|
|
|
custom_constants/separation = 0
|
2022-02-12 19:45:36 +01:00
|
|
|
script = ExtResource( 8 )
|
2019-11-20 14:30:34 +01:00
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true,
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2022-02-12 19:45:36 +01:00
|
|
|
image_button = ExtResource( 9 )
|
2020-07-29 22:46:52 +02:00
|
|
|
lock_button_path = NodePath("LockButton")
|
2019-11-20 14:30:34 +01:00
|
|
|
|
2020-09-24 10:55:50 +02:00
|
|
|
[node name="LockButton" type="Button" parent="GUI/Buttons"]
|
2020-09-24 11:11:50 +02:00
|
|
|
margin_right = 25.0
|
2020-07-29 22:46:52 +02:00
|
|
|
margin_bottom = 40.0
|
|
|
|
rect_min_size = Vector2( 25, 30 )
|
2019-11-20 14:30:34 +01:00
|
|
|
toggle_mode = true
|
|
|
|
keep_pressed_outside = true
|
|
|
|
|
2020-07-29 22:46:52 +02:00
|
|
|
[node name="locked" type="TextureRect" parent="GUI/Buttons/LockButton"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2022-02-12 19:45:36 +01:00
|
|
|
texture = ExtResource( 2 )
|
2019-11-20 14:30:34 +01:00
|
|
|
expand = true
|
|
|
|
stretch_mode = 6
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-07-29 22:46:52 +02:00
|
|
|
[node name="unlocked" type="TextureRect" parent="GUI/Buttons/LockButton"]
|
2019-11-20 14:30:34 +01:00
|
|
|
visible = false
|
2020-07-29 22:46:52 +02:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2022-02-12 19:45:36 +01:00
|
|
|
texture = ExtResource( 4 )
|
2019-11-20 14:30:34 +01:00
|
|
|
expand = true
|
|
|
|
stretch_mode = 6
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2020-07-29 22:46:52 +02:00
|
|
|
[node name="Menu" type="Button" parent="GUI/Buttons"]
|
2020-09-24 11:11:50 +02:00
|
|
|
margin_left = 25.0
|
|
|
|
margin_right = 50.0
|
2020-07-29 22:46:52 +02:00
|
|
|
margin_bottom = 40.0
|
|
|
|
rect_min_size = Vector2( 25, 30 )
|
2019-11-20 14:30:34 +01:00
|
|
|
keep_pressed_outside = true
|
2020-07-29 22:46:52 +02:00
|
|
|
|
|
|
|
[node name="TextureRect3" type="TextureRect" parent="GUI/Buttons/Menu"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2022-02-12 19:45:36 +01:00
|
|
|
texture = ExtResource( 3 )
|
2020-07-29 22:46:52 +02:00
|
|
|
expand = true
|
|
|
|
stretch_mode = 6
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2019-11-20 14:30:34 +01:00
|
|
|
|
|
|
|
[node name="Windows" type="CanvasLayer" parent="GUI"]
|
|
|
|
layer = 2
|
|
|
|
|
2022-02-12 19:45:36 +01:00
|
|
|
[node name="IngameMenu" parent="GUI" instance=ExtResource( 7 )]
|
2019-11-20 14:30:34 +01:00
|
|
|
visible = false
|
2020-10-06 21:10:15 +02:00
|
|
|
|
2020-07-29 22:46:52 +02:00
|
|
|
[connection signal="pressed" from="GUI/Buttons/Menu" to="GUI/IngameMenu" method="show"]
|
2020-07-31 01:15:13 +02:00
|
|
|
|
|
|
|
[editable path="GUI/IngameMenu"]
|