mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +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])
|
||||
|
@@ -8,6 +8,7 @@ local skin = {
|
||||
'verdana-11px-rounded',
|
||||
'terminus-14px-bold'
|
||||
},
|
||||
defaultFont = 'verdana-11px-antialised',
|
||||
|
||||
styles = {
|
||||
'buttons.otui',
|
||||
|
Reference in New Issue
Block a user