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:
@@ -113,7 +113,9 @@ def main():
|
||||
# the background: inside the game's Options screen, its own; over play, the System screens' shade and noise
|
||||
# (v0.5.1: draw_menu takes perf_under, and over the Mods entry (row) dims nothing)
|
||||
draw = function(menu, "void draw_menu(ui::Ctx& c, bool perf_under) {")
|
||||
check("if (!embed_open && !row && !tuning && !ui::system_bg(c)) c.d->AddRectFilled(" in draw, # ((Triforce) not the tuning bar
|
||||
# ((Triforce) not the tuning bar; (11-26) not Save Select over the title either, whose picture behind is out of focus)
|
||||
check("if (!embed_open && !row && !tuning && !blurred && !ui::system_bg(c)) c.d->AddRectFilled(" in draw and
|
||||
"const bool blurred = files_blur.load(std::memory_order_relaxed) && page == kFilesPage;" in draw,
|
||||
"draw_menu dims the game's own Options screen, or not the System screens' way over play")
|
||||
check(draw.count("AddRectFilled(ImVec2(0, 0), ImVec2(c.w, c.h)") == 1, "draw_menu dims the window more than once")
|
||||
check("ui::column_bg(k, cx0, cx1, k.over_game);" in draw and "k.over_game = embed_open;" in draw,
|
||||
@@ -147,6 +149,26 @@ def main():
|
||||
'"tab_select", make_tinted(*tab, kTabBlack, kTabWhite)',
|
||||
'"plate_row", make_plate(*shape, *grain, skin.get("BtnThinBase_04"), kPlateBlack, kPlateWhite, kPlateLine)'):
|
||||
check(made in skin, "make_skin does not make " + made.split(",")[0])
|
||||
# ((Triforce, 11-26) the cursors' glows as the game's, fitted to the lab's SDR shots: the Options rows' falloff 1.35, the
|
||||
# System list's own cursor (CmnBtnCursor*, for our buttons) 1.25, optional; their colours and strengths in vk_ui.h)
|
||||
check('&line.img, &glow.img, 1.35f);' in skin and 'make_cursor(cmn_line, cmn_glow, &cl.img, &cg.img, 1.25f);' in skin and
|
||||
'if (el && eg && bntx.decode(*el, cmn_line)' in skin, "make_skin does not make the cursors with the game's falloffs")
|
||||
check("std::pow(std::clamp(g / 0.36f, 0.0f, 1.0f), falloff)" in function(tex, "inline void make_cursor("),
|
||||
"make_cursor's glow does not take the falloff it is given")
|
||||
check("rgba(163, 184, 255)" in ui and "constexpr ImU32 kCmnCursorGlow = rgba(125, 161, 255);" in ui and
|
||||
"kCursorGlowBase = 0.76f, kCmnCursorGlowBase = 0.68f, kCursorGlowBreath = 0.08f;" in ui,
|
||||
"the cursors' glows are not the game's measured ones")
|
||||
# ((Triforce, 11-26) with HDR on, the glows in two layers fitted to the game's as RenoDX codes it: the overlay blends on
|
||||
# HDR10's PQ codes, where one layer came out narrow and grey; with SDR once, as measured)
|
||||
check("constexpr GlowLayer kCursorGlowHdr[2] = {{rgba(144, 174, 255), 0.698f}, {rgba(143, 159, 255), 0.690f}};" in ui and
|
||||
"constexpr GlowLayer kCmnCursorGlowHdr[2] = {{rgba(85, 116, 255), 0.627f}, {rgba(110, 159, 254), 0.622f}};" in ui,
|
||||
"the glows' HDR layers are not the fitted ones")
|
||||
layers = function(ui, "inline void glow_layers(")
|
||||
check("if (!c.hdr10) {" in layers and "nine(c, t, a, b, bx, by, alpha(col, s * k));" in layers and
|
||||
"const float r = s / (base + kCursorGlowBreath * 0.5f) * k;" in layers and
|
||||
"for (const GlowLayer& l : hdr) nine(c, t, a, b, bx, by, alpha(l.col, l.a * r));" in layers,
|
||||
"glow_layers does not draw once with SDR and the two layers, breathing, with HDR on")
|
||||
check("c.hdr10 = dev.hdr;" in function(menu, "ui::Ctx ui_ctx("), "ui_ctx does not say when the overlay blends on HDR10's codes")
|
||||
plate = function(ui, "inline void value_plate(")
|
||||
check('skin(on ? "value_plate_on" : "value_plate")' in plate and "alpha(IM_COL32_WHITE, k)" in plate,
|
||||
"value_plate does not draw the baked plates untinted")
|
||||
|
||||
Reference in New Issue
Block a user