From f03dfe26425f06c99c05667b97470a4dbed5a191 Mon Sep 17 00:00:00 2001 From: MinaciousGrace Date: Thu, 19 Jan 2017 08:36:40 -0500 Subject: [PATCH] add page number to profile and properly recolor nil entries --- .../ScreenSelectMusic decorations/profile.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/profile.lua b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/profile.lua index 60da38be54..0fa645901a 100644 --- a/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/profile.lua +++ b/Themes/Til Death/BGAnimations/ScreenSelectMusic decorations/profile.lua @@ -75,6 +75,7 @@ local function rankingLabel(i) end else self:settext( ' - ' ) + self:diffuse(getMainColor('positive')) end end end, @@ -93,6 +94,7 @@ local function rankingLabel(i) end else self:settext( ' ' ) + self:diffuse(getMainColor('positive')) end end, UpdateRankingMessageCommand=cmd(queuecommand,"Set"), @@ -110,6 +112,7 @@ local function rankingLabel(i) end else self:settext( ' - ' ) + self:diffuse(getMainColor('positive')) end end, UpdateRankingMessageCommand=cmd(queuecommand,"Set"), @@ -261,6 +264,15 @@ r[#r+1] = LoadFont("Common Large") .. { self:settext( 'Previous' ) end, } + +r[#r+1] = LoadFont("Common Large") .. { + InitCommand=cmd(xy,frameX+frameWidth/2,frameY+rankingY+275;halign,0.5;zoom,0.3;diffuse,getMainColor('positive')), + SetCommand=function(self) + self:settext( rankingPage ) + end, + UpdateRankingMessageCommand=cmd(queuecommand,"Set") +} + for i=1,scorestodisplay do r[#r+1] = rankingLabel(i) end