Handle noteskin lua. Thanks to Jousway.

This commit is contained in:
Jason Felds
2013-07-06 21:51:12 -04:00
parent afd0dac0c1
commit 1532c4e5ab
108 changed files with 1940 additions and 1111 deletions
+108 -42
View File
@@ -1,43 +1,109 @@
return Def.ActorFrame {
--note graphic
NOTESKIN:LoadActor(Var "Button", "Tap Note") .. {
InitCommand=cmd(blend,"BlendMode_Add";playcommand,"Glow");
W1Command=cmd(playcommand,"Glow");
W2Command=cmd(playcommand,"Glow");
W3Command=cmd(playcommand,"Glow");
W4Command=cmd();
W5Command=cmd();
HitMineCommand=cmd(playcommand,"Glow");
GlowCommand=cmd(setstate,0;finishtweening;diffusealpha,1.0;zoom,1.0;linear,0.15;diffusealpha,0.9;zoom,1.15;linear,0.15;diffusealpha,0.0;zoom,1.3);
HeldCommand=cmd(playcommand,"Glow");
};
--tap
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
--Frames = { { Frame = 2 ; Delay = 1 } };
TapCommand=cmd(finishtweening;diffusealpha,1;zoom,1;linear,0.2;diffusealpha,0;zoom,1.2);
InitCommand=cmd(pause;setstate,2;playcommand,"Tap");
HeldCommand=cmd(playcommand,"Tap");
ColumnJudgmentMessageCommand=cmd(playcommand,"Tap");
--TapNoneCommand=cmd(playcommand,"Tap");
};
--explosion
LoadActor("_flash")..{
InitCommand=cmd(blend,"BlendMode_Add";playcommand,"Glow");
W1Command=cmd(playcommand,"Glow");
W2Command=cmd(playcommand,"Glow");
W3Command=cmd(playcommand,"Glow");
W4Command=cmd();
W5Command=cmd();
--HoldingOnCommand=cmd(playcommand,"Glow");
HitMineCommand=cmd(playcommand,"Glow");
HeldCommand=cmd(playcommand,"Glow");
GlowCommand=cmd(setstate,0;finishtweening;diffusealpha,1;zoom,1;linear,0.2;diffusealpha,0;zoom,1.2);
};
--thing...
Def.Quad {
InitCommand=cmd(zoomto,50,5000;diffusealpha,0);
HitMineCommand=cmd(finishtweening;diffusealpha,1;linear,0.3;diffusealpha,0);
};
return Def.ActorFrame {
--note graphic
NOTESKIN:LoadActor(Var "Button", "Tap Note") .. {
InitCommand=function(self)
self:blend("BlendMode_Add");
self:playcommand("Glow");
end;
W1Command=function(self)
self:playcommand("Glow");
end;
W2Command=function(self)
self:playcommand("Glow");
end;
W3Command=function(self)
self:playcommand("Glow");
end;
W4Command=function(self) end;
W5Command=function(self) end;
HitMineCommand=function(self)
self:playcommand("Glow");
end;
HeldCommand=function(self)
self:playcommand("Glow");
end;
GlowCommand=function(self)
self:setstate(0);
self:finishtweening();
self:diffusealpha(1.0);
self:zoom(1.0);
self:linear(0.15);
self:diffusealpha(0.9);
self:zoom(1.15);
self:linear(0.15);
self:diffusealpha(0.0);
self:zoom(1.3);
end;
};
--tap
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
--Frames = { { Frame = 2 ; Delay = 1 } };
TapCommand=function(self)
self:finishtweening();
self:diffusealpha(1);
self:zoom(1);
self:linear(0.2);
self:diffusealpha(0);
self:zoom(1.2);
end;
InitCommand=function(self)
self:pause();
self:setstate(2);
self:playcommand("Tap");
end;
HeldCommand=function(self)
self:playcommand("Tap");
end;
ColumnJudgmentMessageCommand=function(self)
self:playcommand("Tap");
end;
};
--explosion
LoadActor("_flash")..{
InitCommand=function(self)
self:blend("BlendMode_Add");
self:playcommand("Glow");
end;
W1Command=function(self)
self:playcommand("Glow");
end;
W2Command=function(self)
self:playcommand("Glow");
end;
W3Command=function(self)
self:playcommand("Glow");
end;
W4Command=function(self) end;
W5Command=function(self) end;
HitMineCommand=function(self)
self:playcommand("Glow");
end;
HeldCommand=function(self)
self:playcommand("Glow");
end;
GlowCommand=function(self)
self:setstate(0);
self:finishtweening();
self:diffusealpha(1);
self:zoom(1);
self:linear(0.2);
self:diffusealpha(0);
self:zoom(1.2);
end;
};
--thing...
Def.Quad {
InitCommand=function(self)
self:zoomto(50, 5000);
self:diffusealpha(0);
end;
HitMineCommand=function(self)
self:finishtweening();
self:diffusealpha(1);
self:linear(0.3);
self:diffusealpha(0);
end;
};
}