2011-03-17 01:47:30 -04:00
|
|
|
local Player = ...
|
|
|
|
|
assert(Player,"MachineRecord needs Player")
|
|
|
|
|
local stats = STATSMAN:GetCurStageStats():GetPlayerStageStats(Player);
|
|
|
|
|
local record = stats:GetMachineHighScoreIndex()
|
|
|
|
|
local hasMachineRecord = record ~= -1
|
|
|
|
|
|
|
|
|
|
return LoadFont("Common normal")..{
|
|
|
|
|
InitCommand=cmd(zoom,0.55;shadowlength,1;NoStroke;glowshift;effectcolor1,color("1,1,1,0");effectcolor2,color("1,1,1,0.25"));
|
2011-08-07 18:27:15 -05:00
|
|
|
BeginCommand=function(self)
|
2011-08-07 18:29:40 -05:00
|
|
|
self:visible(hasMachineRecord);
|
2011-08-07 18:27:15 -05:00
|
|
|
local text = string.format(THEME:GetString("ScreenEvaluation", "MachineRecord"), record+1)
|
|
|
|
|
self:settext(text);
|
|
|
|
|
end;
|
2010-08-07 21:52:39 -05:00
|
|
|
};
|