Project Zomboid

Project Zomboid

Spray Paint
Moving the Spray Paint Icon
I figured out how to move the spray paint icon for build 33.

In this folder,
\steamapps\workshop\content\108600\499153179\mods\SprayPaint\media\lua\client\UI
open the spraypaintMenu.lua file in Notepad.

Locate this line:
spraypaintMenu.toolbarButton = ISButton:new(0, craftBtn:getY() + craftBtn:getHeight() + 5, 64, 64, "", nil, spraypaintMenu.showWindowToolbar);

Replace it with this line:
spraypaintMenu.toolbarButton = ISButton:new(0, craftBtn:getY() + craftBtn:getHeight() + 45, 64, 64, "", nil, spraypaintMenu.showWindowToolbar);

Save the file and run PZ.

Additional info:

If you'd like to more precisely line up the icon, change spraypaintMenu.toolbarButton:setDisplayBackground(false);
to
spraypaintMenu.toolbarButton:setDisplayBackground(true);
to see the icon's background. Then, you can play around with a different number besides 45.

Note that I've only figured out how to move the icon. I haven't tested whether the mod still works other than getting the menu to open and close.
< >
Showing 1-2 of 2 comments
Ryusho Yosei 6 Sep, 2016 @ 7:38pm 
I can't find this line anywhere in the lua for the menu.
DeadlyAccurate 6 Sep, 2016 @ 9:24pm 
It's possible the mod has been changed since I posted this fix.
< >
Showing 1-2 of 2 comments
Per page: 1530 50