Skip to content

Commit

Permalink
use the scorestodisplay var to determine the scores to display
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jan 15, 2017
1 parent 5a1ca79 commit 9bf7ee8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ local function rankingLabel(i)
InitCommand=cmd(xy,frameX+rankingX,frameY+rankingY+110-(11-i)*10;halign,0;zoom,0.25;diffuse,getMainColor('positive');maxwidth,160),
SetCommand=function(self)
if update and rankingSkillset > 0 then
ths = profile:GetTopSSRHighScore(i+(20*(rankingPage-1)), rankingSkillset)
ths = profile:GetTopSSRHighScore(i+(scorestodisplay*(rankingPage-1)), rankingSkillset)
if ths then
local a=profile:GetTopSSRValue(i+(20*(rankingPage-1)), rankingSkillset)
local a=profile:GetTopSSRValue(i+(scorestodisplay*(rankingPage-1)), rankingSkillset)
self:settextf("%5.2f", a)
if not ths:GetEtternaValid() then
self:diffuse(byJudgment("TapNoteScore_Miss"))
Expand All @@ -84,8 +84,8 @@ local function rankingLabel(i)
InitCommand=cmd(xy,frameX+rankingX+40,frameY+rankingY+110-(11-i)*10;halign,0;zoom,0.25;diffuse,getMainColor('positive');maxwidth,rankingWidth*2.5-160),
SetCommand=function(self)
if ths then
local a=profile:GetTopSSRValue(i+(20*(rankingPage-1)), rankingSkillset)
self:settext(profile:GetTopSSRSongName(i+(20*(rankingPage-1)), rankingSkillset) )
local a=profile:GetTopSSRValue(i+(scorestodisplay*(rankingPage-1)), rankingSkillset)
self:settext(profile:GetTopSSRSongName(i+(scorestodisplay*(rankingPage-1)), rankingSkillset) )
if not ths:GetEtternaValid() then
self:diffuse(byJudgment("TapNoteScore_Miss"))
else
Expand Down Expand Up @@ -149,7 +149,7 @@ local function rankingLabel(i)
if ths then
if isOver(self) then
local whee = SCREENMAN:GetTopScreen():GetMusicWheel()
local ssrsong = profile:GetSongFromSSR(i+(20*(rankingPage-1)), rankingSkillset)
local ssrsong = profile:GetSongFromSSR(i+(scorestodisplay*(rankingPage-1)), rankingSkillset)
whee:SelectSong(ssrsong)
end
end
Expand Down

0 comments on commit 9bf7ee8

Please sign in to comment.