Build tool: compact top-left card again; status row moved off the build bar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+6
-2
@@ -147,8 +147,9 @@ above, including:
|
||||
wall material and filter settings. G no longer picks, as the owner requested (it is now Replace).
|
||||
- **The build menu** is a bar of tabs and icon tiles along the bottom: Structure, Moving,
|
||||
Liquids, Machines, Molds. Hover a tile for its full description, cost and placement help;
|
||||
gamepad players see the selected tile’s popup. The top-left card is hidden while building,
|
||||
with variants, ghosts and status kept in the bar so the world stays clear.
|
||||
gamepad players see the selected tile’s popup. While building, the top-left card shows a
|
||||
compact summary (name, cost, variant chips, Replace, ghosts, how to place, status); the full
|
||||
description is in the hover popup.
|
||||
- **No length limit when dragging.** Blocks out of the bot's reach become ghosts that it builds
|
||||
when it gets there.
|
||||
- **Pipes are thin:** sand, water and anything else loose passes them. Pumps and outlets are
|
||||
@@ -168,6 +169,9 @@ above, including:
|
||||
- **Replace is held G, not Ctrl.** The owner hit the browser's Ctrl+W (close tab) and Ctrl+D
|
||||
(bookmark) while replacing and flying with WASD, and the game ignored WASD while Ctrl was held.
|
||||
|
||||
- **The build tool has a compact top-left card** like the other tools. The owner asked for it
|
||||
back after it was hidden; the long description stays in the hover popup.
|
||||
|
||||
## Ideas not built yet
|
||||
|
||||
- **Concrete**, as a stronger wall material from rubble.
|
||||
|
||||
+3
-3
@@ -392,12 +392,12 @@ 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 (104 lines)
|
||||
### src/ui/build-menu.js (101 lines)
|
||||
The build menu along the bottom: categories, piece tiles and their icons.
|
||||
- functions: pieceIcon, catOf, selectBuildCat, cycleBuildCat, renderBuildBar, setupBuildBar
|
||||
- functions: pieceIcon, catOf, selectBuildCat, cycleBuildCat, buildVariantChips, renderBuildBar, setupBuildBar
|
||||
- variables: BUILD_CATS, BUILD_ORDER, PIECE_ICONS, lastBuildKey, lastBuildMenu
|
||||
|
||||
### src/ui/selection.js (228 lines)
|
||||
### src/ui/selection.js (234 lines)
|
||||
The selected tool and piece: R / Q / E, drill width, filter picker, the selection card, the bag panel.
|
||||
- functions: pieceUsesWall, setDrillWidth, tuneUnderCursor, cycleItem, cycleWall, rotate, toggleCollect, pickFilterUnderCursor, toggleFilterMat, toggleCollectUnderCursor, setBrush, pieceV, pieceExtra, filterChoices, matList, filterParts, filterSentence, applyFilterRun, openFilterPicker, filterBlockAt, chipCost, pieceCostNow, renderSelCard, renderBag
|
||||
- variables: lastBagKey
|
||||
|
||||
@@ -4,6 +4,22 @@ 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: compact build card top-left (Claude Code, with Codex)
|
||||
|
||||
Note: "build tool has no info box like the other tools." The owner chose a compact card.
|
||||
|
||||
- `src/ui/selection.js`: the build tool has a card again: Q, piece name, cost (red if short), E;
|
||||
variant chips, Replace · G and ghosts waiting; one how-to line; the status line. No long
|
||||
description; that stays in the hover popup.
|
||||
- `src/ui/build-menu.js`: the `.bb-status` row is gone (its contents are on the card); the
|
||||
variant chips are shared through `buildVariantChips(P)`. `src/styles/style.css`,
|
||||
`docs/DESIGN.md`, `docs/PROJECT_MAP.md`.
|
||||
- `test/play.py`: the card is visible while building with name and cost and without the
|
||||
description; status and Replace · G are read from the card; no `.bb-status` (122 checks pass).
|
||||
All 11 headless suites pass; `t_smooth.py`'s half-resolution check is still flaky under load.
|
||||
- Shots: `shots/build-card-*` (belt and wall, both looks, 1280×800 and 900×700) look right.
|
||||
- Open: at 900px wide the bottom-left hover panel still sits partly under the build bar.
|
||||
|
||||
## 2026-10-23: Replace is held G, not Ctrl (Claude Code, with Codex)
|
||||
|
||||
Note: "i see the issue was ctrl+w closing the tab… it happens for the bookmark hotkey too. maybe
|
||||
|
||||
Reference in New Issue
Block a user