fix: apply final dark fantasy HUD polish
This commit is contained in:
@@ -107,10 +107,12 @@ func _assert_live_play_area_masks(layout: Control, artboard_rect: Rect2, play_re
|
||||
continue
|
||||
assert_eq(mask.get_global_rect(), expected_masks[mask_name], "%s must exactly cover its artboard band outside PlayAreaFrame" % mask_name)
|
||||
assert_false(mask.get_global_rect().intersects(play_rect), "%s must leave the PlayAreaFrame interior visible" % mask_name)
|
||||
var style := mask.get_theme_stylebox(&"panel") as StyleBoxFlat
|
||||
assert_not_null(style, "%s requires an 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 _assert_legacy_panel_paths(layout: Control) -> void:
|
||||
assert_not_null(layout.get_node_or_null("StatsPanel") as PanelContainer, "HUD must preserve ResponsiveLayout/StatsPanel")
|
||||
|
||||
Reference in New Issue
Block a user