Adds a button to production benches to remove completed "Do X times" bills from the bill stack.
Description
Bill Stack Helper adds a utility button to the production interface of all workbenches. When clicked, the mod scans the current bill stack and removes entries that meet the following criteria:
[list]
[*] The bill repeat mode is set to "Do X times" (RepeatCount).
[*] The remaining count has reached 0 or less.
[*] The bill is not currently suspended.
[/list]
This tool is designed to reduce UI clutter without affecting active "Do forever" or "Do until X" bills. The mod now includes full localization support for the UI and feedback messages. The icon in the game also has a tooltip that explains what the button does.
Integration
This mod was developed to assist with the workflow of [b][url=https://steamcommunity.com/sharedfiles/filedetails/?id=3534699220]Help Me Build[/url][/b]. Since "Help Me Build" automatically queues multiple "Do 1" bills for construction materials, benches can become cluttered with exhausted bills. This mod allows for a one-click cleanup of those entries.
For Modders / Translators
The mod utilizes the RimWorld keyed translation system. If you wish to localize this mod, refer to the [i]Languages[/i] folder.
Keyed IDs used:
[list]
[*] [b]Zhuma.BillStackHelper.ClearTip[/b]: Tooltip for the cleanup button.
[*] [b]Zhuma.BillStackHelper.RemovedCount[/b]: Message displayed after successful cleanup (supports {0} variable for count).
[*] [b]Zhuma.BillStackHelper.NoBills[/b]: Message displayed if no eligible bills were found.
[/list]
Q&A
[b]Q: Does this affect performance?[/b]
A: No. The logic only executes when the user manually clicks the cleanup button. It does not run in the background or during the standard game tick.
[img]https://i.postimg.cc/j5Y0WmMX/Rim-World-Win64-Sezi-VUUCNT.png[/img]
[b]Q: Can I add or remove this mid-save?[/b]
A: Yes. The mod does not add any custom data to your save file and can be safely enabled or disabled at any time.
[b]Q: Which bills are ignored?[/b]
A: Suspended bills and any bills not set to "Do X times" are ignored to prevent accidental deletion of recurring production tasks.
[b]Q: Is there a way to remove bills that are not completed?[/b]
A: No. The mod only removes bills that have reached 0 and are not suspended.
[b]Q: Is [b]Help Me Build[/b] a requirement?[/b]
A: No. The mod does not require [b]Help Me Build[/b]. It functions on its own.
Compatibility
[list]
[*] Compatible with RimWorld 1.6.
[*] Works with [b][url=https://steamcommunity.com/sharedfiles/filedetails/?id=935982361]Better Workbench Management[/url][/b] and [b][url=https://steamcommunity.com/sharedfiles/filedetails/?id=1446523594]Dub's Mint Menus[/url][/b].
[*] Currently does nothing with [b][url=https://steamcommunity.com/sharedfiles/filedetails/?id=3520130671]Nice Nice Bill Tab[/url][/b]. To be exact, the mod doesn't add any buttons to the nice bill tab. To use the mod you would have to toggle the nice bill tab off, temporarily. There's a button for it in the bills tab.
[img]https://i.postimg.cc/kgwBvN0y/Rim-World-Win64-x-YSh-HIa-IRu.png[/img]
[*] Compatible with all modded workbenches that utilize the standard [i]BillStack[/i] class.
[/list]
Screenshots
Deleting all finished bills:
[img]https://i.postimg.cc/W1ShwmBM/All-Finished.gif[/img]
Ignoring unfinished bills:
[img]https://i.postimg.cc/T3QpJjzC/AFew-Unfinished.gif[/img]
Ignoring "Do until X" bills:
[img]https://i.postimg.cc/kgwBvN0s/Do-Until.gif[/img]
Ignoring "Do forever" bills:
[img]https://i.postimg.cc/Njb5k834/Do-Forever.gif[/img]
[hr]
[i]Developed by [url=https://steamcommunity.com/profiles/76561198358321286/]Zhuma[/url].[/i]