mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
new useful function, cycleEvent
This commit is contained in:
@@ -80,9 +80,6 @@ TopPanel
|
||||
margin-top: 8
|
||||
margin-right: 5
|
||||
@onSetup: |
|
||||
local updateFunc
|
||||
updateFunc = function()
|
||||
cycleEvent(function()
|
||||
rootWidget:recursiveGetChildById('frameCounter'):setText('FPS: ' .. g_app.getBackgroundPaneFps())
|
||||
scheduleEvent(updateFunc, 250)
|
||||
end
|
||||
addEvent(updateFunc)
|
||||
end, 250)
|
||||
|
Reference in New Issue
Block a user