Skip to content

Commit ae8e11f

Browse files
committed
Add info about online scores in the display
1 parent 0fe45c5 commit ae8e11f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Themes/Til Death/BGAnimations/superscoreboard.lua

+25
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,31 @@ local o =
246246
end
247247
end
248248
},
249+
LoadFont("Common normal") ..
250+
{
251+
-- informational text about online scores
252+
Name = "RequestStatus",
253+
InitCommand = function(self)
254+
if collapsed then
255+
self:xy(dwidth - 75, headeroff + 15):zoom(tzoom):halign(1)
256+
else
257+
self:xy(dwidth / 3, headeroff + 25):zoom(tzoom):halign(1)
258+
end
259+
end,
260+
UpdateCommand = function(self)
261+
local numberofscores = #scoretable
262+
local online = DLMAN:IsLoggedIn()
263+
if not online and #scoretable == 0 then
264+
self:settext("Login to view scores")
265+
else
266+
if #scoretable == 0 then
267+
self:settext("Retrieving scores...")
268+
else
269+
self:settext("")
270+
end
271+
end
272+
end
273+
},
249274
LoadFont("Common normal") ..
250275
{
251276
--current rate toggle

0 commit comments

Comments
 (0)