Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Make L the W
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubg1 committed Jan 2, 2023
1 parent 6f39689 commit 5d438ab
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions ui/script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1019,25 +1019,18 @@ end



function c.levelComplete(f, params)
local record = params[1]
function c.levelComplete(f)
c.Button_Pause:buttonSetEnabled(false)
c.Banner_LevelComplete:show()
if not record then
if not f.levelGetNewRecord() then
c.Banner_LevelComplete_Record:hide()
end
end



function c.levelLost(f)
c.Button_Pause:buttonSetEnabled(false)
c.Banner_LevelLose:show()
c.Banner_LevelLose_Panel:scheduleFunction("hideEnd",
function()
f.levelRestart()
end
)
c.levelComplete(f)
end


Expand Down

0 comments on commit 5d438ab

Please sign in to comment.