mirror of
https://codeberg.org/1414codeforge/yui.git
synced 2024-12-12 11:26:03 +01:00
[ui] Invoke Timer:new() as a method (API update for gear.timer)
This commit is contained in:
parent
c52d9e1608
commit
1c713de4ff
2
ui.lua
2
ui.lua
@ -82,7 +82,7 @@ function Ui:new(args)
|
|||||||
self.x = self.x or 0
|
self.x = self.x or 0
|
||||||
self.y = self.y or 0
|
self.y = self.y or 0
|
||||||
self.pointerActive = true
|
self.pointerActive = true
|
||||||
self.timer = Timer.new()
|
self.timer = Timer:new()
|
||||||
|
|
||||||
local root = self[1]
|
local root = self[1]
|
||||||
if not isinstance(root, Widget) then
|
if not isinstance(root, Widget) then
|
||||||
|
Loading…
Reference in New Issue
Block a user