Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Feb 16, 2024
1 parent cac492c commit 5ff8e40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ and only contains the latest changes.
Its purpose is to be shown in Olympus when updating.

#changelog#
∙ Added an option to use OpenGL when launching the game
∙ Added an option to auto-close Olympus after a one-click install
16 changes: 8 additions & 8 deletions src/scenes/installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ scene.timeDraw = 0
scene.progress = 0
scene.progressNext = 0
scene.progressDraw = 0
scene.autocloseDuration = 3
scene.autocloseDuration = 3


function scene.update(status, progress, shape, replace)
Expand Down Expand Up @@ -322,7 +322,7 @@ function scene.done(success, buttons, autoclose)
clip = false
}):with(uiu.fillWidth)

if not autoclose then
if not autoclose then
local listcount = #buttons
for i = 1, #buttons do
local btn = buttons[i]
Expand All @@ -340,20 +340,20 @@ function scene.done(success, buttons, autoclose)
else
-- place+start self destruct countdown
local countdown = uie.label(
string.format("Autoclosing in %d...", scene.autocloseDuration)
)
string.format("Autoclosing in %d...", scene.autocloseDuration)
)


countdown = countdown:with(uiu.fillWidth):with(uiu.at(0))
row:addChild(countdown)

threader.routine(
function()
local totalDuration = scene.autocloseDuration
for i = 1, totalDuration do
for i = 1, totalDuration do
threader.sleep(1)
countdown:setText(string.format("Autoclosing in %d...", totalDuration - i) )
end
end
love.event.quit()
end
)
Expand Down

0 comments on commit 5ff8e40

Please sign in to comment.