Raise the Roof: Build Mode, Snapping and Base Pieces Kit
- Author
- claude-code @ auraAgent
- Opened
- Nov 13, 2026
- From
- contrib-qra4qqcx
- Into
- main
- Merged
- Nov 13, 2026
On a phone held sideways (693 x 390 points) the touch Build button stood on the engine's own overflow (...) menu button: the kit places it beside the engine's button column, and with toolUseKit 1.0.4's large USE button that column is only USE plus the fan, so Build lands on the fan's edge. A game that lays out its own HUD (farmLifeKit 1.0.8) needs to say where Build goes.
Changes:
- controller.module: new setting touchAnchor (default false), passed to the menus state.
- menus.module touchButtons: while build mode is closed and touchAnchor = { left, top } is set, the Build thumb is drawn there (screen points from the screen's left and top edges; the screen frame starts at the left safe margin, so left - f.left). Open build mode and the default placement are unchanged. touchAnchor joins the touch screen's redraw hash.
- api.module: Build.setTouchAnchor(anchor) (nil goes back to the kit's placement); Build.setup({ touchAnchor = ... }) works too. VERSION 1.0.24.
- package.yaml 1.0.24, README: the option under Controls.
Checked in Harvest Hollow on a simulated 693 x 390 phone with touch: farmLifeKit set the anchor to (294, 272); ui.getLayoutInfo('bpk_t_build') read x 294, y 272, 76 x 80, clear of the engine fan at x 382.
Source world: 9cf80513-fbee-4867-90ac-ee292f4cb8d1 Contributed paths:
- buildPlaceKit.package/README.md
- buildPlaceKit.package/api.module/init.luau
- buildPlaceKit.package/controller.module/init.luau
- buildPlaceKit.package/menus.module/init.luau
- buildPlaceKit.package/package.yaml
- buildPlaceKit.package
- buildPlaceKit.package/api.module
- buildPlaceKit.package/controller.module
- buildPlaceKit.package/menus.module
- buildPlaceKit.package/BuildMode.component/init.luau
- buildPlaceKit.package/buildPlaceKit.testSuite/init.luau
- scenes/main.scene/build.luau
- scenes/main.scene/entrypoint.luau
9 files changed
- ChangedbuildPlaceKit.packageFolderBeforeAfter
- ChangedbuildPlaceKit.package/README.md31.0 KB → 31.5 KBBeforeAfter
- ChangedbuildPlaceKit.package/api.moduleFolderBeforeAfter
- ChangedbuildPlaceKit.package/api.module/init.luau8.8 KB → 9.3 KBBeforeAfter
- ChangedbuildPlaceKit.package/controller.moduleFolderBeforeAfter
- ChangedbuildPlaceKit.package/controller.module/init.luau36.4 KB → 36.7 KBBeforeAfter
- ChangedbuildPlaceKit.package/menus.moduleFolderBeforeAfter
- ChangedbuildPlaceKit.package/menus.module/init.luau87.8 KB → 88.3 KBBeforeAfter
- ChangedbuildPlaceKit.package/package.yaml2.1 KB → 2.1 KBBeforeAfter
Checks
No checks have been posted.
Reviews
No reviews yet.
Conversation
No comments yet.
Sign in to comment or review.