DONE! All lua is future-proofed.
This commit is contained in:
@@ -12,23 +12,22 @@ local grades = {
|
||||
Grade_None = 8;
|
||||
};
|
||||
|
||||
--[[ local t = LoadActor( "grades" ) .. {
|
||||
InitCommand=cmd(pause);
|
||||
SetGradeCommand=function(self, params)
|
||||
local state = grades[params.Grade] or grades.Grade_None;
|
||||
state = state*2;
|
||||
|
||||
if params.PlayerNumber == PLAYER_2 then
|
||||
state = state+1;
|
||||
end
|
||||
|
||||
self:setstate(state);
|
||||
end;
|
||||
}; --]]
|
||||
local t = LoadFont("Common Normal") .. {
|
||||
InitCommand=cmd(zoom,0.75;shadowlength,1;strokecolor,Color("Black"));
|
||||
ShowCommand=cmd(stoptweening;bounceend,0.15;zoomy,0.75);
|
||||
HideCommand=cmd(stoptweening;bouncebegin,0.15;zoomy,0);
|
||||
InitCommand=function(self)
|
||||
self:zoom(0.75);
|
||||
self:shadowlength(1);
|
||||
self:strokecolor(Color("Black"));
|
||||
end;
|
||||
ShowCommand=function(self)
|
||||
self:stoptweening();
|
||||
self:bounceend(0.15);
|
||||
self:zoomy(0.75);
|
||||
end;
|
||||
HideCommand=function(self)
|
||||
self:stoptweening();
|
||||
self:bouncebegin(0.15);
|
||||
self:zoomy(0);
|
||||
end;
|
||||
SetGradeCommand=function(self,params)
|
||||
local pnPlayer = params.PlayerNumber;
|
||||
local sGrade = params.Grade or 'Grade_None';
|
||||
@@ -38,12 +37,6 @@ local t = LoadFont("Common Normal") .. {
|
||||
self:diffuse(PlayerColor(pnPlayer));
|
||||
self:diffusetopedge(BoostColor(PlayerColor(pnPlayer),1.5));
|
||||
self:strokecolor(BoostColor(PlayerColor(pnPlayer),0.25));
|
||||
|
||||
--[[ if sGrade == "Grade_NoTier" then
|
||||
self:playcommand("Hide");
|
||||
else
|
||||
self:playcommand("Show");
|
||||
end; --]]
|
||||
end;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user