2013-01-18 23:39:11 +01:00
|
|
|
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)
|
2013-01-18 23:39:11 +01:00
|
|
|
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)
|
2013-01-18 23:39:11 +01:00
|
|
|
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)
|
2013-01-19 21:24:42 +01:00
|
|
|
end
|
|
|
|
end
|
2013-01-25 14:17:51 +01:00
|
|
|
|
|
|
|
g_mouse.loadCursors('/cursors/cursors')
|
2013-01-18 23:39:11 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
function terminate()
|
|
|
|
end
|
|
|
|
|