Files
itgmania212121/NoteSkins/pump/default/UpLeft Receptor.lua
T

39 lines
978 B
Lua
Raw Normal View History

2010-01-26 21:00:30 -06:00
local function Beat(self)
local this = self:GetChildren()
2010-03-01 00:36:07 -06:00
--Yes, why not?
this.Base:pause();
this.Glow:pause();
this.Tap:pause();
this.Base:setstate(0);
this.Glow:setstate(1);
this.Tap:setstate(2);
this.Glow:blend('BlendMode_Add');
this.Glow:diffusealpha(0);
2010-01-26 21:00:30 -06:00
local beat = GAMESTATE:GetSongBeat()
local part = beat%1
local eff = scale(part,0,0.5,1,0)
2010-03-01 00:36:07 -06:00
if beat >= 0 then
this.Glow:diffusealpha(eff);
2010-01-26 21:00:30 -06:00
end
end
return Def.ActorFrame {
2010-03-01 00:36:07 -06:00
-- COMMANDS --
2010-01-26 21:00:30 -06:00
InitCommand=cmd(SetUpdateFunction,Beat);
2010-03-01 00:36:07 -06:00
-- LAYERS --
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
InitCommand=cmd();
2010-01-26 21:00:30 -06:00
};
2010-03-01 00:36:07 -06:00
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glow";
InitCommand=cmd();
2010-01-26 21:00:30 -06:00
};
2010-03-01 00:36:07 -06:00
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
InitCommand=NOTESKIN:GetMetricA(Var "Button" ,"ReceptorTapInitCommand");
PressCommand=NOTESKIN:GetMetricA(Var "Button" ,"ReceptorTapPressCommand");
2010-01-26 21:00:30 -06:00
};
}