High Scores tweak

(cherry picked from commit fa4e5efb5b0d8dcd73ed3e43d993d7e98b73e347)
This commit is contained in:
Jonathan Payne
2014-08-28 06:01:14 -05:00
committed by freem
parent 8f0e2246f9
commit c36068faf8
2 changed files with 17 additions and 15 deletions
@@ -73,22 +73,17 @@ Scores.SetCommand=function(self, params)
if CurrentItem then
local hsl = pProfile:GetHighScoreList(Current, CurrentItem);
local hs = hsl and hsl:GetHighScores();
--[[Warn( tostring(CurrentItem:GetStepsType()) .. ", " ..
tostring(CurrentItem:GetDifficulty()) .. ": " ..
tostring(hsl) .. ", " ..
tostring(#hs) );]]
local name = c[idx .. "Name"];
local score = c[idx .. "Score"];
local filled = c[idx .. "Filled"];
local empty = c[idx .. "Empty"];
--assert( c[sNameType], sNameType );
--assert( c[sScoreType], sScoreType );
name:visible( true );
score:visible( true );
filled:visible( true );
empty:visible( false );
if hs and #hs > 0 then
name:settext( hs[1]:GetName() );
score:settext( FormatPercentScore( hs[1]:GetPercentDP() ) );