Implemented basic notification system for weapons changing.

This commit is contained in:
Henry Faber 2026-06-21 17:55:47 +01:00
parent a6d137bf7a
commit 18dc548dd6
16 changed files with 300 additions and 2 deletions

View file

@ -0,0 +1,42 @@
[gd_scene format=3 uid="uid://c3scm07fgpkcp"]
[ext_resource type="Script" uid="uid://3a0cypjsx5cq" path="res://scripts/notification_display.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://dtggedl0127vk" path="res://graphics/stock.png" id="2_nqp5d"]
[node name="NotificationDisplay" type="Control" unique_id=1 node_paths=PackedStringArray("icon", "label")]
layout_mode = 3
anchors_preset = 0
script = ExtResource("1")
icon = NodePath("HBoxContainer/Icon")
label = NodePath("HBoxContainer/Label")
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=228546504]
layout_mode = 0
separation = 4
theme_override_constants/margin_left = 4
theme_override_constants/margin_right = 4
[node name="Icon" type="TextureRect" parent="HBoxContainer" unique_id=3]
custom_minimum_size = Vector2(16, 16)
custom_maximum_size = Vector2(16, 16)
propagate_maximum_size = true
layout_mode = 2
size_flags_horizontal = 0
texture = ExtResource("2_nqp5d")
stretch_mode = 1
[node name="Label" type="Label" parent="HBoxContainer" unique_id=4]
layout_mode = 2
size_flags_horizontal = 0
text = "Weapon name"
vertical_alignment = 1
uppercase = true
[node name="Background" type="ColorRect" parent="." unique_id=2]
z_index = -1
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.13333334, 0.1254902, 0.20392157, 1)