TinyAdventure/ui/game_ui.tscn

249 lines
9.0 KiB
Plaintext
Raw Normal View History

2024-07-09 22:33:38 +02:00
[gd_scene load_steps=9 format=3 uid="uid://cqmnmqjsutedj"]
[ext_resource type="Theme" uid="uid://dmk7hc81l8gbw" path="res://ui/ui_theme.tres" id="1_xu30n"]
[ext_resource type="Script" path="res://GameUI.gd" id="2_vb3s6"]
2024-07-20 09:49:49 +02:00
[ext_resource type="Texture2D" uid="uid://c7fu3paj3b4e8" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/cursorSword_silver.png" id="3_vepel"]
[ext_resource type="Texture2D" uid="uid://drpl0ql1p3pfk" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/cursorSword_gold.png" id="4_ijjgh"]
[ext_resource type="Texture2D" uid="uid://cq8ypeagpedq" path="res://assets/3rdparty/kenney/ui-pack-rpg-expansion/PNG/cursorSword_bronze.png" id="5_4e7rh"]
2024-07-09 22:33:38 +02:00
[ext_resource type="Script" path="res://ui/inventory_dialog.gd" id="6_lssx5"]
[ext_resource type="PackedScene" uid="uid://dp3fi0g53qrt2" path="res://ui/item_slot.tscn" id="7_2r38a"]
[ext_resource type="PackedScene" uid="uid://bwui4acukq4x6" path="res://ui/item_grid.tscn" id="8_igemi"]
[node name="GameUI" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource("1_xu30n")
script = ExtResource("2_vb3s6")
[node name="ToolSlots" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -67.0
offset_top = -77.0
offset_right = 67.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/margin_bottom = 32
[node name="PanelContainer" type="PanelContainer" parent="ToolSlots"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="ToolSlots/PanelContainer"]
layout_mode = 2
[node name="Button2" type="Button" parent="ToolSlots/PanelContainer/HBoxContainer"]
layout_mode = 2
icon = ExtResource("3_vepel")
[node name="Button3" type="Button" parent="ToolSlots/PanelContainer/HBoxContainer"]
layout_mode = 2
icon = ExtResource("4_ijjgh")
[node name="Button" type="Button" parent="ToolSlots/PanelContainer/HBoxContainer"]
layout_mode = 2
icon = ExtResource("5_4e7rh")
[node name="MessagesContainer" type="MarginContainer" parent="."]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -244.5
offset_right = 244.5
offset_bottom = 67.0
grow_horizontal = 2
theme_override_constants/margin_top = 32
[node name="MessageTextEdit" type="TextEdit" parent="MessagesContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Picked Up Some Stuff !"
scroll_fit_content_height = true
[node name="MessageTimer" type="Timer" parent="MessagesContainer"]
unique_name_in_owner = true
wait_time = 2.0
[node name="InventoryDialog" type="MarginContainer" parent="."]
unique_name_in_owner = true
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 = 40
theme_override_constants/margin_top = 82
theme_override_constants/margin_right = 40
theme_override_constants/margin_bottom = 128
script = ExtResource("6_lssx5")
slot_scene = ExtResource("7_2r38a")
[node name="Panel" type="Panel" parent="InventoryDialog"]
layout_mode = 2
[node name="PanelContainer" type="VBoxContainer" parent="InventoryDialog/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Title" type="HBoxContainer" parent="InventoryDialog/Panel/PanelContainer"]
layout_mode = 2
size_flags_vertical = 0
[node name="Label" type="Label" parent="InventoryDialog/Panel/PanelContainer/Title"]
layout_mode = 2
size_flags_horizontal = 3
text = "Inventory"
horizontal_alignment = 1
[node name="CloseButton" type="Button" parent="InventoryDialog/Panel/PanelContainer/Title"]
layout_mode = 2
text = " X "
[node name="CraftingUI" type="MarginContainer" parent="InventoryDialog/Panel/PanelContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="HBoxContainer" type="HBoxContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI"]
layout_mode = 2
theme_override_constants/separation = 17
[node name="Recipes" type="VBoxContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes"]
layout_mode = 2
text = "Recipes"
[node name="RecipeList" type="ItemList" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("1_xu30n")
item_count = 2
item_0/text = "Blab"
item_1/text = "Bloobalb"
[node name="CraftIngredients" type="VBoxContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
layout_mode = 2
text = "Ingredients"
[node name="Panel" type="Panel" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
layout_mode = 2
size_flags_vertical = 3
[node name="CenterContainer" type="CenterContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -254.5
offset_top = -32.0
offset_right = 254.5
offset_bottom = 32.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 3
[node name="IngredientsContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients/Panel/CenterContainer" instance=ExtResource("8_igemi")]
unique_name_in_owner = true
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
layout_mode = 2
alignment = 1
[node name="Control" type="Control" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftIngredients"]
layout_mode = 2
[node name="Label" type="Label" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.2
text = "->"
horizontal_alignment = 1
[node name="CraftResult" type="VBoxContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
layout_mode = 2
text = "Result"
[node name="Panel" type="Panel" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
layout_mode = 2
size_flags_vertical = 3
[node name="CenterContainer" type="CenterContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="ResultsContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/Panel/CenterContainer" instance=ExtResource("8_igemi")]
unique_name_in_owner = true
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult"]
layout_mode = 2
alignment = 1
[node name="CraftButton" type="Button" parent="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Craft"
[node name="BackpackUI" type="MarginContainer" parent="InventoryDialog/Panel/PanelContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="VBoxContainer" type="VBoxContainer" parent="InventoryDialog/Panel/PanelContainer/BackpackUI"]
layout_mode = 2
[node name="Label" type="Label" parent="InventoryDialog/Panel/PanelContainer/BackpackUI/VBoxContainer"]
layout_mode = 2
text = "Backpack"
[node name="InventoryContainer" parent="InventoryDialog/Panel/PanelContainer/BackpackUI/VBoxContainer" instance=ExtResource("8_igemi")]
unique_name_in_owner = true
layout_mode = 2
[connection signal="timeout" from="MessagesContainer/MessageTimer" to="." method="_on_message_timer_timeout"]
[connection signal="pressed" from="InventoryDialog/Panel/PanelContainer/Title/CloseButton" to="InventoryDialog" method="_on_close_button_pressed"]
[connection signal="item_selected" from="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/Recipes/RecipeList" to="InventoryDialog" method="_on_recipe_list_item_selected"]
[connection signal="pressed" from="InventoryDialog/Panel/PanelContainer/CraftingUI/HBoxContainer/CraftResult/HBoxContainer/CraftButton" to="InventoryDialog" method="_on_craft_button_pressed"]