mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Fix skin and locale at first run, adding new locale to combobox, exit function double call, enable sound option
This commit is contained in:
@@ -30,3 +30,7 @@ Panel
|
||||
OptionCheckBox
|
||||
id: showPrivateMessagesOnScreen
|
||||
!text: tr('Show private messages on screen')
|
||||
|
||||
OptionCheckBox
|
||||
id: enableMusic
|
||||
!text: tr('Enable music')
|
||||
|
@@ -13,7 +13,8 @@ local options = { vsync = false,
|
||||
showTimestampsInConsole = true,
|
||||
showLevelsInConsole = true,
|
||||
showPrivateMessagesInConsole = false,
|
||||
showPrivateMessagesOnScreen = true }
|
||||
showPrivateMessagesOnScreen = true,
|
||||
enableMusic = true }
|
||||
local generalPanel
|
||||
local graphicsPanel
|
||||
|
||||
@@ -124,6 +125,10 @@ function Options.setOption(key, value)
|
||||
addEvent(function()
|
||||
g_window.setFullscreen(value)
|
||||
end)
|
||||
elseif key == 'enableMusic' then
|
||||
addEvent(function()
|
||||
g_sounds.enableMusic(value)
|
||||
end)
|
||||
end
|
||||
Settings.set(key, value)
|
||||
options[key] = value
|
||||
@@ -132,4 +137,3 @@ end
|
||||
function Options.getOption(key)
|
||||
return options[key]
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user