Build menu: Shift+Q/E switch tabs, G no longer picks (middle mouse does)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-3
@@ -79,7 +79,8 @@ Details and numbers live in the code and in `docs/systems/`.
|
||||
- Machines: fan, Refiner, Stone cutter, Silo.
|
||||
- Molds: ingot, bit, tank.
|
||||
- Build actions: drag for lines, Shift-drag for rectangles, Ctrl to replace, hold C / X and
|
||||
drag to copy / cut, V to paste, Ctrl+Z to undo, middle mouse (or G) to pick.
|
||||
drag to copy / cut, V to paste, Ctrl+Z to undo, middle mouse to pick,
|
||||
Shift+Q/E to switch build tabs.
|
||||
- **Economy:**
|
||||
- The trade dock pays for anything dropped through its grate, at the market price.
|
||||
- Prices dip when you sell a lot of one thing and recover over minutes.
|
||||
@@ -135,8 +136,8 @@ above, including:
|
||||
build more lines.
|
||||
- **A heap on a belt moves as one**, up to 96 grains deep, not just its bottom layer. The owner
|
||||
reports this still misbehaves (see NOTES.md).
|
||||
- **Pick** (middle mouse, also G for now) selects the piece under the cursor with its direction,
|
||||
wall material and filter settings. The owner wants G dropped (see NOTES.md).
|
||||
- **Pick** (middle mouse) selects the piece under the cursor with its direction,
|
||||
wall material and filter settings. G is unbound, as the owner requested.
|
||||
- **The build menu** is a bar of tabs and icon tiles along the bottom: Structure, Moving,
|
||||
Liquids, Machines, Molds. The owner wants more changes (see NOTES.md).
|
||||
- **No length limit when dragging.** Blocks out of the bot's reach become ghosts that it builds
|
||||
|
||||
+3
-3
@@ -392,9 +392,9 @@ The notebook (N): milestones, market, wallet, blueprints, controls.
|
||||
The tool hotbar and what is selected.
|
||||
- functions: renderHotbar, toolId, steering, modShift, grainAt, selectTool, bagMaterials, mixList, ensureDropMat, piece
|
||||
|
||||
### src/ui/build-menu.js (72 lines)
|
||||
### src/ui/build-menu.js (80 lines)
|
||||
The build menu along the bottom: categories, piece tiles and their icons.
|
||||
- functions: pieceIcon, catOf, renderBuildBar, setupBuildBar
|
||||
- functions: pieceIcon, catOf, selectBuildCat, cycleBuildCat, renderBuildBar, setupBuildBar
|
||||
- variables: BUILD_CATS, BUILD_ORDER, PIECE_ICONS, lastBuildKey
|
||||
|
||||
### src/ui/selection.js (246 lines)
|
||||
@@ -406,7 +406,7 @@ The selected tool and piece: R / Q / E, drill width, filter picker, the selectio
|
||||
Discovery cards, hover info (I) and the cursor label.
|
||||
- functions: showCard, howText, discoveryCard, reactionsOf, hoverInfo, renderInfo, drawCursorLabel
|
||||
|
||||
### src/ui/input.js (76 lines)
|
||||
### src/ui/input.js (75 lines)
|
||||
Keyboard and mouse listeners.
|
||||
- functions: isTyping
|
||||
- variables: canvas
|
||||
|
||||
@@ -4,6 +4,23 @@ What agents have done, newest first. Add an entry for every piece of work: the d
|
||||
note or request it was for, what changed, the files touched, the tests run, and anything left
|
||||
open or not verified. Keep each entry short; the git history has the details.
|
||||
|
||||
## 2026-10-23: Shift+Q/E build tabs, G pick key removed (Claude Code, with Codex)
|
||||
|
||||
Notes: "add shift + q/e to move tabs" and "having the "g pick" there is confusing".
|
||||
|
||||
- `src/ui/build-menu.js`: `selectBuildCat(c)` (shared with tab clicks) and `cycleBuildCat(d)`;
|
||||
the menu hint now reads Q/E cycle · Shift+Q/E tab.
|
||||
- `src/ui/input.js`: Shift+Q/E switch tabs with the build tool; G is unbound.
|
||||
- Text: build card (`selection.js`), notebook controls (`notebook.js`), `actions.js` comment,
|
||||
`docs/DESIGN.md`, `docs/PROJECT_MAP.md` (regenerated, `--check` passes).
|
||||
- `test/play.py`: checks for Shift+Q/E, wrapping, the remembered piece per tab, plain Q/E,
|
||||
and that G no longer calls pick while middle mouse still does (109 checks).
|
||||
- Tests: all 11 headless suites and `play.py` pass; a `tools/shot.py` shot of the Moving tab
|
||||
shows the new hint. `t_smooth.py` passes, but its "half-resolution smooth still draws" check
|
||||
failed on several runs with the 'slow' pixel fallback while the machine was busy (load ~14).
|
||||
The previous commit fails the same way under the same load, so this change didn't cause it.
|
||||
- Open: that check is timing-sensitive on a loaded machine; rerun it when the machine is idle.
|
||||
|
||||
## 2026-10-23: browser tests run locally (Claude Code, with Codex)
|
||||
|
||||
Request: get the browser tests, Playwright and Chromium working on the owner's Arch machine
|
||||
|
||||
Reference in New Issue
Block a user