Skip to content

One panel for every question with two answers - #479

Merged
tarikbc merged 2 commits into
mainfrom
confirm-panels
Nov 24, 2026
Merged

tarikbc merged 2 commits into
mainfrom
confirm-panels

Conversation

@tarikbc

@tarikbc tarikbc commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Every question the launcher asks with two answers (39 now, with Bluetooth's Forget) is now one panel, the way I picked it in the confirm panels lab (https://claude.ai/artifact/XN6ro87vneLdc5Jb2fsWuw, source ~/Documents/ZyperOS/labs/confirm-panels-lab.html): all seven of the lab's suggestions.

The panel

  • Side by side. The two answers on one row, each a raised slab (radius.row), 408 units each on English's panel. Left and Right move and go round; a held direction stops at the end and plays edge once; Up and Down only play edge. The answers stack only when a word does not fit its half even in meta (no question in any language needs it).
  • Safe left. Cancel on the left with the cursor on it as the panel opens. Where both answers go on, the one the cursor started on before goes left (Turn On Wi-Fi, Without Cheats, Keep Asking).
  • Ink. The answer that loses something (33 of the 39) has its words in warning at rest; focused it is the lime fill like every focus.
  • Action headings. A short heading, the action; the item's name in the question, which wraps and never moves to the heading or slides.
  • B's glyph (each handheld's own) before the word of the answer B gives, in on-accent on the fill. No foot of hints.
  • Press. The answer taken, by A or by B, presses (press, 80 ms, to 94%), then the panel closes (exit, 140 ms). A press during it ends it at once. The open is move from 96% as before.
  • Nothing cut, nothing slides. The question wraps (balanced, centered, text-dim); when its lines do not fit over the answers it is set in meta; only past that it scrolls in its room (a long name made on purpose, never a real question). A number and its unit stay on one line ("4.1 MB").

One table of the 39 questions (src/confirmq.h: heading, words, the two answers, what loses something, what B does), one drawer (src/ds/confirm.h), one run (confirm_ask in src/main.c, PANEL_CONFIRM in the panel's copy so it leaves as every panel does). confirm_panel, confirm_rows, confirm_rows_as, confirm_rows_over, ask_panel, ask_two_panel, store_ask_rows, delete_ask_rows and their three copies of the cut (if (n > fit) n = fit in Storage's, Delete Screenshot's and Delete Collection's) are gone.

Bluetooth's Forget asks

X on a paired headset forgot it at once, where Wi-Fi's Forget asks. It now asks the same way: Forget Headset, "Forget WH-1000XM4? Pair it again to use it.", Cancel (the cursor) and Forget in warning. New strings bt.forget_heading, bt.forget_ask, bt.forget in all 8 languages, in the Bluetooth page's own words (es "emparejar", fr "appairer" and "Supprimer", it "dissociare", ja 登録解除). The other actions that do not ask stay so: Remove From Collection, and the in-game Reset, Quit and Undo Load.

B is the safe answer

  • The USB offer: B was kept for good as Keep Asking (usb_auto_offer = ask, never offered again). Now B, like MENU and POWER, keeps nothing and the offer comes again at the next USB Accessory answer. Keep Asking and Automatic are still kept when chosen. No answer carries B's glyph there.
  • PICO-8's new buttons (the menu closing after a Controls change): B was Cancel, which closed the menu and let the cart go on without a start again. Now the left answer is Later (the cart goes on, the new buttons wait for PICO-8's next start, as Cancel did), and B goes back to the in-game menu with nothing done. MENU still closes the menu as Later does.
  • Splore's and the cheats' questions, whose answers both go on: B leaves with neither, as before, and no answer has B's glyph.

Every question, before and after

