Skip to content

Commit

Permalink
slightly modernize screenprofilesave lua
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Apr 23, 2022
1 parent f199881 commit d2af341
Showing 1 changed file with 15 additions and 28 deletions.
43 changes: 15 additions & 28 deletions Themes/_fallback/BGAnimations/ScreenProfileSave overlay.lua
Original file line number Diff line number Diff line change
@@ -1,33 +1,20 @@
local x =
Def.ActorFrame {
-- this used to be responsible for showing "Saving Profiles" after Evaluation, but we moved saving to before Evaluation
-- now it is responsible for clearing the chart leaderboard cache
return Def.ActorFrame {
Def.Quad {
InitCommand = function(self)
self:Center():zoomto(SCREEN_WIDTH, 80):diffuse(color("0,0,0,0.5"))
end
end,
},
LoadFont("Common Normal") ..
{
Text = ScreenString("Saving Profiles"),
InitCommand = function(self)
self:Center():diffuse(color("1,1,1,1")):shadowlength(1)
end,
OffCommand = function(self)
self:linear(0.15):diffusealpha(0)
end
}
}

x[#x + 1] =
Def.Actor {
BeginCommand = function(self)
if SCREENMAN:GetTopScreen():HaveProfileToSave() then
self:sleep(1)
end
self:queuecommand("Load")
end,
LoadCommand = function()
SCREENMAN:GetTopScreen():Continue()
end
}

return x
BeginCommand = function(self)
if SCREENMAN:GetTopScreen():HaveProfileToSave() then
self:sleep(1)
end
self:queuecommand("Load")
end,
LoadCommand = function()
SCREENMAN:GetTopScreen():Continue()
end,
},
}

0 comments on commit d2af341

Please sign in to comment.