Triforce v0.8.5

A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -131,11 +131,18 @@ def main():
# the cursor and the button with an amount
cursor = function(ui, "inline void cursor(Ctx& c, ImVec2 a, ImVec2 b, float k = 1) {")
check("if (k <= 0) return;" in cursor and "(0.50f + 0.35f * c.pulse) * k" in cursor and "alpha(kCursor, k)" in cursor,
check("if (k <= 0) return;" in cursor and "glow_layers(c, glow, a - m, b + m, 150, 80, kCursorGlow, kCursorGlowBase, kCursorGlowHdr, k);" in cursor and
"alpha(kCursor, k)" in cursor,
"the cursor's line and glow are not drawn with its amount")
button = function(ui, "inline void button(Ctx& c, ImVec2 a0, ImVec2 b0, const char* label, float focus) {")
check("if (focus > 0) cursor(c, a0 + ImVec2(lu(c, 8), lu(c, 8)), b0 - ImVec2(lu(c, 8), lu(c, 8)), focus);" in button,
"the button does not draw its cursor with its amount")
# ((Triforce, 11-26) the System list's own cursor (CmnBtnCursor*), its line outside the plate's edge, the bluer glow; the
# Options rows' where those textures are missing)
check("if (focus > 0) cmn_cursor(c, a0, b0, focus);" in button, "the button does not draw its cursor with its amount")
cmn = function(ui, "inline void cmn_cursor(Ctx& c, ImVec2 a, ImVec2 b, float k = 1) {")
check("if (k <= 0) return;" in cmn and "glow_layers(c, glow, a - m, b + m, 140, 90, kCmnCursorGlow, kCmnCursorGlowBase, kCmnCursorGlowHdr, k);" in cmn and
"alpha(kCursor, k)" in cmn and
"cursor(c, a + ImVec2(lu(c, 8), lu(c, 8)), b - ImVec2(lu(c, 8), lu(c, 8)), k);" in cmn,
"the System list's cursor is not drawn with its amount, or has no fallback")
check("inline void button(Ctx& c, ImVec2 a0, ImVec2 b0, const char* label, bool sel) { button(c, a0, b0, label, sel ? 1.0f : 0.0f); }" in ui,
"the other buttons (draw_ask's) no longer draw their cursor whole")
@@ -214,21 +221,31 @@ def main():
check("press[7] = false" in wait and "press[5]" in wait and "press[2]" in wait, "the dialog takes presses while its In plays")
check("if (mods_row_sel == 1) quit_open(), mods_sound(HOS_MENU_SOUND_SYS_DECIDE), changed = true;" in rows,
"A on Quit does not open its dialog with its In and the system menu's decide")
check("if (quit_sel == 2) quit_cancel();" in rows and "quit_cancel(), mods_sound(HOS_MENU_SOUND_CANCEL)" in rows,
"Cancel and B do not close the dialog with its Out")
# ((Triforce, 11-25) with the pause menu's step back, a sound of its own: the system menu's cancel unless set)
check("if (quit_sel == 2) quit_cancel();" in rows and "quit_cancel(), mods_sound(HOS_MENU_SOUND_PAUSE_BACK)" in rows and
"mods_sound(quit_sel == 2 ? HOS_MENU_SOUND_PAUSE_BACK : HOS_MENU_SOUND_SYS_DECIDE);" in rows,
"Cancel and B do not close the dialog with its Out (and the pause menu's step back)")
check("quit_ask = true" not in tick and "quit_ask = false" not in tick, "the dialog is opened or closed past its In and Out")
check("else if (!after.open && !quit_ended) mods_sound(HOS_MENU_SOUND_SYS_CURSOR);" in tick and "quit_ended = true" in rows,
"Quit Game's decide is followed by the cursor's sound")
# (the sounds reach the host: the queue takes the system menu's)
check("constexpr int kFanfare = 8, kSysCursor = 9, kSysDecide = 10, kLast = kSysDecide;" in events and "sound > kLast" in events,
check("constexpr int kFanfare = 8, kSysCursor = 9, kSysDecide = 10;" in events and "kSettingsOn = 18, kSettingsOff = 19, kLast = kSettingsOff;" in events and
"sound > kLast" in events,
"the sounds' queue drops the system menu's cursor and decide")
# the host: the stick's Down onto Mods where the menu's bits have it; the system tick replaced by its decide
check("const int down = (int)(buttons >> B_DOWN & 1) || stick[1] < -16384;" in hid and "if (s[1] < -16384) menu |= 1ULL << HOS_PAD_LS_DOWN;" in hid,
"the stick's Down onto Mods is not where the menu's pad bits have it (a later read is a Down of the entry's)")
play = function(sound, "void hos_menu_sound_play(int id, int64_t now_ns) {")
check("was == HOS_MENU_SOUND_SYS_CURSOR" in play, "the system menu's tick is not replaced by the decide of the same press")
check("if (id == HOS_MENU_SOUND_CURSOR && now_ns - atomic_load(&last_start_ns) < CURSOR_GAP_NS) return;" in play,
# ((Triforce, 11-25) the system menu's cursor is a navigation sound (is_nav): the decide of the same press takes its voice)
check("(was == id || is_nav(was)) && AT_FRAME(at) < 2400" in play and
"static int is_nav(int id) { return is_tick(id) || id == HOS_MENU_SOUND_SYS_CURSOR; }" in sound,
"the system menu's tick is not replaced by the decide of the same press")
# ((Triforce, 11-25) the ticks: the cursor's, the settings' tabs' and the Mods screen's; not the system menu's own, which is
# a navigation sound at the whole level. A navigation sound is left out only within 45 ms of the sound before (one press
# asking twice): the 180 ms gap thinned a quick run down a list out of step with its moves)
check("if (is_nav(id) && now_ns - atomic_load(&last_start_ns) < NAV_GAP_NS) return;" in play and "#define NAV_GAP_NS 45000000ll" in sound and
"return id == HOS_MENU_SOUND_CURSOR || id == HOS_MENU_SOUND_SETTINGS_NAVIGATE || id == HOS_MENU_SOUND_MODS_NAVIGATE;" in sound,
"the options' tick gap changed")
with tempfile.TemporaryDirectory(prefix="pause-mods-anim-") as tmp: