ScrollHotbar
Makes the mouse wheel scroll through the hotbar instead of using 1-8 hotkeys. Hold ctrl and scroll to zoom in/out.
About this mod Author’s original text
Description
Simple mod that makes the mouse wheel scroll through the hotbar instead of having to use 1-8 hotkey.
Zoom-in/out can be done by holding down ctrl then scrolling the mouse wheel up or down.
Installation instructions
Like every other Bepinex mod, get bepinex mods working first, then drop the dll in its \plugins subfolder
Changelog
Version 7
- Added optional compatibility for the mod "Hotbar Switch" by cjayride and originally by aedenthorn
- Fixed scrollbar when exiting from a slot that has been blocked (hammer, hoe, etc.)
Version 6
- Added compatibility with other mod which also hook on the mouse scroll wheel like SmarterHoe, better cultivator, etc...
- Simplified the ignore method so that even if one is method is broken by an incompatible mod, the rest will keep working just fine
Version 5
- New update to add a custom open ended text field so that people can add or remove which item gets "ignored" by scrolling.
- $item_hammer, hoe and cultivator are added by default to this new list.
- Improved the logic when using both numbers and scroll wheel to move through the hotbar
Version 4
- New version to improve scrolling when pressing 1-8 hotkey to manually select a weapon.
- The mod will now reset its index on one of those keypress.
- Also fixed dual wielding of main hand + shield or torch that broke scrolling a bit.
Version 3
- Mod now auto ignores mouse-wheel scrolling with Cultivator and Hoe tool.
- Settings files updated to simply ScrollHotbar.cfg
- Hotkey renamed from "previewkey" to "Camera Zoom Key"
Version 2
- Mod now auto ignores mouse-wheel scrolling when building or when world map is opened.
Shout outs
This was inspired by "ScrollHotbar" from KuroPhantom.
His code was open source MIT on github pre 1.0 so I re-wrote the whole thing and made it compatible.
Here is the full source code of the DLL:
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file. In multiplayer, the host and every client need the same mods installed.
Install these first, or the mod will not work: