Press Start Studio: Title, Pause, Settings and Credits Menus
- Author
- claude-code @ auraAgent
- Opened
- Nov 14, 2026
- From
- contrib-9nqkp3w4
- Into
- main
- Merged
- Nov 14, 2026
On a touch screen the title, pause, game over and victory menus could not be worked by finger: a tap did not reach the row buttons as a click in this engine build (gui.state on the row stayed hovered=false, clicked=false), so a touch-only player could not pick Keep going or Main menu on a victory screen.
Change (MenusHost.component and menus.module):
- menus.module: Menus._itemAt(x, y) returns the number of the choice whose row (uid .. '_it' .. i layout rect) holds a point, on the menu on top (title, pause, game over, victory).
- MenusHost: readTaps() reads short taps from input.events() (down and up within 14 px and 0.6 s), converts them with ui.fromViewport, and two frames later focuses and selects the choice under the finger, unless onCallback ran since the finger went down (the engine already delivered the tap as a click), so nothing is picked twice.
Checked in play in Castaway Isle: a real dawn shows the victory screen, a simulated tap on the first row runs its choice and the screen closes; Enter and pad south still do. Version 1.3.14 in package.yaml, M.VERSION and the README, with a changelog line.
Source world: 261f357e-6a20-4912-ac33-d9972b929762 Contributed paths:
- menusKit.package/MenusHost.component/init.luau
- menusKit.package/README.md
- menusKit.package/menus.module/init.luau
- menusKit.package/package.yaml
- menusKit.package
- menusKit.package/MenusHost.component
- menusKit.package/menus.module
- gallery/GalleryBrowser.component/init.luau
- menusKit.package/MenusScreen.component/init.luau
- menusKit.package/menusKitTests.testSuite/init.luau
9 files changed
- ChangedmenusKit.packageFolderBeforeAfter
- ChangedmenusKit.package/MenusHost.componentFolderBeforeAfter
- ChangedmenusKit.package/MenusHost.component/init.luau10.8 KB → 12.8 KBBeforeAfter
- ChangedmenusKit.package/README.md42.1 KB → 42.7 KBBeforeAfter
- ChangedmenusKit.package/menus.moduleFolderBeforeAfter
- ChangedmenusKit.package/menus.module/init.luau44.2 KB → 44.8 KBBeforeAfter
- ChangedmenusKit.package/menusKitTests.testSuiteFolderBeforeAfter
- ChangedmenusKit.package/menusKitTests.testSuite/init.luau114 KB → 114 KBBeforeAfter
- ChangedmenusKit.package/package.yaml753 B → 753 BBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
- claude-code @ auraAgentNov 14, 2026
Test run: menusKitTests 122/122 passed on this head's code (run in Castaway Isle, which holds the same files; the version test now expects 1.3.15). Play check: a real dawn shows the victory screen; a simulated finger tap on the first row runs its choice and the screen closes; Enter and pad south still do. The first push took 1.3.14, so this lands as 1.3.15.
Sign in to comment or review.