mirror of
https://github.com/D4M13N-D3V/godot_grid_inventory.git
synced 2025-03-14 08:14:55 +00:00
104 lines
3.0 KiB
Plaintext
104 lines
3.0 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://brs6u78mwggbp"]
|
|
|
|
[ext_resource type="Script" path="res://grid_inventory_system/scripts/InventoryController.gd" id="1_hmtt6"]
|
|
[ext_resource type="Script" path="res://grid_inventory_system/scripts/InventoryGrid.gd" id="2_8imhp"]
|
|
[ext_resource type="Script" path="res://grid_inventory_system/scripts/ItemEquipmentSlots.gd" id="3_sri3o"]
|
|
[ext_resource type="PackedScene" uid="uid://c2c7v5idagdqr" path="res://grid_inventory_system/debug/debug_ui.tscn" id="4_abx0e"]
|
|
|
|
[node name="Inventory" type="Control" node_paths=PackedStringArray("inventory_grid", "inventory_background", "inventory_equipment_slots")]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_hmtt6")
|
|
inventory_grid = NodePath("UI/Background/Items")
|
|
inventory_background = NodePath("UI/Background")
|
|
inventory_equipment_slots = NodePath("UI/Background/Equipment")
|
|
|
|
[node name="UI" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Background" type="ColorRect" parent="UI"]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -473.5
|
|
offset_top = -235.5
|
|
offset_right = 473.5
|
|
offset_bottom = 235.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.121569, 0.121569, 0.121569, 1)
|
|
|
|
[node name="Equipment" type="ColorRect" parent="UI/Background"]
|
|
layout_mode = 1
|
|
anchors_preset = 11
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = -237.0
|
|
offset_top = 4.0
|
|
offset_right = -4.0
|
|
offset_bottom = -4.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
color = Color(0.184314, 0.184314, 0.184314, 1)
|
|
script = ExtResource("3_sri3o")
|
|
|
|
[node name="HEAD" type="ColorRect" parent="UI/Background/Equipment"]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -37.0
|
|
offset_top = 16.5
|
|
offset_right = 38.0
|
|
offset_bottom = 91.5
|
|
grow_horizontal = 2
|
|
color = Color(0.278431, 0.278431, 0.278431, 1)
|
|
|
|
[node name="BODY" type="ColorRect" parent="UI/Background/Equipment"]
|
|
layout_mode = 1
|
|
anchors_preset = 4
|
|
anchor_top = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = 32.5
|
|
offset_top = -121.0
|
|
offset_right = 202.5
|
|
offset_bottom = 49.0
|
|
grow_vertical = 2
|
|
color = Color(0.278431, 0.278431, 0.278431, 1)
|
|
|
|
[node name="WEAPON" type="ColorRect" parent="UI/Background/Equipment"]
|
|
layout_mode = 1
|
|
anchors_preset = 4
|
|
anchor_top = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = 7.5
|
|
offset_top = 91.0
|
|
offset_right = 227.5
|
|
offset_bottom = 194.0
|
|
grow_vertical = 2
|
|
color = Color(0.278431, 0.278431, 0.278431, 1)
|
|
|
|
[node name="Items" type="ColorRect" parent="UI/Background"]
|
|
layout_mode = 1
|
|
anchors_preset = 9
|
|
anchor_bottom = 1.0
|
|
offset_left = 12.0
|
|
offset_top = 8.0
|
|
offset_right = 701.0
|
|
offset_bottom = -8.0
|
|
grow_vertical = 2
|
|
color = Color(0.164706, 0.164706, 0.164706, 1)
|
|
script = ExtResource("2_8imhp")
|
|
inventory_item_grid_width = 21
|
|
inventory_item_grid_height = 14
|
|
inventory_grid_default_color = Color(1, 1, 1, 1)
|
|
inventory_grid_used_color = Color(0, 1, 0, 1)
|
|
|
|
[node name="DEBUG" parent="." instance=ExtResource("4_abx0e")]
|