mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 04:24:54 +02:00
Internal change to entergame, fix image-offset-y mistake, change the way default font is set in skins.
This commit is contained in:
@@ -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])
|
||||
|
Reference in New Issue
Block a user