DungeonCrawler/skill_panel.tscn
Andre d029a37e7f Drag & Drop Aktionsleiste und Fähigkeiten-Panel
- Alle Aktionsleisten-Slots frei belegbar (Skills + Consumables)
- Drag & Drop: Items/Skills zwischen Slots verschieben oder rausziehen
- Gelber Highlight-Rand beim Hover über Slots während Drag
- Drag-Icon auf eigener CanvasLayer (Layer 200) für korrektes Z-Order
- Fähigkeiten-Panel (P-Taste): Listet alle Skills, per Drag auf Leiste ziehen
- Skills als Strings in action_bar_items gespeichert (generisches System)
- Cooldown-Anzeige generisch für alle Slot-Typen
- Bugfix: theme_override_constants und Tooltip-Typen in LootWindow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 21:03:34 +01:00

48 lines
1.3 KiB
Text

[gd_scene load_steps=2 format=3 uid="uid://skill_panel"]
[ext_resource type="Script" path="res://skill_panel.gd" id="1"]
[node name="SkillPanel" type="CanvasLayer"]
script = ExtResource("1")
[node name="Panel" type="Panel" parent="."]
anchors_preset = 0
offset_left = 250
offset_top = 100
offset_right = 530
offset_bottom = 400
custom_minimum_size = Vector2(280, 300)
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 10
offset_top = 10
offset_right = -10
offset_bottom = -10
[node name="TitleLabel" type="Label" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Fähigkeiten"
horizontal_alignment = 1
theme_override_font_sizes/font_size = 18
[node name="HSeparator" type="HSeparator" parent="Panel/VBoxContainer"]
layout_mode = 2
[node name="HintLabel" type="Label" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Linksklick + Ziehen auf Aktionsleiste"
horizontal_alignment = 1
theme_override_font_sizes/font_size = 10
modulate = Color(0.7, 0.7, 0.7, 1)
[node name="ScrollContainer" type="ScrollContainer" parent="Panel/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="SkillList" type="VBoxContainer" parent="Panel/VBoxContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3