Skip to content

Commit

Permalink
add page number to profile and properly recolor nil entries
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jan 19, 2017
1 parent 502c56c commit f03dfe2
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ local function rankingLabel(i)
end
else
self:settext( ' - ' )
self:diffuse(getMainColor('positive'))
end
end
end,
Expand All @@ -93,6 +94,7 @@ local function rankingLabel(i)
end
else
self:settext( ' ' )
self:diffuse(getMainColor('positive'))
end
end,
UpdateRankingMessageCommand=cmd(queuecommand,"Set"),
Expand All @@ -110,6 +112,7 @@ local function rankingLabel(i)
end
else
self:settext( ' - ' )
self:diffuse(getMainColor('positive'))
end
end,
UpdateRankingMessageCommand=cmd(queuecommand,"Set"),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f03dfe2

Please sign in to comment.