Rebrand project and refresh title presentation

This commit is contained in:
Alexander Sellite 2026-08-25 17:14:12 -04:00
parent 17fef2c5d4
commit 7ae20789a9
138 changed files with 1511 additions and 1498 deletions

View file

@ -122,8 +122,38 @@ func _validate_primary_menu_navigation() -> void:
_expect(
play_button.icon != null
and play_button.icon.resource_path
== "res://ui/icons/main_menu/continue.png",
"The Play action does not use the original Continue icon.",
== "res://ui/icons/new_menu/play.png"
and play_button.text.is_empty(),
"The Play action is not presented as the large square icon button.",
)
_expect(
is_equal_approx(play_button.size.x, play_button.size.y),
"The Play action is not square.",
)
var online_button := title.get_node("%JoinGameButton") as Button
var settings_button := title.get_node("%SettingsButton") as Button
var credits_button := title.get_node("%CreditsButton") as Button
var close_button := title.get_node("%QuitButton") as Button
for secondary_button: Button in [
online_button,
settings_button,
credits_button,
close_button,
]:
_expect(
is_equal_approx(
secondary_button.size.x,
secondary_button.size.y,
),
"A secondary title action is not square.",
)
_expect(
is_equal_approx(
close_button.position.y + close_button.size.y
- online_button.position.y,
play_button.size.y,
),
"The secondary title-action stack does not match Play's height.",
)
_expect(
not (title.get_node("%NewGameButton") as Control).visible
@ -131,24 +161,29 @@ func _validate_primary_menu_navigation() -> void:
"Legacy New/Delete title bubbles are still visible.",
)
_assert_neighbor(
title.get_node("%JoinGameButton") as Control,
&"focus_neighbor_right",
play_button,
&"focus_neighbor_right",
title.get_node("%JoinGameButton") as Control,
)
_assert_neighbor(
title.get_node("%JoinGameButton") as Control,
&"focus_neighbor_left",
play_button,
)
_assert_neighbor(
title.get_node("%JoinGameButton") as Control,
&"focus_neighbor_bottom",
title.get_node("%SettingsButton") as Control,
)
_assert_neighbor(
title.get_node("%SettingsButton") as Control,
&"focus_neighbor_left",
play_button,
&"focus_neighbor_bottom",
title.get_node("%CreditsButton") as Control,
)
_assert_neighbor(
title.get_node("%CreditsButton") as Control,
&"focus_neighbor_right",
play_button,
)
_assert_neighbor(
&"focus_neighbor_bottom",
title.get_node("%QuitButton") as Control,
&"focus_neighbor_left",
play_button,
)
for title_control: Control in title_controls:
_assert_directionally_reachable(title_control, title_controls)
@ -1196,12 +1231,12 @@ func _validate_profile_voice_navigation() -> void:
kat_down != null and pitch_grid.is_ancestor_of(kat_down),
"Down from the voice-set row does not enter the pitch row.",
)
if OS.has_environment("NETFISHING_PROFILE_VOICE_CAPTURE"):
if OS.has_environment("straywild_PROFILE_VOICE_CAPTURE"):
await RenderingServer.frame_post_draw
var capture := root.get_viewport().get_texture().get_image()
_expect(
capture.save_png(OS.get_environment(
"NETFISHING_PROFILE_VOICE_CAPTURE"
"straywild_PROFILE_VOICE_CAPTURE"
)) == OK,
"The profile voice-page capture could not be saved.",
)