
ReservedJsonSlots
Allows adding item slots with JSON files.Details
v1.2.0
- PlayerBone fields now allow you to type the bone name in the form of a string. Putting an integer like before still works too.
- Added
requiredMods
field. Set this to a list of BepinEx Plugin GUIDS and if none of the plugins listed are loaded the slot won't be registered. - Keybinds should now be unusable when in the terminal menu.
- Added JLL as a dependancy so I can reuse some code.
- Json Reserved Slots now get registered during the PreInitScene instead of plugin awake to ensure PluginInfos are set up for all mods before initialization.
- Removed some extra debug logging.
- Updated Example Belt slot to show how to set up some of the new features.
v1.1.2
- Readme Update
- Repocket should now only happen when the item triggered with the keybind is not the actively held item.
- Keybinds should now be able to trigger slot items in other slots that are not the active slot or a reserved slot.
v1.1.1
- Readme Update
v1.1.0
- You can now define keybinds in your json for using the item and equipping your reserved slot via hotkey.
- Keybinds can be set as either a toggle or a hold to use in the json. Additionally there is a boolean for repocketing on the use keybind. This will trigger the pocket item rpc after triggering it's use rpc. Depending on the item this could fix some odd behavior such as using a flashlight and the light staying parented to the player's hand instead of becoming docked on their shoulder. Please note that the use keybind will not work on all items. You are free to experiment but some items may cause errors. This is use at your own risk.
- Added LethalCompanyInputUtils as a dependancy for making keybinds easier.
- Json Slots now have a display name field used for logs and as the name displayed in the keybinds menu when applicable. If this field is left empty it will use the filename of the json file as the display name.
- When the
reservedSlotName
is left blank it now will not be registered instead of causing problems. reservedSlotName
now is forced to be lowercase with _'s in place of spaces. You where supposed to already be doing this but some people weren't so now I'm forcing the formatting on you.- If the name is left blank for an item in the slot's item infos it now gets removed during initialization.
- Removed some unnecessary logging.
v1.0.1
- Changed price and priority values for the Belt Bag slot it generates on first launch.
- Added more examples to README.
- Changed the order of text in the README a bit.
v1.0.0 Release
- Allows creation of ReservedItemSlots through JSON files.