gui/GuiManager/Misc/preloadImages.int
Ryan Ward 277cd5c553 I finally updated this thing
I need to keep a consistant record. I have small updates that exist everywhere sigh.
2019-02-10 10:09:01 -05:00

15 lines
292 B
Plaintext

_GuiPro.jobqueue.OnJobCompleted(function(JOBID,n,i,t)
if t~="PRE" then return end
_GuiPro.imagecache[i]=n
end)
function gui:preloadImages(tab)
local t
if type(tab)=="string" then
t = {tab}
else
t = tab
end
for i = 1,#t do
_GuiPro.jobqueue:pushJob("LoadImage",t[i],"PRE")
end
end