mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 19:13:46 +00:00
UI Inventory management
This commit is contained in:
parent
f4f193af7a
commit
c9abac3dc1
20 changed files with 262 additions and 72 deletions
|
|
@ -1,8 +1,9 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Hud.cs" id="1_m0hb0"]
|
||||
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="2_0xmx2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dde36pgb8fbwc" path="res://Sprites/selector_big.png" id="3_hee3i"]
|
||||
[ext_resource type="PackedScene" uid="uid://cicthr1v5v4s2" path="res://Scenes/HUD/Items/icicle_gun.tscn" id="4_m333p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h626b"]
|
||||
atlas = ExtResource("3_hee3i")
|
||||
|
|
@ -63,6 +64,10 @@ frame_progress = 0.8514
|
|||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 4.0
|
||||
offset_top = 6.0
|
||||
offset_right = -4.0
|
||||
offset_bottom = -3.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
|
|
@ -76,3 +81,14 @@ text = "100/100"
|
|||
|
||||
[node name="ItemsContainer" type="VBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/ItemsContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="IcicleGun" parent="VBoxContainer/ItemsContainer/HBoxContainer" instance=ExtResource("4_m333p")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/ItemsContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 10
|
||||
text = "100/300"
|
||||
|
|
|
|||
7
Scenes/HUD/Items/ammo.tscn
Normal file
7
Scenes/HUD/Items/ammo.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cjv4yahpb0h2l"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c5g0qg6u2gm6f" path="res://Sprites/Items/Ammo1.png" id="1_at3u7"]
|
||||
|
||||
[node name="Ammo" type="TextureRect"]
|
||||
texture = ExtResource("1_at3u7")
|
||||
stretch_mode = 2
|
||||
7
Scenes/HUD/Items/icicle_gun.tscn
Normal file
7
Scenes/HUD/Items/icicle_gun.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cicthr1v5v4s2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://duwiasewxvcb5" path="res://Sprites/Items/Icicle_Gun.png" id="1_ebd3h"]
|
||||
|
||||
[node name="IcicleGun" type="TextureRect"]
|
||||
texture = ExtResource("1_ebd3h")
|
||||
stretch_mode = 2
|
||||
11
Scenes/HUD/Items/red_keycard.tscn
Normal file
11
Scenes/HUD/Items/red_keycard.tscn
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://xvgx3vda1a5o"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bad6gbl2gity3" path="res://Sprites/Items/RedKeycard_Small.png" id="1_slovd"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cowsj"]
|
||||
atlas = ExtResource("1_slovd")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[node name="RedKeycard" type="TextureRect"]
|
||||
texture = SubResource("AtlasTexture_cowsj")
|
||||
stretch_mode = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue