Files
itgmania212121/stepmania/Themes/default/BGAnimations/ScreenSelectMusic overlay/difficulties.lua
T

23 lines
740 B
Lua
Raw Normal View History

local t = Def.ActorFrame {
2007-05-18 16:57:36 +00:00
};
2007-02-03 11:19:11 +00:00
for idx, diff in pairs(Difficulty) do -- 0, Difficulty_Beginner
2007-05-18 16:57:36 +00:00
t[#t+1] = LoadActor( "_DifficultyDisplay 6x1" ) .. {
2007-02-03 11:19:11 +00:00
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
2007-05-18 16:57:36 +00:00
return t;