Skip to content

Commit

Permalink
improve status updates for online leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 30, 2018
1 parent 570bcae commit 4dedc2e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Themes/Til Death/BGAnimations/superscoreboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,16 @@ local o =
self:settext("")
end
end
end,
CurrentSongChangedMessageCommand = function(self)
local online = DLMAN:IsLoggedIn()
if not GAMESTATE:GetCurrentSong() then
self:settext("")
elseif not online and #scoretable == 0 then
self:settext("Login to view scores")
else
self:settext("Retrieving scores...")
end
end
},
LoadFont("Common normal") ..
Expand Down Expand Up @@ -325,6 +335,9 @@ local function makeScoreDisplay(i)
self:visible(false)
end
end,
CurrentSongChangedMessageCommand = function(self)
self:visible(false)
end,
UpdateCommand = function(self)
hs = scoretable[(i + ind)]
if hs and i <= numscores then
Expand Down

0 comments on commit 4dedc2e

Please sign in to comment.