fix: apply final dark fantasy HUD polish
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user