[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