AutoHide Hotbar

If you liked this item, please rate it up on Steam Workshop page.

Author: peteR 75hz

Last revision: 8 Aug, 2023 at 17:48 UTC (1)

File size: 1.19 MB

On Steam Workshop

Description:
AutoHide Hotbar

Do you get bothered when all the extra hotbar slots you have are clipping thought the Vehicle Dashboard when driving? Well, so this mod is for you!
All it does is simply hide the hotbar automatically when you are driving.


How it works:

First, it checks if the player is inside a vehicle, then do another check if the player is the driver.
If all checks are true, it disables the hotbar renderer until any check return false
(Because of that, only hides the hotbar it if the Vehicle Dashboard is being rendered)


Questions:
Is it compatible with Multiplayer?

Yes!

Does it work on existing saves?

Yes! It can be enabled/disabled mid-save without any problems.

Does it work for all game versions?

Only tested and working on current game version: 41.78.16

Is it compatible with X mod?

Probably yes.
It hooks on the ISHotbar:render() function, but was done in a way that should be always compatible with any mod that hooks that function too.


Credits:

The mod used in the example is Undead Survivor.
As always, a big thank you to everyone in #mod_development on the official Project Zomboid Discord[discord.gg]

Found any bugs?

If you encounter any errors or bugs, report them according to the first post in the pinned discussion Bug Reports.
For any questions, please be kind and leave a comment below!


Don’t forget to rate and favorite!

Permissions
This mod’s permissions fall under TIS’s policy Ask For Permission[theindiestone.com] [theindiestone.com] This mod can only be added to and extended with the express permission from the original creator. Having received permission, credit must be given to the original creator, both within the files of the mod and wherever the mod roams online. If no permission is received you may not alter the mod, and it must be treated as a mod that is ‘On Lockdown’.

If you like this mod, check out my other mods!


Workshop ID: 3015577318
Mod ID: autohidehotbar

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.