fix: prove title timing and compact journal readability
This commit is contained in:
+12
-1
@@ -317,6 +317,7 @@ func _get_capture_mode() -> String:
|
||||
func _capture_visual_check(capture_mode: String) -> void:
|
||||
if capture_mode == "exit":
|
||||
_prepare_exit_capture_state()
|
||||
_refresh_capture_hud()
|
||||
# Camera2D applies its scroll during the frame cycle. Force it before the
|
||||
# deterministic capture so the world is framed around the capture state.
|
||||
camera.force_update_scroll()
|
||||
@@ -334,6 +335,11 @@ func _capture_visual_check(capture_mode: String) -> void:
|
||||
var result := image.save_png(capture_path)
|
||||
get_tree().quit(0 if result == OK else 1)
|
||||
|
||||
func _refresh_capture_hud() -> void:
|
||||
# Capture startup appends game_started after the normal first HUD refresh.
|
||||
# Refresh only on the capture path so production rendering remains untouched.
|
||||
hud.refresh(game_state, run_state.recent_events(run_state.log.size()), run_state)
|
||||
|
||||
func _prepare_exit_capture_state() -> void:
|
||||
# Preserve the entrance exploration, then frame the authored surface exit.
|
||||
# This exercises visible, explored, and unknown rendering without depending
|
||||
@@ -1895,9 +1901,14 @@ func _refresh_title() -> void:
|
||||
var previous_title_id := run_state.current_title_id
|
||||
var current_title_id := StringName(title.get("id", ""))
|
||||
run_state.current_title_id = current_title_id
|
||||
if title.is_empty():
|
||||
# A title loss is not an announcement; it must also clear a still-visible
|
||||
# notification from the prior title.
|
||||
_hide_title_notification()
|
||||
return
|
||||
# Boot and load establish the state silently. Only a real later transition
|
||||
# deserves the temporary overlay; the permanent top bar belongs to GameHud.
|
||||
if _title_notifications_enabled and current_title_id != previous_title_id and not title.is_empty():
|
||||
if _title_notifications_enabled and current_title_id != previous_title_id:
|
||||
title_notification_label.text = String(title.get("name", current_title_id))
|
||||
title_notification_label.visible = true
|
||||
title_notification_timer.start()
|
||||
|
||||
Reference in New Issue
Block a user