[gd_scene load_steps=17 format=3 uid="uid://dmvukn3rl6gbx"] [ext_resource type="Script" path="res://Scenes/Player/UI/player_ui.gd" id="1_4nwdk"] [ext_resource type="PackedScene" uid="uid://dl0d1m1gfcd4o" path="res://Scenes/Player/UI/bat_button.tscn" id="1_tnnk6"] [ext_resource type="Theme" uid="uid://dr1h7to56a2pv" path="res://Themes/base_theme.tres" id="3_4fgkw"] [ext_resource type="ButtonGroup" uid="uid://gjbbywsr8n8b" path="res://Scenes/Player/UI/spawnables_button_group.tres" id="3_7a133"] [ext_resource type="Texture2D" uid="uid://kbd5cnmgbqso" path="res://Assets/Sprite-0001.png" id="4_s5lk5"] [ext_resource type="Texture2D" uid="uid://bof6qeuo2rnso" path="res://Assets/Knight/noBKG_KnightRun_strip.png" id="5_7a8uf"] [ext_resource type="Texture2D" uid="uid://djjqhipuo3byw" path="res://Assets/Knight/noBKG_KnightShield_strip.png" id="5_t0ay2"] [ext_resource type="Texture2D" uid="uid://iy5flm8rgj60" path="res://Assets/Inverted hourglass1.png" id="5_vr1sw"] [ext_resource type="Texture2D" uid="uid://p3scltkq3g87" path="res://Assets/16.png" id="6_id56p"] [ext_resource type="PackedScene" uid="uid://5yfkysexanoh" path="res://Scenes/Player/UI/wolf_button.tscn" id="10_igs07"] [ext_resource type="PackedScene" uid="uid://d370efcvbuchm" path="res://Scenes/Player/UI/necromancer_button.tscn" id="11_btls2"] [ext_resource type="PackedScene" uid="uid://dm60a0uaiusfj" path="res://Scenes/Player/UI/pit_fiend_button.tscn" id="12_jlddl"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_v6oad"] bg_color = Color(0.243137, 0.713726, 0.0627451, 0.301961) [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_b74dp"] bg_color = Color(0.333333, 0.721569, 0.270588, 0.886275) [sub_resource type="AtlasTexture" id="AtlasTexture_5ptrg"] atlas = ExtResource("5_7a8uf") region = Rect2(132.276, 0.393494, 39.1181, 55.8829) [sub_resource type="AtlasTexture" id="AtlasTexture_57m6r"] resource_local_to_scene = true atlas = ExtResource("5_t0ay2") region = Rect2(32, 0, 64, 64) [node name="PlayerUI" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 script = ExtResource("1_4nwdk") buttonGroup = ExtResource("3_7a133") [node name="MenuZone" type="Control" parent="."] layout_mode = 1 anchor_top = 0.859 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = 0.139984 grow_horizontal = 2 grow_vertical = 0 mouse_filter = 1 [node name="UIRoot" type="Control" parent="."] layout_mode = 1 anchors_preset = 12 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 16.0 offset_top = -60.0 offset_right = -16.0 offset_bottom = -12.0 grow_horizontal = 2 grow_vertical = 0 mouse_filter = 2 [node name="ColorRect" type="ColorRect" parent="UIRoot"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("3_4fgkw") color = Color(0.0156863, 0.207843, 0.341176, 0.12549) [node name="ControlPanel" type="HBoxContainer" parent="UIRoot"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 alignment = 1 [node name="StatPanel" type="HBoxContainer" parent="UIRoot/ControlPanel"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 0.65 mouse_filter = 2 [node name="Blud" type="Control" parent="UIRoot/ControlPanel/StatPanel"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 0.75 [node name="HBoxContainer" type="HBoxContainer" parent="UIRoot/ControlPanel/StatPanel/Blud"] layout_mode = 1 anchors_preset = 14 anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 0.5 offset_top = -20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 [node name="BludIcon" type="TextureRect" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer"] custom_minimum_size = Vector2(32, 32) layout_mode = 2 texture = ExtResource("4_s5lk5") expand_mode = 1 stretch_mode = 5 [node name="Label" type="Label" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer"] layout_mode = 2 theme = ExtResource("3_4fgkw") text = "| " [node name="VBoxContainer" type="VBoxContainer" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer"] layout_mode = 2 [node name="BludGenContainer" type="HBoxContainer" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer/VBoxContainer"] layout_mode = 2 [node name="BludGen" type="Label" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer/VBoxContainer/BludGenContainer"] layout_mode = 2 theme = ExtResource("3_4fgkw") text = "10" [node name="suffix" type="Label" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer/VBoxContainer/BludGenContainer"] layout_mode = 2 theme = ExtResource("3_4fgkw") text = "/s" [node name="BludTotalContainer" type="HBoxContainer" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer/VBoxContainer"] layout_mode = 2 [node name="BludTotal" type="Label" parent="UIRoot/ControlPanel/StatPanel/Blud/HBoxContainer/VBoxContainer/BludTotalContainer"] layout_mode = 2 theme = ExtResource("3_4fgkw") text = "100" vertical_alignment = 2 [node name="Middle" type="VBoxContainer" parent="UIRoot/ControlPanel/StatPanel"] layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 0.5 [node name="Time" type="Control" parent="UIRoot/ControlPanel/StatPanel/Middle"] layout_mode = 2 size_flags_vertical = 3 [node name="HBoxContainer" type="HBoxContainer" parent="UIRoot/ControlPanel/StatPanel/Middle/Time"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_top = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Hourglass" type="TextureRect" parent="UIRoot/ControlPanel/StatPanel/Middle/Time/HBoxContainer"] layout_mode = 2 texture = ExtResource("5_vr1sw") expand_mode = 2 stretch_mode = 5 [node name="TimeLabel" type="Label" parent="UIRoot/ControlPanel/StatPanel/Middle/Time/HBoxContainer"] layout_mode = 2 theme = ExtResource("3_4fgkw") text = "240 s" vertical_alignment = 2 [node name="ArmySize" type="Control" parent="UIRoot/ControlPanel/StatPanel/Middle"] layout_mode = 2 size_flags_vertical = 3 [node name="HBoxContainer" type="HBoxContainer" parent="UIRoot/ControlPanel/StatPanel/Middle/ArmySize"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_bottom = -1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Head" type="TextureRect" parent="UIRoot/ControlPanel/StatPanel/Middle/ArmySize/HBoxContainer"] layout_mode = 2 texture = ExtResource("6_id56p") expand_mode = 2 stretch_mode = 5 [node name="ArmyCount" type="Label" parent="UIRoot/ControlPanel/StatPanel/Middle/ArmySize/HBoxContainer"] layout_mode = 2 theme = ExtResource("3_4fgkw") text = "0" vertical_alignment = 2 [node name="Other" type="Control" parent="UIRoot/ControlPanel/StatPanel"] layout_mode = 2 size_flags_horizontal = 3 [node name="MarginContainer" type="MarginContainer" parent="UIRoot/ControlPanel/StatPanel/Other"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 0 theme_override_constants/margin_top = 5 theme_override_constants/margin_bottom = 5 [node name="GridContainer" type="GridContainer" parent="UIRoot/ControlPanel/StatPanel/Other/MarginContainer"] layout_mode = 2 [node name="EnemyXPBar" type="ProgressBar" parent="UIRoot/ControlPanel/StatPanel/Other/MarginContainer/GridContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme = ExtResource("3_4fgkw") theme_override_styles/background = SubResource("StyleBoxFlat_v6oad") theme_override_styles/fill = SubResource("StyleBoxFlat_b74dp") max_value = 300.0 step = 1.0 value = 100.0 show_percentage = false [node name="EnemyTexture" type="TextureRect" parent="UIRoot/ControlPanel/StatPanel/Other/MarginContainer/GridContainer/EnemyXPBar"] layout_mode = 1 anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 offset_top = -16.5 offset_right = 24.0 offset_bottom = 16.5 grow_vertical = 2 texture = SubResource("AtlasTexture_5ptrg") expand_mode = 3 stretch_mode = 5 [node name="EnemyXPLabel" type="Label" parent="UIRoot/ControlPanel/StatPanel/Other/MarginContainer/GridContainer/EnemyXPBar"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -0.5 offset_top = -11.5 offset_right = 0.5 offset_bottom = 11.5 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 6 text = "Lvl 1 (100/300xp)" vertical_alignment = 1 [node name="EnemyHPBar" type="ProgressBar" parent="UIRoot/ControlPanel/StatPanel/Other/MarginContainer/GridContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 theme = ExtResource("3_4fgkw") step = 1.0 value = 99.0 show_percentage = false [node name="EnemyTexture" type="TextureRect" parent="UIRoot/ControlPanel/StatPanel/Other/MarginContainer/GridContainer/EnemyHPBar"] layout_mode = 1 anchors_preset = 9 anchor_bottom = 1.0 offset_top = -8.0 offset_right = 33.0 offset_bottom = 8.0 grow_vertical = 2 texture = SubResource("AtlasTexture_57m6r") expand_mode = 4 stretch_mode = 5 [node name="EnemyHPLabel" type="Label" parent="UIRoot/ControlPanel/StatPanel/Other/MarginContainer/GridContainer/EnemyHPBar"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -0.5 offset_top = -11.5 offset_right = 0.5 offset_bottom = 11.5 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 6 text = "99/100 HP" vertical_alignment = 1 [node name="ButtonPanel" type="HBoxContainer" parent="UIRoot/ControlPanel"] layout_mode = 2 size_flags_horizontal = 3 mouse_filter = 2 [node name="BatButton" parent="UIRoot/ControlPanel/ButtonPanel" instance=ExtResource("1_tnnk6")] layout_mode = 2 [node name="WolfButton" parent="UIRoot/ControlPanel/ButtonPanel" instance=ExtResource("10_igs07")] layout_mode = 2 [node name="NecromancerButton" parent="UIRoot/ControlPanel/ButtonPanel" instance=ExtResource("11_btls2")] layout_mode = 2 [node name="PitFiendButton" parent="UIRoot/ControlPanel/ButtonPanel" instance=ExtResource("12_jlddl")] layout_mode = 2