mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 04:53:27 +02:00
Platform fixes and rework ping
This commit is contained in:
@@ -179,15 +179,9 @@ function setOption(key, value)
|
||||
if key == 'vsync' then
|
||||
g_window.setVerticalSync(value)
|
||||
elseif key == 'showFps' then
|
||||
addEvent(function()
|
||||
local frameCounter = rootWidget:recursiveGetChildById('frameCounter')
|
||||
if frameCounter then frameCounter:setVisible(value) end
|
||||
end)
|
||||
modules.client_topmenu.setFpsVisible(value)
|
||||
elseif key == 'showPing' then
|
||||
addEvent(function()
|
||||
local ping = rootWidget:recursiveGetChildById('pingLabel')
|
||||
if ping then ping:setVisible(value) end
|
||||
end)
|
||||
modules.client_topmenu.setPingVisible(value)
|
||||
elseif key == 'fullscreen' then
|
||||
g_window.setFullscreen(value)
|
||||
panel = graphicsPanel
|
||||
|
Reference in New Issue
Block a user