Added open close inventory

This commit is contained in:
cblech
2025-04-07 02:52:57 +02:00
parent c90687939c
commit 667ef6fb9b
5 changed files with 57 additions and 7 deletions
+7 -7
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=4 format=3 uid="uid://cgjc4wurbgimy"]
[gd_scene load_steps=5 format=3 uid="uid://cgjc4wurbgimy"]
[ext_resource type="Script" uid="uid://b7vlkecrn0t5c" path="res://scripts/CSharp/Common/Inventory/InventoryUi.cs" id="1_6wusm"]
[ext_resource type="Script" uid="uid://6def3c0mcnoq" path="res://prefabs/UI/Inventory/Slots.cs" id="2_5fdxq"]
[ext_resource type="Script" uid="uid://b2jhdxcrhtm2d" path="res://scripts/CSharp/Common/Inventory/InventoryTestScript.cs" id="3_exrk4"]
[ext_resource type="Resource" uid="uid://datee0flk1e84" path="res://resources/items/pickaxe.tres" id="4_5fdxq"]
@@ -16,17 +17,16 @@ script = ExtResource("1_6wusm")
[node name="Slots" type="GridContainer" parent="."]
custom_minimum_size = Vector2(500, 200)
layout_mode = 1
anchors_preset = 8
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -335.0
offset_right = 341.0
anchor_bottom = 1.0
offset_bottom = 200.0
grow_horizontal = 2
grow_vertical = 2
grow_vertical = 0
columns = 10
script = ExtResource("2_5fdxq")
[node name="InventoryTester" type="Node" parent="."]
script = ExtResource("3_exrk4")
+7
View File
@@ -0,0 +1,7 @@
using Godot;
using System;
public partial class Slots : GridContainer
{
}
+1
View File
@@ -0,0 +1 @@
uid://6def3c0mcnoq