Repository navigation
v1.2.0: Apply all 0% to store nothing, and ring Apply while changes are unapplied - #11
Merged
Merged
Conversation
…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>
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.
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.TryClearleaves mixed mode the way a copy does (Deactivate), then calls the base game'sDisallow.AllocationPlan.CanLeavewith no kept good). Stock already there stays as excess.1|(AllocationPlan.Nothing). Saves never hold it, andDeserializestill refuses it. Earlier versions also refuse it, so co-op players must update together.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.DiffersagainstStorageState.Draft), Apply gets a 2px ring in the game's stock-bar orange and bold text.NineSliceButtondraws 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.propsand 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.🤖 Generated with Claude Code