fix: apply final dark fantasy HUD polish

This commit is contained in:
goose
2026-10-09 08:38:28 -04:00
parent 59d0b65eb6
commit f1b58935bf
10 changed files with 129 additions and 102 deletions
+6 -4
View File
@@ -132,10 +132,12 @@ func test_play_area_has_four_opaque_masks_that_cover_only_the_artboard_outside_t
assert_true(mask.visible, "%s must be visible at %s" % [mask_name, viewport_size])
assert_eq(mask.get_global_rect(), expected_masks[mask_name], "%s must exactly cover its outside-PlayAreaFrame band at %s" % [mask_name, viewport_size])
assert_false(mask.get_global_rect().intersects(play_rect), "%s must not mask the PlayAreaFrame interior at %s" % [mask_name, viewport_size])
var style := mask.get_theme_stylebox(&"panel") as StyleBoxFlat
assert_not_null(style, "%s requires an explicit opaque panel style" % mask_name)
if style != null:
assert_eq(style.bg_color.a, 1.0, "%s must be fully opaque" % mask_name)
var style := mask.get_theme_stylebox(&"panel")
assert_true(style is StyleBoxTexture, "%s requires the textured dungeon background style" % mask_name)
if style is StyleBoxTexture:
var texture_style := style as StyleBoxTexture
assert_not_null(texture_style.texture, "%s requires a visible dungeon background texture" % mask_name)
assert_eq(texture_style.modulate_color.a, 1.0, "%s must remain fully opaque" % mask_name)
func test_camera_focal_center_aligns_with_the_unmasked_central_play_area() -> void:
var game := GameScene.instantiate() as Game
+6 -4
View File
@@ -17,9 +17,11 @@ func test_help_band_displays_the_exact_control_labels() -> void:
assert_not_null(help_label)
if help_label == null:
return
assert_string_contains(help_label.text, "Déplacer : ZQSD / Flèches")
assert_string_contains(help_label.text, "nord-est : pavé num. 9")
assert_string_contains(help_label.text, "Interagir : Espace ou E")
assert_string_contains(help_label.text, "Déplacer")
assert_string_contains(help_label.text, "Interagir")
assert_string_contains(help_label.text, "Inventaire")
assert_string_contains(help_label.text, "Sauvegarde")
assert_string_contains(help_label.text, "Aide")
func test_xp_bar_shows_progress_inside_the_current_level_and_refreshes_after_xp_gain() -> void:
var hud := game.get_node_or_null("HUD") as GameHud
@@ -772,7 +774,7 @@ func test_command_bar_keeps_all_three_zones_readable_at_reference_and_compact_si
var prompt_panel := layout.get_node_or_null("PromptPanel") as Control if layout != null else null
var help_panel := layout.get_node_or_null("HelpPanel") as Control if layout != null else null
var quick_hint := layout.get_node_or_null("QuickSlotHint") as Label if layout != null else null
var prompt := hud.get_node_or_null("ContextPromptLabel") as Label
var prompt := layout.get_node_or_null("PromptPanel/ActionHintLabel") as Label if layout != null else null
var help := hud.get_node_or_null("HelpLabel") as Label
assert_not_null(command_bar, "CommandBar is required at %s" % viewport_size)
assert_not_null(quick_slots)