mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
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:
@@ -520,19 +520,38 @@ def main():
|
||||
check("m.kx = cw > 0 ? g.w / cw : 1.0f;" in grid and "float x(float px) const { return ox + px * kx; }" in grid,
|
||||
"the game's grid narrower than 16:9 is not squeezed across")
|
||||
row = function(menu, "void draw_mods_row(ui::Ctx& c, bool sel) {")
|
||||
check("draw_title_mods(c, sel, cx, cy, k, pitch);" in row and "(x1 - x0) / 60.0f" in row,
|
||||
check("draw_title_mods(c, sel && !tab_decides, cx, cy, k, pitch);" in row and "(x1 - x0) / 60.0f" in row,
|
||||
"draw_mods_row does not draw the title's entry as the part, at the list's scale")
|
||||
|
||||
# the input: Decide before the Mods screen, its sound once at the press
|
||||
# the input: Decide first, its sound once at the press. ((Triforce) The entry under the title's list is Quit Game now: its
|
||||
# Decide, then the game ends. Mods is a tab at the top left, chosen by its button, a click or the host's word 6: the same
|
||||
# Decide on its tab, then the Mods screen)
|
||||
tick = function(menu, "void menu_tick() {")
|
||||
check("else if (mods_title_list()) mods_decide_ns = prof_now(), mods_sound(HOS_MENU_SOUND_SYS_DECIDE), changed = true;" in tick,
|
||||
check("else if (mods_title_list()) mods_decide_ns = prof_now(), title_decide = 1, mods_sound(HOS_MENU_SOUND_SYS_DECIDE), changed = true;" in tick,
|
||||
"A on the title's entry does not play Decide with the system menu's sound")
|
||||
check("const bool decide = enter == 2 && mods_title_list();" in tick and "if (decide) mods_decide_ns = prof_now();" in tick,
|
||||
check("const bool decide = enter == 2 && mods_title_list();" in tick and "if (decide) mods_decide_ns = prof_now(), title_decide = 1;" in tick,
|
||||
"a click on the title's entry does not play Decide")
|
||||
go = function(menu, "bool title_tab_go(int tab) {")
|
||||
check("if (tab == 0) title_decide = 0, mods_decide_ns = prof_now();" in go and "page = kModsRowPage" in go
|
||||
and "mods_sound(HOS_MENU_SOUND_SYS_DECIDE), tick_sound_done = true;" in go and go.index("if (!title_tabs_live()") < go.index("open_now = true"),
|
||||
"Mods' tab does not play Decide with the system menu's sound, or can be chosen while it is not there")
|
||||
live = function(menu, "bool title_tabs_live() {")
|
||||
check("if (!mods_title_list() || !mods_list_fresh()" in live and "shown >= 0 && shown < 0.5f" in live
|
||||
and "return !open_now.load() || (page == kModsRowPage && !mods_decide_ns && !quit_ask);" in live,
|
||||
"the title's tabs can be chosen off the title, before its list shows, or under a page of ours")
|
||||
decide = tick[tick.index("page == kModsRowPage && mods_decide_ns) {"):]
|
||||
decide = decide[:decide.index("} else if (open_now.load() && page == kModsRowPage) {")]
|
||||
check("prof_now() - mods_decide_ns >= mods_entry::kDecideNs" in decide and "page = kModsPage" in decide and
|
||||
"mods_decided = true" in decide and "press[" not in decide, "the Mods screen does not open after Decide, or input is taken meanwhile")
|
||||
check(decide.index("if (title_decide == 1) {") < decide.index("end_game(false), quit_ended = true, open_now = false, page = 0") < decide.index("page = kModsPage"),
|
||||
"Quit Game's Decide does not end the game, or opens the Mods screen")
|
||||
part = function(menu, "void draw_title_mods(ui::Ctx& c, bool sel, float cx, float cy, float k, float pitch) {")
|
||||
check("if (f > 0 && show > 0 && !title_corner) {" in part and "!title_entry && title_decide == 1 ? now - mods_decide_ns : -1" in part
|
||||
and 'const char* title_label = "Quit Game";' in menu,
|
||||
"a tab is drawn with the entry's band and filigree, the entry flashes for Mods' Decide, or is not Quit Game")
|
||||
back = function(menu, "void mods_back(bool& changed) {")
|
||||
check("if (mods_list_fresh() && !mods_title_list()) page = kModsRowPage;" in back and "else open_now = false, page = 0, mods_sound(mods_back_sound()), tick_sound_done = true;" in back,
|
||||
"Back from the Mods screen on the title leaves a cursor of ours on its list")
|
||||
check("if (!mods_decided) mods_sound(HOS_MENU_SOUND_SYS_DECIDE);" in tick and "mods_decided = false;" in tick,
|
||||
"the decide sound plays again when the Mods screen opens after Decide")
|
||||
check("my < e[1] && my > e[1] - (quit_here ? 6 : 4) * e[4]) mods_row_sel = 0, press[1] = true;" in tick,
|
||||
|
||||
Reference in New Issue
Block a user