Files
2D_Game_test/UI/Inventory/InventorySlot.tscn

61 lines
1.8 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://defhc376y3h1d"]
[ext_resource type="Script" path="res://UI/Inventory/InventorySlot.gd" id="1_pltri"]
[ext_resource type="FontFile" uid="uid://dj4pldmxeqmtt" path="res://UI/PressStart2P-Regular.ttf" id="1_wew62"]
[ext_resource type="Texture2D" uid="uid://cgtkkroa583fo" path="res://TileSets/Stuff.png" id="2_mxhl7"]
[ext_resource type="Texture2D" uid="uid://4txm3cwkoncp" path="res://UI/Inventory/circle_progress.png" id="3_5flhr"]
[node name="InventorySlot" type="Control"]
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_pltri")
[node name="AmmoLabel" type="Label" parent="."]
visible = false
layout_mode = 0
offset_left = 12.0
offset_top = -26.0
offset_right = 28.0
offset_bottom = -7.0
theme_override_fonts/font = ExtResource("1_wew62")
theme_override_font_sizes/font_size = 0
text = "1"
[node name="ItemImage" type="Sprite2D" parent="."]
[node name="ToolbarSlot" type="Sprite2D" parent="."]
scale = Vector2(4, 4)
texture = ExtResource("2_mxhl7")
region_enabled = true
region_rect = Rect2(80, 144, 16, 16)
[node name="SlotLabel" type="Label" parent="."]
visible = false
layout_mode = 0
offset_left = -53.0
offset_top = -65.0
offset_right = 75.0
offset_bottom = -42.0
theme_override_fonts/font = ExtResource("1_wew62")
theme_override_font_sizes/font_size = 0
text = "ItemName"
vertical_alignment = 2
[node name="ReloadBar" type="TextureProgressBar" parent="."]
layout_mode = 0
offset_left = -32.0
offset_top = -32.0
offset_right = 32.0
offset_bottom = 32.0
fill_mode = 4
texture_under = ExtResource("3_5flhr")
texture_progress = ExtResource("3_5flhr")
tint_under = Color(1, 1, 1, 0)
tint_progress = Color(0.254902, 0.654902, 0.407843, 0.588235)