mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
cache rendering of UILabel
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Client = {}
|
||||
|
||||
local function setupWindow()
|
||||
function Client.init()
|
||||
g_window.show()
|
||||
g_window.setMinimumSize({ width = 600, height = 480 })
|
||||
|
||||
@@ -29,11 +29,8 @@ local function setupWindow()
|
||||
g_window.setIcon(resolvepath('clienticon.png'))
|
||||
end
|
||||
|
||||
function Client.init()
|
||||
setupWindow()
|
||||
end
|
||||
|
||||
function Client.terminate()
|
||||
-- save window configs
|
||||
Settings.set('window-size', g_window.getUnmaximizedSize())
|
||||
Settings.set('window-pos', g_window.getUnmaximizedPos())
|
||||
Settings.set('window-maximized', g_window.isMaximized())
|
||||
|
@@ -8,5 +8,5 @@ Module
|
||||
require 'options'
|
||||
Options.init()
|
||||
|
||||
onUnload:
|
||||
onUnload: |
|
||||
Options.terminate()
|
@@ -55,8 +55,8 @@ local function onWidgetStyleApply(widget, styleName, styleNode)
|
||||
end
|
||||
end
|
||||
|
||||
--connect(UIWidget, { onStyleApply = onWidgetStyleApply,
|
||||
-- onHoverChange = onWidgetHoverChange})
|
||||
connect(UIWidget, { onStyleApply = onWidgetStyleApply,
|
||||
onHoverChange = onWidgetHoverChange})
|
||||
|
||||
-- UIWidget extensions
|
||||
function UIWidget:setTooltip(text)
|
||||
|
Reference in New Issue
Block a user