Files
itgmania212121/NoteSkins/Para/default/Down Receptor.lua
T

24 lines
666 B
Lua
Raw Normal View History

2011-03-17 01:47:30 -04:00
return Def.ActorFrame {
-- We want this under the noteskin, so that we it looks like a laser (?)
LoadActor( NOTESKIN:GetPath("", "_Tap Receptor"), NOTESKIN:LoadActor( Var "Button", "KeypressBlock" ) ) .. {
2013-07-06 21:51:12 -04:00
InitCommand=function(self)
self:vertalign(top);
self:zoomx(0);
end;
2011-03-17 01:47:30 -04:00
-- Press/Lift allows this to appear and disappear
2013-07-06 21:51:12 -04:00
PressCommand=function(self)
self:zoomx(0);
self:linear(0.02);
self:zoomx(1);
end;
LiftCommand=function(self)
self:zoomx(1);
self:linear(0.14);
self:zoomx(0);
end;
2011-03-17 01:47:30 -04:00
};
-- Overlay the receptor.
LoadActor( NOTESKIN:GetPath("", "_Tap Receptor"), NOTESKIN:LoadActor( Var "Button", "Go Receptor" ) );
};