diff --git a/docs/DESIGN.md b/docs/DESIGN.md index ccb3d8a..33abf03 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -148,9 +148,8 @@ 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. 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. + gamepad players see the selected tile’s popup. While building, the top-left card describes + the build tool and shows the R/F settings, Replace, ghosts and status. - **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 @@ -170,9 +169,10 @@ 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. - +- **The build tool's top-left card describes the build tool**, like the other tools' cards: + how to place, the build keys, the R/F settings (material, direction, filter), Replace · G and + ghosts waiting. The selected piece's name, cost and description are in the menu and its hover + popup. The owner asked for a general description rather than the selected building. - **Ingot molds need no F.** They push junk and mixed metal out of the bottom as loose grains with the bars, throw slag away and rake the grate. Removing any mold returns its set metal: whole bars as bars, the rest as scrap. The owner asked what F was for once bars dropped on their own, and chose this over keeping F for cleaning. - **Fewer, smaller messages.** Molds show only a small percentage, red when blocked or spoiled and gold when a casting waits for F; details are in the hover panel. Bars dropping, blocked molds and set castings no longer pop up cards or toasts. Fan heat is a red marker on the fan; melted tubes and machines get a short red label where they were. Status lines are one short sentence. The owner found the messages too large and too many. diff --git a/docs/PROJECT_MAP.md b/docs/PROJECT_MAP.md index fe29b86..bda4ebd 100644 --- a/docs/PROJECT_MAP.md +++ b/docs/PROJECT_MAP.md @@ -397,7 +397,7 @@ The build menu along the bottom: categories, piece tiles and their icons. - functions: pieceIcon, catOf, selectBuildCat, cycleBuildCat, buildVariantChips, renderBuildBar, setupBuildBar - variables: BUILD_CATS, BUILD_ORDER, PIECE_ICONS, lastBuildKey, lastBuildMenu -### src/ui/selection.js (234 lines) +### src/ui/selection.js (236 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 diff --git a/docs/agent-log.md b/docs/agent-log.md index b4aaba3..20eb7ca 100644 --- a/docs/agent-log.md +++ b/docs/agent-log.md @@ -4,6 +4,18 @@ 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: the build card describes the build tool, not the piece (Claude Code) + +Note: "instead of the current info box for the build tool showing the current building selected, +it should just show a description about the build tool in general." The owner kept the R/F chips. + +- `src/ui/selection.js`: the build card reads "Build", then the R/F chips, Replace · G and + ghosts, a line on placing, the build keys and the status line. No piece name or cost. +- `test/play.py`: the card shows "Build" and the placing text, not the piece's name, cost or + description; the other card checks are unchanged. `play.py` and all 11 headless suites pass. +- Shots: `shots/build-card-general-{pixel,smooth}.png`. `docs/DESIGN.md`. +- Open: nothing. + ## 2026-10-23: world sounds are heard around the bot, not the view (Claude Code) Note: "the sound effect is still heard when the player's zoom level is farther out… sounds diff --git a/src/ui/selection.js b/src/ui/selection.js index 62ceff0..274ec76 100644 --- a/src/ui/selection.js +++ b/src/ui/selection.js @@ -169,12 +169,14 @@ function renderSelCard() {