:3
This commit is contained in:
parent
ff50f35461
commit
b3b0ab41b3
|
@ -117,8 +117,9 @@ rawset(__BUNDLER_FILES, "ui.lua", function ()
|
||||||
ui.pinLabel:setText("Wrong")
|
ui.pinLabel:setText("Wrong")
|
||||||
ui.enterButton:setBackground(colors.red)
|
ui.enterButton:setBackground(colors.red)
|
||||||
end
|
end
|
||||||
ui.main:addThread()
|
ui.main:addThread():start(function()
|
||||||
:start(ui.resetEverything)
|
ui.resetEverything(ui)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
--- @param ui Ui
|
--- @param ui Ui
|
||||||
local function resetEverything(ui)
|
local function resetEverything(ui)
|
||||||
|
|
|
@ -44,8 +44,9 @@ local function unlockDoor(ui)
|
||||||
ui.pinLabel:setText("Wrong")
|
ui.pinLabel:setText("Wrong")
|
||||||
ui.enterButton:setBackground(colors.red)
|
ui.enterButton:setBackground(colors.red)
|
||||||
end
|
end
|
||||||
ui.main:addThread()
|
ui.main:addThread():start(function()
|
||||||
:start(ui.resetEverything)
|
ui.resetEverything(ui)
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- @param ui Ui
|
--- @param ui Ui
|
||||||
|
|
Loading…
Reference in New Issue
Block a user