- Enemy droppt Loot bei Tod (Gold + Items basierend auf LootTable) - LootWindow zeigt Beute an mit "Alles aufheben" Button - Gold-Anzeige im HUD unter XP-Leiste - Beispiel LootTables: Goblin (2-8 Gold) und Skeleton (5-15 Gold) - Loot-System in World verdrahtet Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
61 lines
1.6 KiB
Text
61 lines
1.6 KiB
Text
[gd_scene format=3 uid="uid://loot_window"]
|
|
|
|
[ext_resource type="Script" path="res://loot_window.gd" id="1_loot"]
|
|
|
|
[node name="LootWindow" type="CanvasLayer"]
|
|
script = ExtResource("1_loot")
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -130.0
|
|
offset_top = -350.0
|
|
offset_right = 130.0
|
|
offset_bottom = -150.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 8.0
|
|
offset_top = 8.0
|
|
offset_right = -8.0
|
|
offset_bottom = -8.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="Title" type="Label" parent="Panel/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "Beute"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HSeparator" type="HSeparator" parent="Panel/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="GoldLabel" type="Label" parent="Panel/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_font_sizes/font_size = 14
|
|
theme_override_colors/font_color = Color(1, 0.85, 0, 1)
|
|
text = "0 Gold"
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="Panel/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="ItemList" type="VBoxContainer" parent="Panel/VBoxContainer/ScrollContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="LootAllButton" type="Button" parent="Panel/VBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Alles aufheben"
|