Project Zomboid

Project Zomboid

[B42] Mod Manager
 此主题已被置顶,因此可能具有重要性
Duncan E.  [开发者] 10 月 2 日 下午 8:35
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
最后由 Duncan E. 编辑于; 10 月 2 日 下午 9:00