I have a question for you. Is it worth when all textures and fonts are in one resource and in that resource are 2 export functions? e.g. i did something like this:
local TXT = {}
function txt(script, txt)
if TXT[script] and TXT[script][txt] then
return TXT[script][txt].el
else
TXT[script] = {[txt] = {el = dxCreateTexture('txt/'..script..'/'..txt..'.png', 'argb', true, 'clamp')}}
return TXT[script][txt].el
end
end
For fonts is similiar function and question is, is it worth? Better would be when i create textures in resource where is render? Maybe you have other ideas
Thank you in advance