fix: prove title timing and compact journal readability
This commit is contained in:
@@ -175,7 +175,6 @@ func _apply_text_scale(layout_scale: float) -> void:
|
||||
$EnemyHealthLabel,
|
||||
$CombatSummaryLabel,
|
||||
$DeadlineLabel,
|
||||
$EventLog,
|
||||
action_hint_label,
|
||||
$ContextPromptLabel,
|
||||
$HelpLabel,
|
||||
@@ -186,6 +185,14 @@ func _apply_text_scale(layout_scale: float) -> void:
|
||||
control.set_meta(&"base_font_size", base_size)
|
||||
control.add_theme_font_size_override(&"font_size", roundi(base_size * font_scale))
|
||||
|
||||
# RichTextLabel does not use Label's font_size theme key. Keep the journal
|
||||
# independently readable at 720p without changing the rest of the HUD scale.
|
||||
var event_log_base_size: int = event_log.get_meta(&"base_normal_font_size", 0)
|
||||
if event_log_base_size == 0:
|
||||
event_log_base_size = event_log.get_theme_font_size(&"normal_font_size")
|
||||
event_log.set_meta(&"base_normal_font_size", event_log_base_size)
|
||||
event_log.add_theme_font_size_override(&"normal_font_size", max(12, roundi(event_log_base_size * font_scale)))
|
||||
|
||||
func _layout_expanded_log(origin: Vector2, scale: float) -> void:
|
||||
# Explicit expansion may temporarily consume the MapSection, never the world.
|
||||
_set_rect(log_panel, origin + Vector2(1456, 110) * scale, Vector2(436, 818) * scale)
|
||||
|
||||
Reference in New Issue
Block a user