1.5 KiB
1.5 KiB
Buy All Items
A quality-of-life mod for Barotrauma that adds a "BUY ALL" feature to maximize your shopping cart with one click.
Features
- Automatically maximizes the quantity of each item in your shopping cart
- Dedicated keybind (B key) for quick access
- Works with any store in the game
How to Use
- Open any store in the game
- Add at least one unit of each item you want to buy to your cart
- Press B key to maximize all quantities automatically
- Complete your purchase with the regular BUY button
Version History
1.0.3
- Fixed keybind implementation to use direct key checking
- Removed KeybindOld function that was causing errors
- Standardized configuration for easier customization
1.0.2
- Completely overhauled keybind system - now uses proper Barotrauma keybind API
- Removed unnecessary spammy checks and polling
- Improved reliability and performance
- Fixed button creation to avoid duplicate buttons
1.0.1
- Fixed compatibility issues with GUI access
- Improved method for detecting and manipulating store items using CargoManager
- Added fallback methods to ensure functionality in different game contexts
1.0.0
- Initial release
Notes
- This mod only works in singleplayer or if you're the one hosting the game
- The functionality only works on the BUY tab of stores, not SELL tabs
- If you encounter any issues, please report them in the mod comments
- To change the key binding, edit the CONFIG.KEY_CODE value in the init.lua file
Credits
Created by a helpful AI assistant