Jump to content

How do you make custom Icons?


PZ-NOOB

Recommended Posts

Item icon images should be 32x32 or YZx32 or 32xYZ in resolution (YZ can be anything else, it looks best if image has 32 in height or width) and a .png with transparent background.

The file itself needs to have Item_ prefix in the name ex. Item_Fruit.png and must be placed in the mod's media\textures folder.

If you're asking about how to actually draw one then I can't help much other than give you a tip to just take some default PZ icon and modify it to suit your liking with some photo editing tool, personally I use Photoshop for that. Pixel art is not my forte, I have a problem with portraying perspective right.

If you choose to modify a PZ sprite then PZ item icons are withing .pack files in Project Zomboid\media\texturepacks specifically UI.pack and UI2.pack to unpack them you'll need a tool like PZ Unpacker

Link to comment
Share on other sites

You mean icon like water bottles, pans or such?

 

First, you create the icon (32x32 or 64x64) and place it in <yourmod>/media/textures/Item_<yourshortcut>_<name>.png, for example:

media/textures/Item_BC_gatorleg.png

 

Then, in media/scripts/<mod>items.txt, you add it like this;

item GatorLeg {

  Type = Food,

  Displayname = Alligator leg,

  Icon = Item_BC_gatorleg.png

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...