mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-19 04:53:46 +00:00
Visualization for ammo
This commit is contained in:
parent
ed6e659d23
commit
07ab64a0bf
12 changed files with 252 additions and 102 deletions
43
Scenes/HUD/HudItemContainer.tscn
Normal file
43
Scenes/HUD/HudItemContainer.tscn
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cd3ee1adstcrw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://chqjrv7wqk6ej" path="res://Scripts/UI/WeaponAmmoCounter.cs" id="1_pwei3"]
|
||||
[ext_resource type="Texture2D" uid="uid://duwiasewxvcb5" path="res://Sprites/Items/Icicle_Gun.png" id="2_pqw4t"]
|
||||
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="3_a6rek"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5g0qg6u2gm6f" path="res://Sprites/Items/Ammo1.png" id="4_kbanm"]
|
||||
|
||||
[node name="HudItemContainer" type="Control" node_paths=PackedStringArray("Icon", "AmmoIcon", "TotalAmmoLabel", "LoadedAmmoLabel")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_pwei3")
|
||||
Icon = NodePath("HBoxContainer/WeaponIcon")
|
||||
AmmoIcon = NodePath("HBoxContainer/Ammo Icon")
|
||||
TotalAmmoLabel = NodePath("HBoxContainer/TotalAmmo")
|
||||
LoadedAmmoLabel = NodePath("HBoxContainer/LoadedAmmo")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
offset_right = 16.0
|
||||
offset_bottom = 16.0
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="WeaponIcon" type="TextureRect" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_pqw4t")
|
||||
|
||||
[node name="LoadedAmmo" type="Label" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "999"
|
||||
label_settings = ExtResource("3_a6rek")
|
||||
|
||||
[node name="Ammo Icon" type="TextureRect" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_kbanm")
|
||||
|
||||
[node name="TotalAmmo" type="Label" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "999"
|
||||
label_settings = ExtResource("3_a6rek")
|
||||
Loading…
Add table
Add a link
Reference in a new issue