Question Heading before Heading after Words changed
Wi-Fi Forget (both) Wi-Fi Forget Network slid in one row, now wraps
Bluetooth Forget (no question) Forget Headset new: "Forget %s? Pair it again to use it."
PICO-8 Display start again Start the cart again? Start Cart Again "Start the cart again? PICO-8 starts again in %s. ..."
PICO-8 new buttons Start the cart again? Start Cart Again "Start the cart again? PICO-8 takes the new buttons ..."; Cancel → Later
PICO-8 Reset, Reset Game hotkey Reset the game? Reset Game "Reset the game? Play since the last save is lost."
Splore with no network Splore needs Wi-Fi Open Splore -
Cheats after a crash Cheats Start Game -
First cheat Turn on a cheat? Turn On Cheat "Turn on a cheat? Achievements stop ..."
Hotkey swap the action's name (Quick Save) Swap Hotkeys "SELECT+R2 is already taken by Faster. Swap them, and Faster moves to SELECT+L1." → "Give SELECT+R2 to Quick Save? Faster has it now and moves to SELECT+L1."
Reset Hotkeys (3) Reset Hotkeys Reset Hotkeys yes: gamemenu.reset (de "Neustart", es "Reiniciar", pt "Reiniciar", it "Riavvia") → the reset word (de "Zurücksetzen", es "Restablecer", pt "Restaurar", it "Ripristina", fr "Rétablir")
Storage Unused Art Unused Art Delete Unused Art -
Storage Old Save States Old Save States Delete Old Save States -
Storage, a system's Delete Video Snaps Delete Video Snaps Delete Video Snaps "Delete every video snap, 1.2 GB?" → "Delete the PlayStation video snaps? 1.2 GB comes back. A download can get them again." (only that system's go)
Storage media folder / file Music / Videos / Audiobooks Delete Folder / Delete File -
Storage port folder, Delete Game, port Delete Game Delete Game the name never moves to the heading ("Delete this game?" gone)
Roll Back Roll Back Roll Back slid in one row, now wraps
Delete Collection Delete Collection Delete Collection es "Eliminar"/pt-BR "Excluir" → "Borrar"/"Apagar", as its Delete answer and every other delete
Delete Screenshot Delete Screenshot Delete Screenshot -
Video page Delete Video Delete Video -
SteamGridDB Unlink SteamGridDB Unlink Key "Unlink the key?" → "Unlink the SteamGridDB key?"
ScreenScraper Unlink ScreenScraper Unlink Account "Unlink the account?" → "Unlink the ScreenScraper account?"
Video Snaps page Delete Video Snaps Delete Video Snaps "Delete every video snap, 1.2 GB?" → Downloads' "Delete every video snap? 1.2 GB comes back. ..."
Reset Buttons (2) Reset Buttons Reset Buttons -
USB offer Power without asking? Power Automatically "Power without asking? Automatic powers ..."; pt-BR Keep Asking "Continuar perguntando" → "Sempre perguntar" (it did not fit its half)
RetroAchievements Sign Out Sign out of RetroAchievements? Sign Out "Sign out of RetroAchievements? Your achievements stay ..."
Downloads On the Card: Videos / Cheats / Achievements the question Delete Video Snaps / Delete Cheats / Delete Achievement Sets the question first, then what goes with it; es "vistas previas en video" → "avances en video" (the glossary's)
Downloads Systems: Videos / Achievements / Cheats the question with the system the same three headings as above

New strings: panel.join, wifi.forget_heading, bt.forget_heading, bt.forget_ask, bt.forget, pico8.restart_heading, pico8.restart_later, pico8.wifi_heading, hotkeys.reset_heading, hotkeys.reset_yes, hotkeys.swap_heading, cheats.crash_heading, cheats.ask_heading, storage.unused_heading, storage.old_heading, storage.media_heading_folder, storage.media_heading_file, media.delete_heading, scraper.unlink_key_heading, scraper.unlink_account_heading, xfer.usb_offer_heading, downloads.delete_cheats_heading, downloads.delete_sets_heading, all eight languages. Gone: gamemenu.delete_ask_this, gamemenu.delete_ask_port_this, pico8.wifi_title, snaps.delete_ask, snaps.delete.

DESIGN.md

  • 3.2 and 3.3: warning also marks "an answer that cannot be undone", owed large text's 3:1 on raised (LARGE_TEXT_ON in tools/designdef.py, 4.0:1 in Beard); text-soft held to raised too.
  • 11.3: a new part, "A question with two answers", the whole spec above, and "Wi-Fi and Bluetooth forget after asking" under MENU's tabs. New layout tokens: confirm-inset 26, confirm-gap 24, confirm-word-pad 24, confirm-glyph 40, confirm-glyph-gap 14, confirm-press 94.
  • 11.31 (Delete Game), 11.36 (the USB offer), 11.55 (your PICO-8), 11.56, 11.61, 11.66, 11.32, 11.53, 11.28 and 15 (where each part lives) say it the new way.

Fit

Measured with the real launcher (--confirm-fit, every one of the 39 questions in every language with the inventory's words, Delete Game and Delete Screenshot with "Castlevania - Symphony of the Night"), on the Pixel 2 and the Brick: all 39 side by side in all 8 languages, nothing cut, nothing sliding. The most lines a question takes: 5 in menu (Delete Game in de, fr, es, ja; Sign Out and PICO-8's new buttons in es, fr); the USB offer goes to meta in de, pt-BR and it. Two headings take two lines: pt-BR "Apagar conjuntos de conquistas", fr "Supprimer les visuels inutilisés". On the Smart Pro I measured it with #398 merged into this branch in a scratch tree (not pushed): the same, all 39 in all 8 languages, the panel at its 4:3 width in the middle of the 1368 canvas. check-confirm lays it out on the Smart Pro too once its profile is in the tree.

Checks

  • check-confirm (new): the table (39 questions, the 33 that lose something, the four where B gives nothing), the keys (cursor start, Left/Right round, a held one stopping, Up/Down edge, A, B = safe, MENU, POWER), every language's words (a heading that is no question, the question whole, Reset Hotkeys' yes the reset word, Storage's question naming the system), then --confirm-fit on every handheld and a long name taking the question to meta, then to its scroll. It failed once without the change (the old marks and Reset Hotkeys' restart word; pt-BR's Keep Asking stacking).
  • check-i18n-shots: 39 new shots, ask-*, every question over the shelf (--ask NAME), in every language on both handhelds; the old confirm shots draw the new panel.
  • check-pico8-display and check-pico8-keys drive the new panel in desk mode: the headings, Right to the action, Later on the new-buttons question, and B there going back to the menu and asking again.
  • check-messages' stand-ins know PANEL_CONFIRM.
  • A question of two sentences says both drawn to the host's check (cq_parts), so each string is still found in a shot.
  • README: res/readme/delete-ask.png taken again.

Known follow-up caller

The menu-keys branch (MENU+L1 screenshot, MENU+L2 lock) adds one more swap question in src/hotkeys_screen.c mk_take_key with ask_panel and S_HOTKEYS_SWAP_Q. Whichever of the two merges second needs a small change: cq_text(CQ_HOTKEYS_SWAP, q, sizeof q, chord, <this action's name>, <the other's>, <where it goes>) and confirm_ask_over(a, CQ_HOTKEYS_SWAP, q, &p->st, p) (the question's arguments are now keys, this action, the one that has them, where it goes).

Not changed: actions that do not ask

By my decision they stay without a question: Remove From Collection, and the in-game menu's Reset, Quit and Undo Load on a game other than your PICO-8.

Every two-answer question in the launcher, 38 of them, is now one
panel, as I picked it in the confirm panels lab: the answers side by
side as raised slabs, Cancel on the left with the cursor on it, the
answer that loses something in warning, a short heading with the
item's name in the question, B's glyph in the answer B gives, and a
press before the panel closes.

The questions are one table (src/confirmq.h), drawn by one part of
the design system (src/ds/confirm.h) and run by confirm_ask. Nothing
is cut and nothing slides any more: the question wraps, goes to meta
when it must, and Delete Game keeps the game's name in the question.
ask_panel's cut and its two copies are gone, and so are the 14
questions that slid in one row.

B now never takes an answer that stays: on the USB offer it keeps
nothing (it was kept for good as Keep Asking), and on PICO-8's new
buttons it goes back to the menu, the left answer being Later.

Words: action headings in all 8 languages, Reset Hotkeys' yes is the
reset word and not the game's restart, Storage's system page asks
about that system's snaps and not every one, the Unlink questions
name their service, es "avances en video" as the glossary says, and
Delete Collection's es and pt-BR delete word matches its answer.

check-confirm holds the table, the keys and every question in every
language on the Pixel 2 and the Brick; --ask NAME shoots any of them.
X on a paired headset forgot it at once, where Wi-Fi's Forget asks
first. Now it asks the same way: Forget Headset, the headset's name in
the question, Cancel on the left with the cursor on it, and Forget
marked as losing something, since it has to be paired again. It is the
39th question in the table, with its shot and its strings in all 8
languages; check-confirm holds it with the others.
@tarikbc
tarikbc marked this pull request as ready for review November 23, 2026 23:53
@tarikbc
tarikbc merged commit 952c7bd into main Nov 24, 2026
6 checks passed
@tarikbc
tarikbc deleted the confirm-panels branch November 24, 2026 00:24
tarikbc added a commit that referenced this pull request Nov 24, 2026
The Brick's evdev keys took main's d-pad and stick path, MENU's chords
through plat_key for the rest; and MENU's swap question for Screenshot
and Lock Screen is #479's: cq_text(CQ_HOTKEYS_SWAP) and
confirm_ask_over, as a game's hotkeys ask it, with the host shot
hotkeys-menu-swap.
tarikbc added a commit that referenced this pull request Nov 24, 2026
#464's own swap question (mk_swap_text on #479's panel) and its
check-menukeys fix replace this branch's (0e2b0dd, 7444bdc).
tarikbc added a commit that referenced this pull request Nov 24, 2026
Unpacked DS Games asks with the new panel: CQ_STORE_DS_COPIES, the 40th
question, the 34th marked as losing something, as Unused Art is. Its
heading is the action in each language (storage.ds_heading); French and
Italian short enough for one line. The question is storage.ds_ask, as
before. Storage's shot of it is confirm_preview's, and check-confirm and
i18n-shots know it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant