Project Zomboid

Project Zomboid

   
Award
Favorite
Favorited
Unfavorite
11 Comments
UnCheat  [author] 30 Dec, 2024 @ 1:12pm 
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  [author] 30 Dec, 2024 @ 10:50am 
Cool thx! I'll check it tomorrow
Tchernobill 30 Dec, 2024 @ 10:48am 
ok, done.
Background color must be deactivated with Neon Moodle Levels
UnCheat  [author] 30 Dec, 2024 @ 9:26am 
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 30 Dec, 2024 @ 9:23am 
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  [author] 30 Dec, 2024 @ 9:12am 
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  [author] 30 Dec, 2024 @ 9:09am 
-- 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  [author] 30 Dec, 2024 @ 9:08am 
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 30 Dec, 2024 @ 8:54am 
do not rush that, I'm currently changing background color management.
UnCheat  [author] 30 Dec, 2024 @ 8:47am 
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