Project Zomboid

Project Zomboid

[B42] Mod Manager
 This topic has been pinned, so it's probably important
Duncan E.  [developer] 7 hours ago
Documentation
Adding Images
modOptions:addImage("imagePath", fitToWidth or imageWidth)

Simply add an image:
modOptions:addImage("imagePath")

Fit to width:
modOptions:addImage("imagePath", true)

Set width:
modOptions:addImage("imagePath", 400)

Correct integration example:
require "ModManager/ModOptionsScreen" local briefingOptions = PZAPI.ModOptions:create("Briefing", "Briefing") if getActivatedMods():contains("\\ModManager") then briefingOptions:addImage("media/ui/ModManager/briefing_preview.png", true) end
Last edited by Duncan E.; 7 hours ago