233 lines
7.6 KiB
Plaintext
233 lines
7.6 KiB
Plaintext
[gd_scene load_steps=17 format=3 uid="uid://d1vowjv6aed2s"]
|
|
|
|
[ext_resource type="Script" uid="uid://q8x02edi74ew" path="res://scripts/ui.gd" id="1_ccvhj"]
|
|
[ext_resource type="Theme" uid="uid://b3faaa6kmpthu" path="res://resources/themes/standard_theme.tres" id="2_idm21"]
|
|
[ext_resource type="Texture2D" uid="uid://dqy4wi3vgajjc" path="res://resources/images/UI Adventure Pack/barRed_horizontalLeft.png" id="5_7dtyf"]
|
|
[ext_resource type="Texture2D" uid="uid://dplgenu43rc8r" path="res://resources/images/UI Adventure Pack/barBlue_horizontalLeft.png" id="6_7ufc2"]
|
|
[ext_resource type="Texture2D" uid="uid://bieh4ba001w81" path="res://resources/images/UI Adventure Pack/cursorSword_bronze.png" id="7_h3fq3"]
|
|
[ext_resource type="Texture2D" uid="uid://beadnoil0uqy2" path="res://resources/images/UI Adventure Pack/arrowBrown_left.png" id="8_mbjuo"]
|
|
[ext_resource type="Texture2D" uid="uid://bi8qx4ksyydrt" path="res://resources/images/UI Adventure Pack/arrowSilver_left.png" id="9_kifxc"]
|
|
[ext_resource type="Texture2D" uid="uid://cfpd0yrkim75s" path="res://resources/images/UI Adventure Pack/barBack_horizontalMid.png" id="9_soky1"]
|
|
[ext_resource type="Texture2D" uid="uid://bh6dxeecoc040" path="res://resources/images/UI Adventure Pack/arrowBrown_right.png" id="10_vfb7w"]
|
|
[ext_resource type="Texture2D" uid="uid://cvdadrdudg5t4" path="res://resources/images/UI Adventure Pack/arrowSilver_right.png" id="11_oen8p"]
|
|
[ext_resource type="Texture2D" uid="uid://7bb3euq2fgiw" path="res://resources/images/UI Adventure Pack/uipack_rpg_vector.svg" id="12_hm7ey"]
|
|
[ext_resource type="Texture2D" uid="uid://ca3i2uc1tplhs" path="res://resources/ui_atlas_texture.tres" id="13_8sxqo"]
|
|
[ext_resource type="Texture2D" uid="uid://d1lbwoyq7fkxr" path="res://resources/images/crosshairs.tres" id="13_gvkng"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7ucui"]
|
|
atlas = ExtResource("12_hm7ey")
|
|
region = Rect2(0, 280, 100, 100)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v7jgd"]
|
|
atlas = ExtResource("12_hm7ey")
|
|
region = Rect2(4, 504, 92, 92)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kin0h"]
|
|
atlas = ExtResource("12_hm7ey")
|
|
region = Rect2(338, 488, 16, 15)
|
|
|
|
[node name="UI" type="Control" node_paths=PackedStringArray("health_bar", "stamina_bar", "gold_label")]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_ccvhj")
|
|
health_bar = NodePath("Panel/PanelBackground/UiPanel/Stats/TextureProgressBarHealth")
|
|
stamina_bar = NodePath("Panel/PanelBackground/UiPanel/Stats/TextureProgressBarStamina")
|
|
gold_label = NodePath("Panel/PanelBackground/UiPanel/Stats/Gold")
|
|
|
|
[node name="Panel" type="BoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 8.0
|
|
offset_top = -112.0
|
|
offset_right = 352.0
|
|
offset_bottom = -12.0
|
|
grow_vertical = 0
|
|
|
|
[node name="PanelBackground" type="TextureRect" parent="Panel"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
texture = SubResource("AtlasTexture_7ucui")
|
|
|
|
[node name="UiPanel" type="HBoxContainer" parent="Panel/PanelBackground"]
|
|
layout_mode = 1
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 24.0
|
|
offset_top = -80.0
|
|
offset_right = 680.0
|
|
offset_bottom = -18.0
|
|
grow_vertical = 0
|
|
|
|
[node name="Description" type="VBoxContainer" parent="Panel/PanelBackground/UiPanel"]
|
|
layout_mode = 2
|
|
|
|
[node name="LabelHealth" type="Label" parent="Panel/PanelBackground/UiPanel/Description"]
|
|
layout_mode = 2
|
|
theme = ExtResource("2_idm21")
|
|
text = "Health"
|
|
|
|
[node name="LabelStamina" type="Label" parent="Panel/PanelBackground/UiPanel/Description"]
|
|
layout_mode = 2
|
|
theme = ExtResource("2_idm21")
|
|
text = "Stamina"
|
|
|
|
[node name="LabelGold" type="Label" parent="Panel/PanelBackground/UiPanel/Description"]
|
|
layout_mode = 2
|
|
theme = ExtResource("2_idm21")
|
|
text = "Gold"
|
|
|
|
[node name="Stats" type="VBoxContainer" parent="Panel/PanelBackground/UiPanel"]
|
|
layout_mode = 2
|
|
|
|
[node name="TextureProgressBarHealth" type="TextureProgressBar" parent="Panel/PanelBackground/UiPanel/Stats"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
size_flags_vertical = 3
|
|
value = 67.0
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 200
|
|
texture_under = ExtResource("9_soky1")
|
|
texture_progress = ExtResource("5_7dtyf")
|
|
|
|
[node name="TextureProgressBarStamina" type="TextureProgressBar" parent="Panel/PanelBackground/UiPanel/Stats"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
size_flags_vertical = 3
|
|
value = 100.0
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 200
|
|
texture_under = ExtResource("9_soky1")
|
|
texture_progress = ExtResource("6_7ufc2")
|
|
|
|
[node name="Gold" type="Label" parent="Panel/PanelBackground/UiPanel/Stats"]
|
|
layout_mode = 2
|
|
theme = ExtResource("2_idm21")
|
|
text = "0"
|
|
|
|
[node name="Vector" type="BoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 3
|
|
anchor_left = 1.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -56.0
|
|
offset_top = -56.0
|
|
offset_right = -7.0
|
|
offset_bottom = -7.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Vector"]
|
|
layout_mode = 2
|
|
|
|
[node name="TextureSword" type="TextureRect" parent="Vector/VBoxContainer"]
|
|
layout_mode = 2
|
|
texture = ExtResource("7_h3fq3")
|
|
stretch_mode = 3
|
|
|
|
[node name="LabelSword" type="Label" parent="Vector/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme = ExtResource("2_idm21")
|
|
text = "Sword"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Vector/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="TextureButton" type="TextureButton" parent="Vector/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("8_mbjuo")
|
|
texture_hover = ExtResource("9_kifxc")
|
|
stretch_mode = 3
|
|
|
|
[node name="TextureButton2" type="TextureButton" parent="Vector/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
texture_normal = ExtResource("10_vfb7w")
|
|
texture_hover = ExtResource("11_oen8p")
|
|
stretch_mode = 3
|
|
|
|
[node name="MessageBox" type="BoxContainer" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -108.0
|
|
offset_top = -60.0
|
|
offset_right = 108.0
|
|
offset_bottom = 60.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
alignment = 1
|
|
|
|
[node name="Background" type="TextureRect" parent="MessageBox"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
texture = SubResource("AtlasTexture_v7jgd")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MessageBox/Background"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -20.0
|
|
offset_right = 20.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
alignment = 1
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MessageBox/Background/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
|
|
[node name="LabelText" type="Label" parent="MessageBox/Background/VBoxContainer/VBoxContainer"]
|
|
custom_minimum_size = Vector2(200, 0)
|
|
layout_mode = 2
|
|
theme = ExtResource("2_idm21")
|
|
text = "WIllst du das Spiel beginnen?"
|
|
horizontal_alignment = 1
|
|
autowrap_mode = 2
|
|
|
|
[node name="TextureButton" type="TextureButton" parent="MessageBox/Background/VBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
texture_normal = ExtResource("13_8sxqo")
|
|
texture_hover = SubResource("AtlasTexture_kin0h")
|
|
stretch_mode = 3
|
|
|
|
[node name="CrossHair" type="BoxContainer" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -32.0
|
|
offset_top = -32.0
|
|
offset_right = 32.0
|
|
offset_bottom = 32.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="CrossHair"]
|
|
layout_mode = 2
|
|
texture = ExtResource("13_gvkng")
|
|
metadata/_edit_use_anchors_ = true
|