Project Zomboid

Project Zomboid

   
奖励
收藏
已收藏
取消收藏
11 条留言
UnCheat  [作者] 2024 年 12 月 30 日 下午 1:12 
It works as expected thank you!
If you like to add smooth movement to mimic vanilla b42 moodles appear you can dig it from
ProjectZomboid\zombie\ui\MoodlesUI.class
or already adapted to lua from my Neon Moodle Levels most part is in neonMoodleLevels.lua below #215
UnCheat  [作者] 2024 年 12 月 30 日 上午 10:50 
Cool thx! I'll check it tomorrow
Tchernobill 2024 年 12 月 30 日 上午 10:48 
ok, done.
Background color must be deactivated with Neon Moodle Levels
UnCheat  [作者] 2024 年 12 月 30 日 上午 9:26 
If you'll do scalling please do it for borders as well
Also I hope we could remove those on the fly (not only add)
Tchernobill 2024 年 12 月 30 日 上午 9:23 
Ok, I was not setting background color in pending official version.
But that will change to match vanilla.
I'll add a way to disable color as well as border and background.
UnCheat  [作者] 2024 年 12 月 30 日 上午 9:12 
Or you mean your background?

require "MF_ISMoodle"

if MF ~=nil then
local oldNew = MF.ISMoodle.new
function MF.ISMoodle.new(self,moodleName,character)
local o = oldNew(self,moodleName,character)
for g = 1, 2 do
for l = 1, 4 do
o:setBackground(g,l,getTexture(string.format("media/ui/neonMoodleIndicator_%d_%d.png",g,l)))
end
end
return o
end
end
UnCheat  [作者] 2024 年 12 月 30 日 上午 9:09 
-- it's an aspect ratio scaling basically
if object.realWidth == moodleSize then
object.width = moodleSize
else
object.width = round(object.realWidth * moodleSize / object.realHeight, 0)
end
UnCheat  [作者] 2024 年 12 月 30 日 上午 9:08 
Oh! You're the author of MoodleFramework !
Thanks you're working on it!

"remove the background color" ? Transparent textures

Also you can check
My ISNeonMoodleLevels:cacheSizes(object, moodleSize) to get an idea how I handle wide textures
Tchernobill 2024 年 12 月 30 日 上午 8:54 
do not rush that, I'm currently changing background color management.
UnCheat  [作者] 2024 年 12 月 30 日 上午 8:47 
You can turn off vanilla moddles background and force indicators allways render via options->mods
But currently moodle framework does not react on changes or even shrinks wide textures . I might patch it as submod or separate mod