Internal change to entergame, fix image-offset-y mistake, change the way default font is set in skins.

This commit is contained in:
Henrique Santiago
2012-08-05 18:43:45 -03:00
parent e78edad4c6
commit 0f980ec18b
4 changed files with 14 additions and 12 deletions

View File

@@ -117,13 +117,13 @@ function Skins.loadSkin(skin)
if skin.fonts then
for i=1,#skin.fonts do
g_fonts.importFont('skins/' .. lowerName .. '/fonts/' .. skin.fonts[i])
if i == 1 then
g_fonts.setDefaultFont(skin.fonts[i])
end
end
end
if skin.defaultFont then
g_fonts.setDefaultFont(skin.defaultFont)
end
if skin.styles then
for i=1,#skin.styles do
g_ui.importStyle('skins/' .. lowerName .. '/styles/' .. skin.styles[i])