Repository navigation
Build a solve one kind at a time - #15
Merged
Merged
Conversation
…nd a tighter step bar A player copying a large solve into the game builds one kind at a time, and since 1.1.16 a solved board is too dense to copy by eye. - Kind filter: Generators / Coolers / Reactors chips on the solver board, each with its count, fade every other building so one kind stands out (GridRenderer.setFocus, which now enlarges only a step's own tiles). It works in step mode too. On a phone it shares the view toggle's line. - Build by kind: step mode's Start offers Most power or By kind. By kind opens a dialog (StepOrderModal) to order the three kinds; the planner's new PlanOptions.group then lays down each kind in one reading-order sweep, sales first. The cash rule still comes before the groups, and the power order is unchanged when no group is given. Order and kinds are persisted and validated on load; a change mid-plan supersedes the plan in flight. - After the last step, offer to put the island on the board in Edit (applyMoveSteps, through copySolveToBoard) so Island stats counts it. - Step mode folds the board stats card on every screen, without touching the player's own fold preference. - The step bar is about a quarter shorter: each step's cash on the head line, the plan's cash on one line, less padding throughout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Asked for by a player who copies a solve into the game one kind of building at a time. Since 1.1.16 a solved board has too many buildings to copy by eye.
What changes
Kind filter. On the solver board, three chips (Generators / Coolers / Reactors, each with its count) fade every other building so one kind stands out. Faded rather than hidden, so a free tile still reads differently from a taken one. Works in step mode too, where the step's own building stays drawn large. On a phone the chips share the Edit/Solver toggle's line.
Build by kind in step mode. Step mode's Start now offers Most power (the existing order) or By kind. By kind opens a dialog to set the order of the three kinds, persisted. The planner's new
PlanOptions.groupthen lays down each kind in one row-by-row sweep, sales first.Update my board. After the last step, the bar offers to put the island on the board in Edit, the same as the readout's Copy, so Island stats and the timeline count it. One undo entry.
Step mode is tighter. The board stats card folds while stepping, on every screen, without touching the player's own fold setting. The step bar is about a quarter shorter: each step's cash sits on the head line, the plan's cash on one line, with less padding throughout.
Testing
npm run check,npm run knipand all 1204 tests pass.