Compare commits
2 Commits
fb1bcf8695
...
0148d871f9
Author | SHA1 | Date | |
---|---|---|---|
0148d871f9 | |||
e141eb9d14 |
@@ -1,48 +0,0 @@
|
||||
# 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
|
||||
|
||||
1. Open any store in the game
|
||||
2. Add at least one unit of each item you want to buy to your cart
|
||||
3. Press B key to maximize all quantities automatically
|
||||
4. 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
|
@@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<contentpackage name="Quick Buy" modversion="1.0.0" corepackage="False" gameversion="0.19.15.0" />
|
@@ -1,4 +1,4 @@
|
||||
# Quick Stack To Containers
|
||||
# Cyka Quick
|
||||
|
||||
A Barotrauma mod that allows you to quickly stack items from your inventory into containers by pressing the F key.
|
||||
|
||||
|
@@ -1,58 +0,0 @@
|
||||
if not CLIENT then return end
|
||||
|
||||
-- Hook.Add("keyUpdate", "quickswap_bag~hand", function()
|
||||
-- if not PlayerInput.KeyHit(Keys.LeftAlt) then return end
|
||||
-- if GUI.KeyboardDispatcher.Subscriber then return end
|
||||
--
|
||||
-- local character = Character.Controlled
|
||||
-- if not character then
|
||||
-- print("No character found")
|
||||
-- return
|
||||
-- end
|
||||
-- local inventory = character.Inventory
|
||||
-- if not inventory then
|
||||
-- print("No inventory found")
|
||||
-- return
|
||||
-- end
|
||||
--
|
||||
-- local bagSlotIndex = inventory.FindLimbSlot(InvSlotType.Bag)
|
||||
-- if bagSlotIndex < 0 then
|
||||
-- print("No bag slot found")
|
||||
-- return
|
||||
-- end
|
||||
--
|
||||
-- local bagItem = inventory.GetItemAt(bagSlotIndex)
|
||||
-- if not bagItem then
|
||||
-- print("No bag item found")
|
||||
-- return
|
||||
-- end
|
||||
-- local bagInventrory = bagItem.OwnInventory
|
||||
-- if not bagInventrory then
|
||||
-- print("No bag inventory found")
|
||||
-- return
|
||||
-- end
|
||||
--
|
||||
-- -- local bagItems = {}
|
||||
-- -- local items = bagInventrory.AllItemsMod
|
||||
-- -- for _, item in ipairs(items) do
|
||||
-- -- ---@cast item Barotrauma.Item
|
||||
-- -- bagItems[item.Name] = true
|
||||
-- -- end
|
||||
--
|
||||
-- -- local inventoryItems = inventory.AllItemsMod
|
||||
-- -- for _, item in ipairs(inventoryItems) do
|
||||
-- -- if bagItems[item.Name] then
|
||||
-- -- end
|
||||
-- -- end
|
||||
--
|
||||
--
|
||||
--
|
||||
--
|
||||
--
|
||||
-- --for _, handSlotType in ipairs { InvSlotType.LeftHand, InvSlotType.RightHand } do
|
||||
-- -- local handSlotIndex = inventory.FindLimbSlot(handSlotType)
|
||||
-- -- if handSlotIndex >= 0 then
|
||||
-- -- if inventory.TryPutItem(bagItem, handSlotIndex, true, false, character) then return end
|
||||
-- -- end
|
||||
-- --end
|
||||
-- end)
|
@@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<contentpackage name="Quick Swap Hand~Bag" modversion="1.0.0" corepackage="False" gameversion="1.7.7.0" expectedhash="E5BC9CD2964C4C8DEA6F7F40F2E0D278" />
|
Reference in New Issue
Block a user