tibia-client/modules/client_styles/styles.lua

30 lines
693 B
Lua
Raw Normal View History

function init()
2013-01-28 02:23:53 +01:00
local files
files = g_resources.listDirectoryFiles('/styles')
for _,file in pairs(files) do
if g_resources.isFileType(file, 'otui') then
g_ui.importStyle('/styles/' .. file)
end
end
2013-01-28 02:23:53 +01:00
files = g_resources.listDirectoryFiles('/fonts')
for _,file in pairs(files) do
if g_resources.isFileType(file, 'otfont') then
g_fonts.importFont('/fonts/' .. file)
end
end
2013-01-28 02:23:53 +01:00
files = g_resources.listDirectoryFiles('/particles')
for _,file in pairs(files) do
if g_resources.isFileType(file, 'otps')then
g_particles.importParticle('/particles/' .. file)
end
end
2013-01-25 14:17:51 +01:00
g_mouse.loadCursors('/cursors/cursors')
end
function terminate()
end