Project Zomboid

Project Zomboid

100 ratings
BzoukPzHotBarNew
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
881.717 KB
6 Jan @ 10:31am
3 Jul @ 6:33am
6 Change Notes ( view )

Subscribe to download
BzoukPzHotBarNew

Description
Hot bar mod v2
Hi everybody,

This is new version of my old mod The functionality is essentially the same.
Do not use the old and new mod at the same time. !!!

New stuff:
- Code is in Typescript and then it's transcribed into Lua. Thank to PipeWrench[github.com]
- Same info panel about the item as in the inventory when hover over slot.
- Hide delete button option
- The mod imports settings from the old mod. (Old file name:bzhotbar.ini, new file name: pzhotbar.ini)
- no HYPHEN in mod ID

Same old description

This mod adds quick access bar for items from player inventory. The main reason I made this mod is because I'm lazy to go through the inventory and look for one item that I just need. Mod idea is based another mod Hotbar for 5-20 often-used and also other games (Wow EFT etc.). Mod is also using library "Blindcoders Modding Utility".

PZ: build 41 - singleplayer

The basic version of mod have one bar with 1 row and 8 columns. You can drag bar around. Bar is using same windows like inventory page (X for hide and pin for collapsable window).
Also you can use Mod Options to add more quick access bars. With modoptions mod you can set number of bars from 1 to 5. How many rows and columns for each bar will have. Also default key for toggle bars can be changed with modoptions ( default: tab )


Usage
Pres "tab" for show/hide bars. Drag and drop item into slot. You dont need to have item in inventory to add it to slot. Slot counts non broken items in inventory ( number in slot example: (24) items in inventory and in all containers that you have on you ( even in containers in containers like bandage in medkit in backpack))

Broken items are iqnored, you have to go into inventory to work with them.

Right click: Same like in inventory window.

Left click have smart functions based on item in slot. Functions are using code already in project zomboid. Many function return used item into original container.


Example:
1) Click slot with Disinfectant ( item is inside medkit in backpack) 2) Disinfectant is moved to main inventory if needed 3) Disinfectant is used on damaged parts 4) Disinfectant is moved inside medkit in backpack if still exist.
Note: If you cancel action, item will remain in main invetory (start running etc.).

- Food
This works like double click in inventory (Cola, Chips, Cigarettes)
If food is non posion eat half or use whole if cigarettes ( need lighter :-) ) etc.
After use item returns to original container.

- Water
If item contain water, player is thirsty and water is not tainted then drink.
After use item returns to original container.

- Pills (BetaBlock, AntiDeb, SleepingTablets and Vitamins)
Take pill. Same like right click but item is put in original container after use.

- Disinfectant and AlcoholWipes
Apply alcohol on every damaged body part without alcohol.
After use item returns to original container.

- DishCloth BathTowel
Like right click option - dry yourself with a towel

- Thread
If you have needle in inventory it will stitch all deep wounded body parts.
After use item returns to original container. (needle and thread)

- Hand weapon
If two handed then equip two handed else one hand. New feature: swap weapon and item in hand to weapon container
Idea: spear -> broke -> click on slot with spears -> re equip new -> broke -> click on slot with spears -> re equip new

- Bandage (should work on any item that can bandage)
Clean burns if bandage is strong or apply bandage on damaged part

- Clothing
Equip right click - change to right etc.).

- Literature
Start reading.

- Suture Needle Holder or Tweezers
Remove all glass and bullets from damaged parts.
After use item returns to original container.

- Suture needle
Stitch one deep wounded body part.
After use item returns to original container.

- Comfrey Cataplasm
Apply to fractured body part without any comfrey.

- Wild Garlic Cataplasm
Apply to one infected wound without any comfrey.

- Plantain Cataplasm
Apply to one scratched, deep wounded or cut body part without any comfrey.

- Splint
Apply to fractured body part without any splint.

- Other items
Do nothing -> use right click

- Radio
Equip/unequip radio

Tips and ideas for items :
- ammo -> counter how many bullets|shells
- ammo box - right click -> open box
- watches - Equip -> add to slot -> right click to set alarm etc.
- items for quick crafting
- do not forget items
- spears -> broke -> left click -> re equip -> broke -> left click -> re equip (need to throw away broken ones)
- any item with info after right click (compass, radios gps...)
...


Summary

PZ: build 41 beta only
Required mods:
blindcoders Modding Utility (saving data to ini)

Optional mods:
Mod Options

Tab key for show/hide bar

Languages
- english
- czech
- french - @Bobitec + google
- spanish - @WhiteLotus + google
- chinese
- russian

Known issues - game features
- some items in inventory have same name (group under same name), but they are different items
- right click crafting need items to be in main inventory or backpack (game mechanic)

Tags:B41,Interface

Workshop ID: 3133189049
Mod ID: pzhotbar
36 Comments
Fem_Bane 5 hours ago 
Adding inventory tetris support for containers, ie. being able to click them/double-click to open the independant container window, would make this perfect imo.
An amazing mod tho, always use it :3
bzoukLop  [author] 11 hours ago 
Added Clothing item unequip if is equipped
bzoukLop  [author] 12 hours ago 
@Anach I created new version with check for out of bound windows. It should workd now, with resolution changes or if you pres TAB.
Anach 27 Jun @ 6:19am 
I've lost mine off-screen, not from resolution change, but due to minimising the hot-bar too close to the edge. Maybe an option could be added to bring them back to the centre if off-screen.
112 23 Apr @ 7:06am 
왜 안되는겨
bzoukLop  [author] 19 Apr @ 6:41am 
Hi everybody, sooryfor not responding. I am busy with life right now, I will try to find time to look into some problems with mod. I hope i wil have time aroud start of may.

@boxchat I will look into in
@Reifel thx i will fix it.
@Tim I think that is a problem with updating items. I do now know better way, how to update items just when needed...
@KOI21 i think it is a same problem like Reifel is having ( will fix fit)
@老约翰 Only this one item?
老约翰 15 Apr @ 5:40am 
In MP, place, item "base.BeerCan". The game crashes after consuming canned beer
KOI21 30 Mar @ 11:53pm 
Loved this Mod and used to work perfectly fine, but somehow I cannot get the hotbar UI to open at all this time. I tried to change the keybinding and disable all other Mods except this one and the required Mods (namely blindcoders Modding Utility and
Mod Options). Same with the old version of the hotbar Mod.

Edit: Okay I found the reason, I used to have higher resolution when playing the game, and the hotbar UI was been placed at a location outside my current screen. Changing back to 4K resolution then I can see it sit right at the lower right corner.
Tim 30 Mar @ 4:20pm 
Makes the game Lag allot, soon as you close it game goes back to smooth operation. fps drops from 60 to like 5-6. When you open the hot bar fps drops, I dindt realize it was the hotbar cause I was using it extensively but I figured it out by chance one day. It gets progressively worse the more Items you have.
Is there a way to fix the crazy lag?
Reifel 30 Mar @ 8:15am 
my ui stuck in top of screen, cropped, i cant move it, i suggest use this function, at first run or resolution change

local middle_x = (getCore():getScreenWidth() - ISBzHotBar.windows[windowNum].x) / 2
local middle_y = (getCore():getScreenHeight() - ISBzHotBar.windows[windowNum].y ) / 2
ISBzHotBar.windows[windowNum].x = middle_x
ISBzHotBar.windows[windowNum].y = middle_y