This commit is contained in:
Gvidas Juknevičius 2024-08-18 05:09:44 +03:00
parent ff50f35461
commit b3b0ab41b3
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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