fix: prove title timing and compact journal readability
This commit is contained in:
@@ -298,9 +298,19 @@ func test_compact_1280_layout_contains_live_hud_regions_without_covering_the_pla
|
||||
if label != null:
|
||||
assert_gte(label.get_theme_font_size(&"font_size"), 9, "%s must keep a readable compact font" % label.name)
|
||||
var journal := hud.get_node_or_null("EventLog") as RichTextLabel
|
||||
var journal_title := layout.get_node_or_null("JournalSectionTitle") as Label
|
||||
var character_title := layout.get_node_or_null("CharacterSectionTitle") as Label
|
||||
assert_not_null(journal)
|
||||
assert_not_null(journal_title)
|
||||
assert_not_null(character_title)
|
||||
if journal != null:
|
||||
assert_gte(journal.get_theme_font_size(&"normal_font_size"), 9, "The compact journal font must remain readable")
|
||||
var journal_font_size := journal.get_theme_font_size(&"normal_font_size")
|
||||
assert_gte(journal_font_size, 12, "The compact journal must retain a 12px normal font")
|
||||
assert_gte(journal.size.y / journal_font_size, 12.0, "The compact journal must retain at least twelve lines of visible space")
|
||||
if journal_title != null:
|
||||
assert_gte(journal_title.get_theme_font_size(&"font_size"), 14, "The compact journal title must remain readable")
|
||||
if character_title != null:
|
||||
assert_gte(character_title.get_theme_font_size(&"font_size"), 14, "The compact character title must remain readable")
|
||||
|
||||
func test_non_sixteen_by_nine_viewports_center_the_artboard_and_mask_every_outside_band() -> void:
|
||||
var hud := game.get_node_or_null("HUD") as GameHud
|
||||
|
||||
Reference in New Issue
Block a user