mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
many modules fixes
This commit is contained in:
@@ -70,6 +70,7 @@ TopPanel
|
||||
anchors.right: parent.right
|
||||
|
||||
UILabel
|
||||
id: frameCounter
|
||||
text-align: right
|
||||
text-auto-resize: true
|
||||
color: white
|
||||
@@ -81,7 +82,7 @@ TopPanel
|
||||
@onSetup: |
|
||||
local updateFunc
|
||||
updateFunc = function()
|
||||
self:setText('FPS: ' .. g_app.getBackgroundPaneFps())
|
||||
rootWidget:recursiveGetChildById('frameCounter'):setText('FPS: ' .. g_app.getBackgroundPaneFps())
|
||||
scheduleEvent(updateFunc, 250)
|
||||
end
|
||||
updateFunc()
|
||||
|
Reference in New Issue
Block a user