remove difficulty icons - use DifficultyList to do this

This commit is contained in:
Chris Danford
2008-03-31 15:39:24 +00:00
parent 0a27aad739
commit cfaad80e2b
2 changed files with 0 additions and 27 deletions
@@ -379,11 +379,6 @@ t[#t+1] = LoadFont("_numbers2") .. {
CurrentCourseChangedMessageCommand=cmd(playcommand,"Set");
};
--t[#t+1] = LoadActor( "difficulties" ) .. {
-- InitCommand=cmd(x,SCREEN_CENTER_X-35;y,SCREEN_CENTER_Y-134);
-- OnCommand=cmd(finishtweening;addx,-SCREEN_WIDTH*0.6;bounceend,0.5;addx,SCREEN_WIDTH*0.6);
-- OffCommand=cmd(finishtweening;bouncebegin,0.5;addx,-SCREEN_WIDTH*0.6);
--};
if not GAMESTATE:IsCourseMode() then
@@ -1,22 +0,0 @@
local t = Def.ActorFrame {
};
for idx, diff in pairs(Difficulty) do -- 0, Difficulty_Beginner
t[#t+1] = LoadActor( "_Difficulty icons 6x1" ) .. {
InitCommand=cmd(pause;setstate,Difficulty:Reverse()[diff]);
ShowCommand=cmd(stoptweening;linear,0.1;diffusealpha,1);
HideCommand=cmd(stoptweening;linear,0.1;diffusealpha,0);
BeginCommand=cmd(y,16*idx);
SetCommand=function(self)
local song = GAMESTATE:GetCurrentSong()
local st = GAMESTATE:GetCurrentStyle():GetStepsType()
local bHasStepsTypeAndDifficulty =
song and song:HasStepsTypeAndDifficulty( st, diff );
self:playcommand( bHasStepsTypeAndDifficulty and "Show" or "Hide" );
end;
CurrentSongChangedMessageCommand=cmd(playcommand,"Set");
};
end
return t;