Added item resources
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://dagn5bf7ou3sd"]
|
||||
[gd_scene load_steps=14 format=3 uid="uid://dagn5bf7ou3sd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cch67vqpsmtej" path="res://ui/debug/DebugLabel.tscn" id="1_7s8uu"]
|
||||
[ext_resource type="Script" path="res://ui/UI.gd" id="1_l5b6o"]
|
||||
@ -12,6 +12,7 @@
|
||||
[ext_resource type="Script" path="res://ui/debug/DownloadLabel.gd" id="8_ogt38"]
|
||||
[ext_resource type="Script" path="res://ui/connect/ConnectPanel.gd" id="11_cwl0t"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqpbrju7mc7d5" path="res://ui/settings/Settings.tscn" id="11_rt7sl"]
|
||||
[ext_resource type="PackedScene" uid="uid://y6kdpmp5glv0" path="res://ui/inventory/Inventory.tscn" id="13_1fc2b"]
|
||||
|
||||
[node name="UI" type="Control"]
|
||||
layout_mode = 3
|
||||
@ -131,6 +132,14 @@ text = "Connecting..."
|
||||
[node name="Settings" parent="Canvas" instance=ExtResource("11_rt7sl")]
|
||||
visible = false
|
||||
|
||||
[node name="Inventory" parent="Canvas" instance=ExtResource("13_1fc2b")]
|
||||
visible = false
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.25
|
||||
anchor_top = 0.25
|
||||
anchor_right = 0.75
|
||||
anchor_bottom = 0.75
|
||||
|
||||
[connection signal="focus_entered" from="Canvas/BottomLeft/Chat/ChatInput" to="Canvas/BottomLeft/Chat/ChatInput" method="_on_focus_entered"]
|
||||
[connection signal="focus_exited" from="Canvas/BottomLeft/Chat/ChatInput" to="Canvas/BottomLeft/Chat/ChatInput" method="_on_focus_exited"]
|
||||
[connection signal="text_submitted" from="Canvas/BottomLeft/Chat/ChatInput" to="Canvas/BottomLeft/Chat/ChatInput" method="_on_text_submitted"]
|
||||
|
65
client/ui/inventory/Inventory.tscn
Normal file
65
client/ui/inventory/Inventory.tscn
Normal file
@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://y6kdpmp5glv0"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bjjxxh6o405ci" path="res://ui/inventory/InventorySlot.tscn" id="1_s830e"]
|
||||
|
||||
[node name="Inventory" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Inventory"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="PanelContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
columns = 5
|
||||
|
||||
[node name="InventorySlot" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot2" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot3" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot4" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot5" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot6" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot7" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot8" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot9" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="InventorySlot10" parent="PanelContainer/VBoxContainer/GridContainer" instance=ExtResource("1_s830e")]
|
||||
layout_mode = 2
|
9
client/ui/inventory/InventorySlot.tscn
Normal file
9
client/ui/inventory/InventorySlot.tscn
Normal file
@ -0,0 +1,9 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bjjxxh6o405ci"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://biplb56hj51h7" path="res://ui/icon.svg" id="1_0whqe"]
|
||||
|
||||
[node name="InventorySlot" type="PanelContainer"]
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("1_0whqe")
|
Reference in New Issue
Block a user