Project Zomboid

Project Zomboid

497 ratings
AutoHide Hotbar
4
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.190 MB
Aug 5, 2023 @ 3:42pm
Aug 8, 2023 @ 9:48am
2 Change Notes ( view )

Subscribe to download
AutoHide Hotbar

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
Popular Discussions View All (1)
0
Aug 5, 2023 @ 3:53pm
PINNED: Bug Reports
peteR 75hz
24 Comments
DatBoi302 Sep 6 @ 5:50pm 
If binding a disappearing hotbar to the right mouse button proves impossible, a possible solution would be to bind the hotbar to a separate UI toggle key, that way you can toggle the hotbar on and off when needed (for shooting)l but I don't make mods so what do I know lol.
DatBoi302 Sep 6 @ 5:47pm 
@peteR 75hz , Awesome thanks, keep me posted.
I did some digging the last few days and could not find a mod that has done this, but I also did not see anything saying it 'wasn't' possible. I guess we'll see.
peteR 75hz  [author] Sep 6 @ 5:44pm 
@DatBoi302
That's a good idea. I don't know how viable it is, but maybe I can do something!
DatBoi302 Sep 6 @ 3:09pm 
This is a great idea and mod!
It be really awesome if you could make a version of this mod that hides the hotbar when aiming a firearm. Noirs attachments and other mods give you so many hotbar-slots that it almost becomes impossible to aim your weapon towards the bottom of your screen.
peteR 75hz  [author] Nov 28, 2023 @ 7:39am 
@747074170
Well, that a whole other level, and not the real objective of this mod. If you want, I use the Reorder the Hotbar mod, with it you can sort the weapons yourself.
747074170 Nov 28, 2023 @ 4:32am 
How about auto sort weapon too?
Coven of Owls Nov 27, 2023 @ 1:55pm 
@Bit.Byte pretty sure that is caused by a theme mod
peteR 75hz  [author] Nov 14, 2023 @ 6:04am 
@CaptainSzasz
It does not.
It just renders the dashboard above the hotbar, and because in vanilla your hotbar will never get bigger than the dashboard, they don't need to hide it.
CaptainSzasz Nov 11, 2023 @ 4:47pm 
I could've swore the game already did this.
Nox Nov 8, 2023 @ 7:48pm 
Nice mod thank u!