title says all. next up: fixing the bugs of the texturerects in the inventory after equipping an item, it gets bigger because the created image is 128x128, but should be dynamic dependant on the viewport window size
153 lines
5.3 KiB
Text
153 lines
5.3 KiB
Text
[gd_scene format=3 uid="uid://bsccbqq04umeg"]
|
|
|
|
[ext_resource type="Script" uid="uid://lkb0o8too0mj" path="res://scenes/player/ui_manager_scene.gd" id="1_32d7b"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_m6sn8"]
|
|
bg_color = Color(0.23921569, 0.23921569, 0.23921569, 0.47058824)
|
|
|
|
[node name="PlayerUi" type="Control" unique_id=454848358]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
offset_transform_enabled = true
|
|
mouse_filter = 2
|
|
mouse_behavior_recursive = 2
|
|
script = ExtResource("1_32d7b")
|
|
|
|
[node name="InvContainer" type="MarginContainer" parent="." unique_id=1895029439]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.3
|
|
anchor_top = 0.87
|
|
anchor_right = 0.7
|
|
anchor_bottom = 0.98
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
offset_transform_position = Vector2(0.295, 0)
|
|
|
|
[node name="InventoryPanels" type="HBoxContainer" parent="InvContainer" unique_id=786436241]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
offset_transform_position = Vector2(0, -29.25)
|
|
offset_transform_visual_only = false
|
|
alignment = 1
|
|
|
|
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=1753013707]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot1Container" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer" unique_id=1847508075]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="InvSlot1" type="TextureRect" parent="InvContainer/InventoryPanels/AspectRatioContainer/InvSlot1Container" unique_id=707719551]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="AspectRatioContainer2" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=305641278]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot2Container" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer2" unique_id=2121530771]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="InvSlot2" type="TextureRect" parent="InvContainer/InventoryPanels/AspectRatioContainer2/InvSlot2Container" unique_id=265967012]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="AspectRatioContainer3" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=1408216345]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot3Container" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer3" unique_id=1616781961]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="InvSlot3" type="TextureRect" parent="InvContainer/InventoryPanels/AspectRatioContainer3/InvSlot3Container" unique_id=1230703223]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="AspectRatioContainer4" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=876478547]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot4Container" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer4" unique_id=1782511400]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="InvSlot4" type="TextureRect" parent="InvContainer/InventoryPanels/AspectRatioContainer4/InvSlot4Container" unique_id=522773629]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="AspectRatioContainer5" type="AspectRatioContainer" parent="InvContainer/InventoryPanels" unique_id=1510462561]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
stretch_mode = 1
|
|
|
|
[node name="InvSlot5Container" type="PanelContainer" parent="InvContainer/InventoryPanels/AspectRatioContainer5" unique_id=1512950913]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_m6sn8")
|
|
|
|
[node name="InvSlot5" type="TextureRect" parent="InvContainer/InventoryPanels/AspectRatioContainer5/InvSlot5Container" unique_id=143698041]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="StaminaBarMargin" type="MarginContainer" parent="." unique_id=707986637]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.07
|
|
anchor_top = 0.85
|
|
anchor_right = 0.27
|
|
anchor_bottom = 1.0
|
|
grow_vertical = 0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
theme_override_constants/margin_left = 0
|
|
theme_override_constants/margin_right = 0
|
|
|
|
[node name="StaminaBar" type="ProgressBar" parent="StaminaBarMargin" unique_id=1844702202]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 50)
|
|
layout_mode = 2
|
|
offset_transform_enabled = true
|
|
offset_transform_rotation = -0.34906584
|
|
show_percentage = false
|
|
|
|
[node name="FlashlightBarMargin" type="MarginContainer" parent="." unique_id=915568145]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.73
|
|
anchor_top = 0.85
|
|
anchor_right = 0.93
|
|
anchor_bottom = 1.0
|
|
offset_left = -4.0
|
|
offset_top = -4.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 0
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
|
|
[node name="FlashlightBar" type="ProgressBar" parent="FlashlightBarMargin" unique_id=551784534]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(50, 50)
|
|
layout_mode = 2
|
|
offset_transform_enabled = true
|
|
offset_transform_rotation = 0.34906584
|
|
fill_mode = 1
|
|
show_percentage = false
|