mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.5.0
In-game mods (GameBanana browser, search and installs, with the Mask Salesman), code-patch and cheat mods, the devs' test18 to test45 work (full performance overlay, frame pacing on, steady frame rate, save export and import, bug capture, new options rows, Setup's Mods page and Add to Steam), occlusion queries and new defaults, Auto resolution that scales, replay helper threads and robust buffers off by default, the options in sections.
This commit is contained in:
@@ -54,6 +54,19 @@ int main() {
|
||||
CHECK("a drag on a row without a track", m.drag(720, 3) == -1);
|
||||
CHECK("the slider's value", slider_value(m.drag(720, 7), 0, 100, 10) == 30 && slider_value(1000, 0, 100, 10) == 100);
|
||||
CHECK("the knob's place", slider_permille(60, 0, 100) == 600 && slider_permille(500, 10, 300) == 1000);
|
||||
CHECK("a value's halves by the middle: no toggle's", !m.at(650, 110 + 48 * 3).halves);
|
||||
|
||||
// ---- (Triforce) a toggle's value, On | Off: its halves meet at 0.632 of it (vk_menu.cpp halves_meet), not the middle ----
|
||||
m.clear(0, 0, 1920, 1080);
|
||||
m.add(100, 100, 1000, 140, kRow, 0, 600, 1000, 0, 0, 0, 852.8f);
|
||||
h = m.at(700, 120);
|
||||
CHECK("a toggle's left half (On)", h.part == kRow && h.side == -1 && h.halves);
|
||||
h = m.at(840, 120);
|
||||
CHECK("past the middle, short of where they meet: still On", h.side == -1 && h.halves);
|
||||
h = m.at(860, 120);
|
||||
CHECK("past where they meet: Off", h.side == 1 && h.halves);
|
||||
h = m.at(300, 120);
|
||||
CHECK("a toggle's name: neither half", h.side == 0 && !h.halves);
|
||||
|
||||
// ---- the Controls page: a name and two cells (gamepad, keyboard) a row, Reset to defaults at the end ----
|
||||
m.clear(0, 0, 1920, 1080);
|
||||
|
||||
Reference in New Issue
Block a user