- Escape Menu: - Opens with Escape key from base game screen - Resume button to return to game - Exit Game button to quit application - Character sheet closes with Escape if open (takes priority) - Mouse capture/release handled by UI components - Weapon Slot System: - Visual weapon boxes (80x80) in character sheet - Display weapon icons from WeaponData - Empty slots appear dimmed - Hover tooltips show weapon stats (not clipped by containers) - Tooltips display: slot name, weapon name, damage, range, cooldown, knockback, block percentage - Tooltips positioned globally to avoid ScrollContainer clipping - Bug Fixes: - Fixed typo in lilguy_body.gd (dwextends -> extends) - Removed manual mouse toggle from player (now handled by UI) - Updated character_sheet.gd to use weapon slot components instead of text labels - Added weapon_tooltip.tscn as separate scene for unclipped tooltips
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://ck5y3rmj8vx2p"]
|
|
|
|
[ext_resource type="Theme" uid="uid://dvsh7tuhulnfm" path="res://level/ui/theme/wow_style.tres" id="1_theme"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tooltip"]
|
|
bg_color = Color(0.15, 0.15, 0.15, 0.95)
|
|
border_width_left = 2
|
|
border_width_top = 2
|
|
border_width_right = 2
|
|
border_width_bottom = 2
|
|
border_color = Color(0.6, 0.5, 0.2, 1)
|
|
corner_radius_top_left = 4
|
|
corner_radius_top_right = 4
|
|
corner_radius_bottom_right = 4
|
|
corner_radius_bottom_left = 4
|
|
|
|
[node name="WeaponTooltip" type="PanelContainer"]
|
|
z_index = 1000
|
|
offset_right = 200.0
|
|
offset_bottom = 150.0
|
|
theme = ExtResource("1_theme")
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_tooltip")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 8
|
|
theme_override_constants/margin_top = 8
|
|
theme_override_constants/margin_right = 8
|
|
theme_override_constants/margin_bottom = 8
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="StatsLabel" type="Label" parent="MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
|
theme_override_constants/outline_size = 1
|
|
theme_override_font_sizes/font_size = 14
|
|
text = "Weapon Name
|
|
---
|
|
Damage: 10
|
|
Range: 3
|
|
Cooldown: 0.5s"
|