Skip to content

v1.2.0: Apply all 0% to store nothing, and ring Apply while changes are unapplied - #11

Merged
kramsey458 merged 2 commits into
mainfrom
claude/store-nothing-apply-highlight
Sep 23, 2026
Merged

kramsey458 merged 2 commits into
mainfrom
claude/store-nothing-apply-highlight

Conversation

@kramsey458

Copy link
Copy Markdown
Collaborator

Two panel changes a player asked for, plus the v1.2.0 release bump.

Store nothing

With every good at 0% (Clear all, or × on the last allocated good), Apply used to stay greyed out because the total was not 100%, so there was no way to make a warehouse or pile hold nothing. Now the button reads Apply: store nothing and makes the building store nothing, like a newly built one.

  • StorageState.TryClear leaves mixed mode the way a copy does (Deactivate), then calls the base game's Disallow.
  • Every limit drops to 0, so it waits for incoming deliveries (AllocationPlan.CanLeave with no kept good). Stock already there stays as excess.
  • It's sent as the payload 1| (AllocationPlan.Nothing). Saves never hold it, and Deserialize still refuses it. Earlier versions also refuse it, so co-op players must update together.
  • Copy stays off for an all-0% draft. The limits column shows 0, and the summary says "Stores nothing".

Apply ring

The "Unapplied changes" message scrolls with the goods list, so after clicking Max on a good far down the list, nothing in view showed that a change was waiting. While Apply is available and the draft differs from the applied settings (AllocationPlan.Differs against StorageState.Draft), Apply gets a 2px ring in the game's stock-bar orange and bold text. NineSliceButton draws its background in the padding rect, so the ring sits around the button's own frame instead of being painted over. The panel's 0.4 s refresh also rechecks it.

Release

Version bumped to 1.2.0 in Directory.Build.props and the manifest. Also updated: README, changelog, developer notes, and the website (panel replica, FAQ, install guide, troubleshooting, project status).

Testing

  • build.ps1: zero warnings, and every loading, allocation (19,138 assertions), native API, patch target and geometry check passes. The new tests cover the all-0% status line, the payload round trip, the delivery guard, and when Apply is ringed.
  • node tests/test-site.mjs: 76/76 checks pass.
  • I clicked through the website's panel replica in a browser: Clear all → Apply: store nothing → Max → Revert, and saw the orange ring.
  • Not played in game yet, including how the ring looks on the real button and storing nothing in co-op.

🤖 Generated with Claude Code

kramsey458 and others added 2 commits September 22, 2026 17:03
…lied

A player who wanted a warehouse or pile to hold nothing had no way to do
it from the panel: Clear all gave a 0% draft, and Apply stayed off because
the total was not 100%. Applying every good at 0% now makes the building
store nothing, as when it was just built. StorageState.TryClear leaves
mixed mode like a copy does, then calls the base game's Disallow. Every
limit drops to 0, so it waits for incoming deliveries (CanLeave with no
kept good); stock already there stays as excess. The Apply payload for it
is "1|", which saves never hold and earlier versions refuse, so co-op
players must update together.

The "Unapplied changes" message scrolls with the goods list, so after Max
on a good far down the list nothing in view said a change was waiting.
While Apply is available and the draft differs from the applied settings,
Apply now gets a 2px ring in the game's stock-bar orange and bold text.
NineSliceButton draws its background inside the border, so the ring
surrounds the button's own frame. The check also runs on the panel's
refresh, because the building list's goods dropdown changes a single-good
building without a new Revision.

The website's panel replica, FAQ, install guide and troubleshooting page
follow the mod. Allocation tests cover the all-0% status line, its payload
round trip and delivery guard, and when Apply is ringed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump the version in Directory.Build.props and the manifest to 1.2.0, point
the README at the v1.2.0 download, and list the release in the changelog:
Apply with every good at 0% makes a building store nothing, and Apply is
ringed in orange while the draft differs from the applied settings. All
co-op players must update together. README, developer notes and the
website say the changes have not been played in game.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kramsey458
kramsey458 merged commit f3c8097 into main Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant