Eval fixup
This commit is contained in:
@@ -41,12 +41,17 @@ end
|
|||||||
|
|
||||||
if ShowStandardDecoration("ItsARecord") then
|
if ShowStandardDecoration("ItsARecord") then
|
||||||
for pn in ivalues(PlayerNumber) do
|
for pn in ivalues(PlayerNumber) do
|
||||||
|
-- only check if player exists, don't draw for both if one doesn't exist -aj
|
||||||
|
if GAMESTATE:IsSideJoined(pn) then
|
||||||
local t2 = Def.ActorFrame {
|
local t2 = Def.ActorFrame {
|
||||||
BeginCommand=function(self)
|
BeginCommand=function(self)
|
||||||
local pss = SCREENMAN:GetTopScreen():GetStageStats():GetPlayerStageStats(pn);
|
local pss = SCREENMAN:GetTopScreen():GetStageStats():GetPlayerStageStats(pn);
|
||||||
local index = pss:GetMachineHighScoreIndex();
|
local index = pss:GetMachineHighScoreIndex();
|
||||||
local hsl = PROFILEMAN:GetMachineProfile():GetHighScoreList(pSong,pSteps):
|
local hsl = PROFILEMAN:GetMachineProfile():GetHighScoreList(pSong,pSteps);
|
||||||
hsl:GetHighScores()[1]:GetName GetScore GetPercentDP
|
|
||||||
|
local hsName = hsl:GetHighScores()[1]:GetName();
|
||||||
|
local hsPerc = hsl:GetHighScores()[1]:GetPercentDP();
|
||||||
|
--hsl:GetHighScores()[1]:GetName GetScore GetPercentDP
|
||||||
if index == 0 then
|
if index == 0 then
|
||||||
self:GetChild("Record"):visible( true );
|
self:GetChild("Record"):visible( true );
|
||||||
self:GetChild("NoRecord"):visible( false );
|
self:GetChild("NoRecord"):visible( false );
|
||||||
@@ -54,7 +59,7 @@ if ShowStandardDecoration("ItsARecord") then
|
|||||||
self:GetChild("Record"):visible( false );
|
self:GetChild("Record"):visible( false );
|
||||||
self:GetChild("NoRecord"):visible( true );
|
self:GetChild("NoRecord"):visible( true );
|
||||||
if hsl then
|
if hsl then
|
||||||
self:GetChild("NoRecord"):settext("WWWW:\n82.34%");
|
self:GetChild("NoRecord"):settext(hsName..":\n"..hsPerc);
|
||||||
else
|
else
|
||||||
self:GetChild("NoRecord"):settext("");
|
self:GetChild("NoRecord"):settext("");
|
||||||
end
|
end
|
||||||
@@ -70,6 +75,7 @@ if ShowStandardDecoration("ItsARecord") then
|
|||||||
t[#t+1] = StandardDecorationFromTable( "ItsARecord" .. ToEnumShortString(pn), t2 );
|
t[#t+1] = StandardDecorationFromTable( "ItsARecord" .. ToEnumShortString(pn), t2 );
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if ShowStandardDecoration("TimingDifficulty") then
|
if ShowStandardDecoration("TimingDifficulty") then
|
||||||
t[#t+1] = StandardDecorationFromFile( "TimingDifficultyFrame", "TimingDifficultyFrame" );
|
t[#t+1] = StandardDecorationFromFile( "TimingDifficultyFrame", "TimingDifficultyFrame" );
|
||||||
|
|||||||
Reference in New Issue
Block a user