Revert "Handle noteskin lua. Thanks to Jousway."

This reverts commit 1532c4e5ab.
This commit is contained in:
Jason Felds
2013-07-18 18:02:18 -04:00
parent fb5db73c45
commit ef1190e3db
108 changed files with 1111 additions and 1940 deletions
+1 -4
View File
@@ -1,6 +1,3 @@
return NOTESKIN:LoadActor("Center","Tap Note")..{
InitCommand=function(self)
self:effectclock("beat");
self:effectmagnitude(0.5, 1, 0);
end;
InitCommand=cmd(effectclock,"beat";effectmagnitude,0.5,1,0);
};
+1 -4
View File
@@ -1,6 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","Tap Note")..{
InitCommand=function(self)
self:effectclock("beat");
self:effectmagnitude(0.5, 1, 0);
end;
InitCommand=cmd(effectclock,"beat";effectmagnitude,0.5,1,0)
};
@@ -1,6 +1,3 @@
return NOTESKIN:LoadActor("DownRight","Tap Note")..{
InitCommand=function(self)
self:effectclock("beat");
self:effectmagnitude(0.5, 1, 0);
end;
InitCommand=cmd(effectclock,"beat";effectmagnitude,0.5,1,0)
};
+1 -5
View File
@@ -119,11 +119,7 @@ local function func()
end
if sElement == "Tap Lift" then
t.InitCommand=function(self)
self:pulse();
self:effectclock("beat");
self:effectmagnitude(1, 0.75, 0);
end;
t.InitCommand=cmd(pulse;effectclock,"beat";effectmagnitude,1,0.75,0);
end
return t
+42 -108
View File
@@ -1,109 +1,43 @@
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;
};
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);
};
}
+63 -65
View File
@@ -1,66 +1,64 @@
local player = Var "Player" or GAMESTATE:GetMasterPlayerNumber()
local function Beat(self)
-- too many locals
local this = self:GetChildren()
local playerstate = GAMESTATE:GetPlayerState( player )
local songposition = playerstate:GetSongPosition() -- GAMESTATE:GetSongPosition()
local beat = songposition:GetSongBeat() -- GAMESTATE:GetSongBeat()
local part = beat%1
part = clamp(part,0,0.5)
local eff = scale(part,0,0.5,1,0)
if (songposition:GetDelay() or false) and part == 0 then eff = 0 end
if beat < 0 then
eff = 0
end
this.Glow:diffusealpha(eff);
end
return Def.ActorFrame {
-- COMMANDS --
InitCommand=function(self)
self:SetUpdateFunction(Beat);
end;
-- LAYERS --
NOTESKIN:LoadActor("Center", "Outline Receptor")..{
Name="Outline Full";
Condition=Var "Button" == "Center" and GAMESTATE:GetCurrentStyle():GetStepsType() ~= 'StepsType_Pump_Halfdouble';
};
NOTESKIN:LoadActor("DownLeft", "Outline Receptor")..{
Name="Outline Half";
Condition=Var "Button" == "DownLeft" and GAMESTATE:GetCurrentStyle():GetStepsType() == 'StepsType_Pump_Halfdouble';
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
Frames={
{ Frame = 0, Delay = 0 }
};
PressCommand=function(self)
self:finishtweening();
self:linear(0.05);
self:zoom(0.9);
self:linear(0.1);
self:zoom(1);
end;
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glow";
Frames= {
{ Frame = 1, Delay = 0 }
};
InitCommand=function(self)
self:blend('BlendMode_Add');
end;
PressCommand=function(self)
self:finishtweening();
self:linear(0.05);
self:zoom(0.9);
self:linear(0.1);
self:zoom(1);
end;
};
local player = Var "Player" or GAMESTATE:GetMasterPlayerNumber()
local function Beat(self)
-- too many locals
local this = self:GetChildren()
local playerstate = GAMESTATE:GetPlayerState( player )
local songposition = playerstate:GetSongPosition() -- GAMESTATE:GetSongPosition()
local beat = songposition:GetSongBeat() -- GAMESTATE:GetSongBeat()
local part = beat%1
part = clamp(part,0,0.5)
local eff = scale(part,0,0.5,1,0)
if (songposition:GetDelay() or false) and part == 0 then eff = 0 end
if beat < 0 then
eff = 0
end
this.Glow:diffusealpha(eff);
end
return Def.ActorFrame {
-- COMMANDS --
InitCommand=cmd(SetUpdateFunction,Beat);
-- LAYERS --
NOTESKIN:LoadActor("Center", "Outline Receptor")..{
Name="Outline Full";
Condition=Var "Button" == "Center" and GAMESTATE:GetCurrentStyle():GetStepsType() ~= 'StepsType_Pump_Halfdouble';
--InitCommand=cmd(x,96);
};
NOTESKIN:LoadActor("DownLeft", "Outline Receptor")..{
Name="Outline Half";
Condition=Var "Button" == "DownLeft" and GAMESTATE:GetCurrentStyle():GetStepsType() == 'StepsType_Pump_Halfdouble';
--InitCommand=cmd(x,96);
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
Frames={
{ Frame = 0, Delay = 0 }
};
PressCommand=cmd(finishtweening;linear,0.05;zoom,0.9;linear,0.1;zoom,1);
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glow";
Frames= {
{ Frame = 1, Delay = 0 }
};
InitCommand=cmd(blend,'BlendMode_Add');
PressCommand=cmd(finishtweening;linear,0.05;zoom,0.9;linear,0.1;zoom,1);
};
--[[
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
Frames = { Frame = 2 };
InitCommand=cmd(zoom,1;diffusealpha,0;glow,1,1,1,0);
--NOTESKIN:GetMetricA(Var "Button", "TapInitCommand");
--
PressCommand=cmd(finishtweening;glow,1,1,1,1;zoom,1;linear,0.2;glow,1,1,1,0;zoom,1.2);
--NOTESKIN:GetMetricA(Var "Button", "TapHeldCommand");
--
};
--]]
}
+1 -4
View File
@@ -1,6 +1,3 @@
return NOTESKIN:LoadActor("UpLeft","Tap Note")..{
InitCommand=function(self)
self:effectclock("beat");
self:effectmagnitude(0.5, 1, 0);
end;
InitCommand=cmd(effectclock,"beat";effectmagnitude,0.5,1,0)
};
+1 -4
View File
@@ -1,6 +1,3 @@
return NOTESKIN:LoadActor("UpRight","Tap Note")..{
InitCommand=function(self)
self:effectclock("beat");
self:effectmagnitude(0.5,1,0);
end;
InitCommand=cmd(effectclock,"beat";effectmagnitude,0.5,1,0)
};
+2 -5
View File
@@ -1,6 +1,3 @@
return LoadActor("_CenterHit")..{
InitCommand=function(self)
self:x(2);
self:y(2);
end;
return LoadActor("_CenterHit")..{
InitCommand=cmd(x,2;y,2);
}
@@ -1,6 +1,3 @@
return LoadActor("_DownLeftHit")..{
InitCommand=fnction(self)
self:y(5);
self:x(2);
end;
return LoadActor("_DownLeftHit")..{
InitCommand=cmd(y,5;x,2);
}
@@ -1,6 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
OnCommand=function(self)
self:x(-2);
self:zoomx(-1);
end;
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
OnCommand=cmd(x,-2;zoomx,-1);
}
@@ -1,7 +1,8 @@
return NOTESKIN:LoadActor("DownLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
return NOTESKIN:LoadActor("DownLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
--InitCommand=cmd(rotationy,180);
};
@@ -1,2 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","Tap Note")..{
return NOTESKIN:LoadActor("DownLeft","Tap Note")..{
--InitCommand=cmd(rotationy,180);
};
+39 -112
View File
@@ -1,113 +1,40 @@
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=function(self)
self:animate(0);
self:blend(Blend.Add);
self:diffusealpha(0);
end;
NoneCommand=function(self)
self:playcommand("Glow");
end;
PressCommand=function(self)
self:playcommand("Glow");
end;
W1Command=function(self)
self:setstate(0);
self:playcommand("W2");
end;
W2Command=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
W3Command=function(self)
self:setstate(1);
self:playcommand("Glow");
end;
W4Command=function(self)
self:setstate(2);
self:playcommand("Glow");
end;
W5Command=function(self) end;
HitMineCommand=function(self)
self:playcommand("Glow");
end;
HeldCommand=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
GlowCommand=function(self)
self:stoptweening();
self:zoom(1.05);
self:diffusealpha(1);
self:linear(0.25);
self:zoom(1.1);
self:diffusealpha(0);
end;
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=function(self)
self:animate(0);
self:blend(Blend.Add);
self:diffusealpha(0);
end;
NoneCommand=function(self)
self:playcommand("Glow");
end;
PressCommand=function(self)
self:playcommand("Glow");
end;
W1Command=function(self)
self:setstate(0);
self:playcommand("W2");
end;
W2Command=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
W3Command=function(self)
self:setstate(1);
self:playcommand("Glow");
end;
W4Command=function(self)
self:setstate(2);
self:playcommand("Glow");
end;
W5Command=function(self) end;
HitMineCommand=function(self)
self:playcommand("Glow");
end;
HeldCommand=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
GlowCommand=function(self)
self:stoptweening();
self:zoom(1);
self:diffusealpha(0.4);
self:linear(0.3);
self:zoom(1.2);
self:diffusealpha(0);
end;
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=function(self)
self:animate(0);
self:zoom(1.1);
self:blend(Blend.Add);
self:visible(false);
end;
HoldingOnCommand=function(self)
self:visible(true);
end;
HoldingOffCommand=function(self)
self:visible(false);
end;
};
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=cmd(animate,0;blend,Blend.Add;diffusealpha,0);
NoneCommand=cmd(playcommand,"Glow");
PressCommand=cmd(playcommand,"Glow");
W1Command=cmd(setstate,0;playcommand,"W2");
W2Command=cmd(setstate,0;playcommand,"Glow");
W3Command=cmd(setstate,1;playcommand,"Glow");
W4Command=cmd(setstate,2;playcommand,"Glow");
W5Command=cmd();
HitMineCommand=cmd(playcommand,"Glow");
HeldCommand=cmd(setstate,0;playcommand,"Glow");
GlowCommand=cmd(stoptweening,zoom,1.05;diffusealpha,1;linear,0.25;zoom,1.1;diffusealpha,0);
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=cmd(animate,0;blend,Blend.Add;diffusealpha,0);
NoneCommand=cmd(playcommand,"Glow");
PressCommand=cmd(playcommand,"Glow");
W1Command=cmd(setstate,0;playcommand,"W2");
W2Command=cmd(setstate,0;playcommand,"Glow");
W3Command=cmd(setstate,1;playcommand,"Glow");
W4Command=cmd(setstate,2;playcommand,"Glow");
W5Command=cmd();
HitMineCommand=cmd(playcommand,"Glow");
HeldCommand=cmd(setstate,0;playcommand,"Glow");
GlowCommand=cmd(stoptweening,zoom,1;diffusealpha,0.4;linear,0.3;zoom,1.2;diffusealpha,0);
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=cmd(animate,0;zoom,1.1;blend,Blend.Add;visible,false);
HoldingOnCommand=cmd(visible,true);
HoldingOffCommand=cmd(visible,false);
};
}
+3 -8
View File
@@ -1,8 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=function(self)
self:rotationy(180);
self:rotationz(180);
self:y(-6);
self:x(2);
end;
}
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=cmd(rotationy,180;rotationz,180;y,-6;x,2);
}
+22 -53
View File
@@ -1,53 +1,22 @@
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
InitCommand=function(self)
self:animate(0);
self:setstate(0);
end;
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glow";
InitCommand=function(self)
self:animate(0);
self:setstate(1);
end;
OnCommand=function(self)
self:effectclock("bgm");
self:diffuseshift();
self:effectcolor1(color("#FFFFFFFF"));
self:effectcolor2(color("#FFFFFF00"));
self:effecttiming(1, 0, 0, 0);
end;
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
InitCommand=function(self)
self:animate(0);
self:setstate(2);
self:zoom(1);
self:diffusealpha(0);
self:blend('BlendMode_Add');
end;
PressCommand=function(self)
self:diffuse(color("#FFFFAA"));
self:stoptweening();
self:zoom(1.1);
self:linear(0.1);
self:diffusealpha(0.6);
self:zoom(1);
end;
LiftCommand=function(self)
self:diffuse(color("#FFFFAA"));
self:stoptweening();
self:diffusealpha(0.6);
self:zoom(1);
self:linear(0.15);
self:zoom(1.2);
self:diffusealpha(0);
end;
};
}
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
InitCommand=cmd(animate,0;setstate,0);
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glow";
InitCommand=cmd(animate,0;setstate,1);
OnCommand=cmd(effectclock,"bgm";diffuseshift;effectcolor1,color("#FFFFFFFF");effectcolor2,color("#FFFFFF00");effecttiming,1,0,0,0);
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
InitCommand=cmd(animate,0;setstate,2;zoom,1;diffusealpha,0;blend,'BlendMode_Add');
PressCommand=cmd(diffuse,color("#FFFFAA");stoptweening;zoom,1.1;linear,0.1;diffusealpha,0.6;zoom,1);
LiftCommand=cmd(diffuse,color("#FFFFAA");stoptweening;diffusealpha,0.6;zoom,1;linear,0.15;zoom,1.2;diffusealpha,0);
};
}
--Vin.il was here... =)
+25 -49
View File
@@ -1,50 +1,26 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Mine_Base");
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#FFFFFFFF"));
self:effectcolor2(color("#FFFFFF22"));
self:effectclock("bgm");
self:effectperiod(2);
end;
}
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#FFFFFFFF"));
self:effectcolor2(color("#FFFFFF22"));
self:effectclock("bgm");
self:effectperiod(2);
end;
}
t[#t+1] = LoadActor("Mine_Border")..{
InitCommand=function(self)
self:spin();
self:effectmagnitude(0, 0, 36);
end;
}
t[#t+1] = LoadActor("Mine_Overlay");
t[#t+1] = LoadActor("Mine_Light")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#FFFFFF55"));
self:effectcolor2(color("#FFFFFF00"));
self:effectclock("bgm");
self:zoom(1.15);
self:effectperiod(2);
end;
}
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Mine_Base");
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#FFFFFFFF");effectcolor2,color("#FFFFFF22");effectclock,"bgm";effectperiod,2);
}
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#FFFFFFFF");effectcolor2,color("#FFFFFF22");effectclock,"bgm";effectperiod,2);
}
t[#t+1] = LoadActor("Mine_Border")..{
InitCommand=cmd(spin;effectmagnitude,0,0,36);
}
t[#t+1] = LoadActor("Mine_Overlay");
t[#t+1] = LoadActor("Mine_Light")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#FFFFFF55");effectcolor2,color("#FFFFFF00");effectclock,"bgm";zoom,1.15;effectperiod,2);
}
return t
@@ -1,8 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=function(self)
self:rotationy(180);
self:rotationz(180);
self:y(-6);
self:x(-2);
end;
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=cmd(rotationy,180;rotationz,180;y,-6;x,-2);
}
@@ -1,7 +1,8 @@
return NOTESKIN:LoadActor("UpLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
return NOTESKIN:LoadActor("UpLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
--InitCommand=cmd(rotationy,180);
};
@@ -1,2 +1,4 @@
return NOTESKIN:LoadActor("UpLeft","Tap Note")..{
return NOTESKIN:LoadActor("UpLeft","Tap Note")..{
--InitCommand=cmd(rotationy,180);
--BaseRotationY=180;
};
+23 -43
View File
@@ -1,44 +1,24 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#9b8737FF"));
self:effectcolor2(color("#9b8737FF"));
self:fadetop(0.5);
end;
}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#ccb752FF"));
self:effectcolor2(color("#ccb75233"));
self:effectclock("bgm");
self:effecttiming(1, 0, 0, 0);
end;
}
t[#t+1] = LoadActor("Center_fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#ccb752FF"));
self:effectcolor2(color("#ccb752FF"));
end;
}
t[#t+1] = LoadActor("Center_feet")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffusealpha(0.6);
end;
}
t[#t+1] = LoadActor("Center border");
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#9b8737FF");effectcolor2,color("#9b8737FF");fadetop,0.5);
}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#ccb752FF");effectcolor2,color("#ccb75233");effectclock,"bgm";effecttiming,1,0,0,0;);
}
t[#t+1] = LoadActor("Center_fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#ccb752FF");effectcolor2,color("#ccb752FF"));
}
t[#t+1] = LoadActor("Center_feet")..{
InitCommand=cmd(blend,Blend.Add;diffusealpha,0.6);
}
t[#t+1] = LoadActor("Center border");
return t
+2 -5
View File
@@ -1,6 +1,3 @@
return LoadActor("_CenterHit")..{
InitCommand=function(self)
self:x(2);
self:y(2);
end;
return LoadActor("_CenterHit")..{
InitCommand=cmd(x,2;y,2);
}
+27 -51
View File
@@ -1,52 +1,28 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#9b873766"));
self:effectcolor2(color("#9b873766"));
end;
}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#ccb752FF"));
self:effectcolor2(color("#ccb75266"));
self:effectclock("bgm");
self:effecttiming(1, 0, 0, 0);
end;
}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#ccb752FF"));
self:effectcolor2(color("#ccb752FF"));
self:fadetop(1);
end;
}
t[#t+1] = LoadActor("Center_fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#ccb752FF"));
self:effectcolor2(color("#ccb752FF"));
end;
}
t[#t+1] = LoadActor("Center_feet")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffusealpha(0.6);
end;
}
t[#t+1] = LoadActor("Center border");
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#9b873766");effectcolor2,color("#9b873766"));
}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#ccb752FF");effectcolor2,color("#ccb75266");effectclock,"bgm";effecttiming,1,0,0,0;);
}
t[#t+1] = LoadActor("Center_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#ccb752FF");effectcolor2,color("#ccb752FF");fadetop,1);
}
t[#t+1] = LoadActor("Center_fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#ccb752FF");effectcolor2,color("#ccb752FF"));
}
t[#t+1] = LoadActor("Center_feet")..{
InitCommand=cmd(blend,Blend.Add;diffusealpha,0.6);
}
t[#t+1] = LoadActor("Center border");
return t
+19 -36
View File
@@ -1,37 +1,20 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#376f9bFF"));
self:effectcolor2(color("#376f9bFF"));
self:fadetop(0.5);
end;
}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#5899ccFF"));
self:effectcolor2(color("#5899cc33"));
self:effectclock("bgm");
self:effecttiming(1, 0, 0, 0);
end;
}
t[#t+1] = LoadActor("DownLeft_fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#5899ccFF"));
self:effectcolor2(color("#5899ccFF"));
end;
}
t[#t+1] = LoadActor("DownLeft border");
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#376f9bFF");effectcolor2,color("#376f9bFF");fadetop,0.5);
}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#5899ccFF");effectcolor2,color("#5899cc33");effectclock,"bgm";effecttiming,1,0,0,0;);
}
t[#t+1] = LoadActor("DownLeft_fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#5899ccFF");effectcolor2,color("#5899ccFF"));
}
t[#t+1] = LoadActor("DownLeft border");
return t
+2 -5
View File
@@ -1,6 +1,3 @@
return LoadActor("_DownLeftHit")..{
InitCommand=fnction(self)
self:y(5);
self:x(2);
end;
return LoadActor("_DownLeftHit")..{
InitCommand=cmd(y,5;x,2);
}
+23 -44
View File
@@ -1,45 +1,24 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=fnction(self)
self:diffuseshift();
self:effectcolor1(color("#376f9b66"));
self:effectcolor2(color("#376f9b66"));
end;
}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#5899ccFF"));
self:effectcolor2(color("#5899cc66"));
self:effectclock("bgm");
self:effecttiming(1, 0, 0, 0);
end;
}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#5899ccFF"));
self:effectcolor2(color("#5899ccFF"));
self:fadetop(1);
end;
}
t[#t+1] = LoadActor("DownLeft_fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#5899ccFF"));
self:effectcolor2(color("#5899ccFF"));
end;
}
t[#t+1] = LoadActor("DownLeft border");
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#376f9b66");effectcolor2,color("#376f9b66"));
}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#5899ccFF");effectcolor2,color("#5899cc66");effectclock,"bgm";effecttiming,1,0,0,0;);
}
t[#t+1] = LoadActor("DownLeft_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#5899ccFF");effectcolor2,color("#5899ccFF");fadetop,1);
}
t[#t+1] = LoadActor("DownLeft_fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#5899ccFF");effectcolor2,color("#5899ccFF"));
}
t[#t+1] = LoadActor("DownLeft border");
return t
+2 -2
View File
@@ -1,3 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","Hold Head")..{
return NOTESKIN:LoadActor("DownLeft","Hold Head")..{
--InitCommand=cmd(rotationy,180);
};
+2 -5
View File
@@ -1,6 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
OnCommand=function(self)
self:x(-2);
self:zoomx(-1);
end;
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
OnCommand=cmd(x,-2;zoomx,-1);
}
@@ -1,7 +1,8 @@
return NOTESKIN:LoadActor("DownLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
return NOTESKIN:LoadActor("DownLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
--InitCommand=cmd(rotationy,180);
};
+2 -1
View File
@@ -1,2 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","Tap Note")..{
return NOTESKIN:LoadActor("DownLeft","Tap Note")..{
--InitCommand=cmd(rotationy,180);
};
+130 -134
View File
@@ -1,135 +1,131 @@
local Noteskin = {}
--bBlanks:
Noteskin.bBlanks = {
--["element"] = true|false;
["Hold Tail Active"] = true;
["Hold Tail Active"] = true;
["Roll Tail Inactive"] = true;
["Roll Tail Inactive"] = true;
}
Noteskin.PartsToRotate = {
--["elemenu"] = true|false;
["Roll Head Active"] = false;
["Roll Head Inactive"] = false;
}
Noteskin.ElementRedirs = {
--["element"] = "redirected_element";
["Hold Head Active"] = "Tap Note";
["Hold Head Inactive"] = "Tap Note";
["Roll Head Active"] = "Roll Head Active";
["Roll Head Inactive"] = "Roll Head Active";
["Tap Fake"] = "Tap Note";
["Tap Lift"] = "Tap Note";
--
["Hold Topcap Inactive"] = "Hold Topcap Active";
["Hold Body Inactive"] = "Hold Body Active";
["Hold Bottomcap Inactive"] = "Hold Bottomcap Active";
["Hold Tail Inactive"] = "Hold Tail Active";
--
["Roll Topcap Active"] = "Hold Topcap Active";
["Roll Body Active"] = "Hold Body Active";
["Roll Bottomcap Active"] = "Hold Bottomcap Active";
["Roll Tail Active"] = "Hold Tail Active";
--
["Roll Topcap Inactive"] = "Hold Topcap Active";
["Roll Body Inactive"] = "Hold Body Active";
["Roll Bottomcap Inactive"] = "Hold Bottomcap Active";
["Roll Tail Inactive"] = "Hold Tail Active";
}
-- explicit, n/w
--[[Noteskin.ButtonRedirs = {
Center = "Center";
UpLeft = "UpLeft";
UpRight = "UpRight";
DownLeft = "DownLeft";
DownRight = "DownRight";
}]]
Noteskin.BaseRotX = {
Center = 0;
UpLeft = 0;
UpRight = 0;
DownLeft = 0;
DownRight = 0;
}
Noteskin.BaseRotY = {
Center = 0;
UpLeft = 0;
UpRight = 180;
DownLeft = 0;
DownRight = 180;
}
Noteskin.BaseRotZ = {
Center = 0;
UpLeft = 0;
UpRight = 0;
DownLeft = 0;
DownRight = 0;
}
--[[--------------------------------------------------------------------------
DONT EDIT THE FUNCTION, DON'T COPY AND PASTE THE WHOLE NOTESKIN.LUA
JUST MAKE A NEW ONE AND GRAB WHATEVER IS USEFUL FOR YOUR NOTESKIN.
phew~
See cmd-routine-p* noteskin.lua for a simple and clear example on
how to do this properly, notice how the rest of the noteskins just
have graphics and at least a metrics.ini with few things
--]]--------------------------------------------------------------------------
local function func()
local sButton = Var "Button"
local sElement = Var "Element"
if Noteskin.bBlanks[sElement] then
local t = Def.Actor {};
if Var "SpriteOnly" then
t = LoadActor( "_blank" );
end
return t
end
--local ButtonToLoad = Noteskin.ButtonRedirs[sButton]
local ElementToLoad = Noteskin.ElementRedirs[sElement]
if not ElementToLoad then
ElementToLoad = sElement
end
if sElement == "Explosion"
or sElement == "Tap Mine"
or sElement == "Receptor"
then
sButton = "UpLeft"
end
local path = NOTESKIN:GetPath(sButton,ElementToLoad)
if ( string.find(sElement,"Hold") or string.find(sElement,"Roll") )
and not ( string.find(sElement,"Head") or string.find(sElement,"Tail") )
then
path = NOTESKIN:GetPath(sButton,ElementToLoad)
end
local t = LoadActor(path)
local bRotate = Noteskin.PartsToRotate[ElementToLoad]
--rotate by default
if bRotate == nil then bRotate = true end
if bRotate then
t.BaseRotationX=Noteskin.BaseRotX[sButton]
t.BaseRotationY=Noteskin.BaseRotY[sButton]
t.BaseRotationZ=Noteskin.BaseRotZ[sButton]
end
if sElement == "Tap Lift" then
t.InitCommand=function(self)
self:pulse();
self:effectclock("beat");
self:effectmagnitude(1, 0.75, 0);
end;
end
return t
end
Noteskin.Load = func
Noteskin.CommonLoad = func
local Noteskin = {}
--bBlanks:
Noteskin.bBlanks = {
--["element"] = true|false;
["Hold Tail Active"] = true;
["Hold Tail Active"] = true;
["Roll Tail Inactive"] = true;
["Roll Tail Inactive"] = true;
}
Noteskin.PartsToRotate = {
--["elemenu"] = true|false;
["Roll Head Active"] = false;
["Roll Head Inactive"] = false;
}
Noteskin.ElementRedirs = {
--["element"] = "redirected_element";
["Hold Head Active"] = "Tap Note";
["Hold Head Inactive"] = "Tap Note";
["Roll Head Active"] = "Roll Head Active";
["Roll Head Inactive"] = "Roll Head Active";
["Tap Fake"] = "Tap Note";
["Tap Lift"] = "Tap Note";
--
["Hold Topcap Inactive"] = "Hold Topcap Active";
["Hold Body Inactive"] = "Hold Body Active";
["Hold Bottomcap Inactive"] = "Hold Bottomcap Active";
["Hold Tail Inactive"] = "Hold Tail Active";
--
["Roll Topcap Active"] = "Hold Topcap Active";
["Roll Body Active"] = "Hold Body Active";
["Roll Bottomcap Active"] = "Hold Bottomcap Active";
["Roll Tail Active"] = "Hold Tail Active";
--
["Roll Topcap Inactive"] = "Hold Topcap Active";
["Roll Body Inactive"] = "Hold Body Active";
["Roll Bottomcap Inactive"] = "Hold Bottomcap Active";
["Roll Tail Inactive"] = "Hold Tail Active";
}
-- explicit, n/w
--[[Noteskin.ButtonRedirs = {
Center = "Center";
UpLeft = "UpLeft";
UpRight = "UpRight";
DownLeft = "DownLeft";
DownRight = "DownRight";
}]]
Noteskin.BaseRotX = {
Center = 0;
UpLeft = 0;
UpRight = 0;
DownLeft = 0;
DownRight = 0;
}
Noteskin.BaseRotY = {
Center = 0;
UpLeft = 0;
UpRight = 180;
DownLeft = 0;
DownRight = 180;
}
Noteskin.BaseRotZ = {
Center = 0;
UpLeft = 0;
UpRight = 0;
DownLeft = 0;
DownRight = 0;
}
--[[--------------------------------------------------------------------------
DONT EDIT THE FUNCTION, DON'T COPY AND PASTE THE WHOLE NOTESKIN.LUA
JUST MAKE A NEW ONE AND GRAB WHATEVER IS USEFUL FOR YOUR NOTESKIN.
phew~
See cmd-routine-p* noteskin.lua for a simple and clear example on
how to do this properly, notice how the rest of the noteskins just
have graphics and at least a metrics.ini with few things
--]]--------------------------------------------------------------------------
local function func()
local sButton = Var "Button"
local sElement = Var "Element"
if Noteskin.bBlanks[sElement] then
local t = Def.Actor {};
if Var "SpriteOnly" then
t = LoadActor( "_blank" );
end
return t
end
--local ButtonToLoad = Noteskin.ButtonRedirs[sButton]
local ElementToLoad = Noteskin.ElementRedirs[sElement]
if not ElementToLoad then
ElementToLoad = sElement
end
if sElement == "Explosion"
or sElement == "Tap Mine"
or sElement == "Receptor"
then
sButton = "UpLeft"
end
local path = NOTESKIN:GetPath(sButton,ElementToLoad)
if ( string.find(sElement,"Hold") or string.find(sElement,"Roll") )
and not ( string.find(sElement,"Head") or string.find(sElement,"Tail") )
then
path = NOTESKIN:GetPath(sButton,ElementToLoad)
end
local t = LoadActor(path)
local bRotate = Noteskin.PartsToRotate[ElementToLoad]
--rotate by default
if bRotate == nil then bRotate = true end
if bRotate then
t.BaseRotationX=Noteskin.BaseRotX[sButton]
t.BaseRotationY=Noteskin.BaseRotY[sButton]
t.BaseRotationZ=Noteskin.BaseRotZ[sButton]
end
if sElement == "Tap Lift" then
t.InitCommand=cmd(pulse;effectclock,"beat";effectmagnitude,1,0.75,0);
end
return t
end
Noteskin.Load = func
Noteskin.CommonLoad = func
return Noteskin
+39 -112
View File
@@ -1,113 +1,40 @@
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=function(self)
self:animate(0);
self:blend(Blend.Add);
self:diffusealpha(0);
end;
NoneCommand=function(self)
self:playcommand("Glow");
end;
PressCommand=function(self)
self:playcommand("Glow");
end;
W1Command=function(self)
self:setstate(0);
self:playcommand("W2");
end;
W2Command=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
W3Command=function(self)
self:setstate(1);
self:playcommand("Glow");
end;
W4Command=function(self)
self:setstate(2);
self:playcommand("Glow");
end;
W5Command=function(self) end;
HitMineCommand=function(self)
self:playcommand("Glow");
end;
HeldCommand=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
GlowCommand=function(self)
self:stoptweening();
self:zoom(1.05);
self:diffusealpha(1);
self:linear(0.25);
self:zoom(1.1);
self:diffusealpha(0);
end;
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=function(self)
self:animate(0);
self:blend(Blend.Add);
self:diffusealpha(0);
end;
NoneCommand=function(self)
self:playcommand("Glow");
end;
PressCommand=function(self)
self:playcommand("Glow");
end;
W1Command=function(self)
self:setstate(0);
self:playcommand("W2");
end;
W2Command=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
W3Command=function(self)
self:setstate(1);
self:playcommand("Glow");
end;
W4Command=function(self)
self:setstate(2);
self:playcommand("Glow");
end;
W5Command=function(self) end;
HitMineCommand=function(self)
self:playcommand("Glow");
end;
HeldCommand=function(self)
self:setstate(0);
self:playcommand("Glow");
end;
GlowCommand=function(self)
self:stoptweening();
self:zoom(1);
self:diffusealpha(0.4);
self:linear(0.3);
self:zoom(1.2);
self:diffusealpha(0);
end;
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=function(self)
self:animate(0);
self:zoom(1.1);
self:blend(Blend.Add);
self:visible(false);
end;
HoldingOnCommand=function(self)
self:visible(true);
end;
HoldingOffCommand=function(self)
self:visible(false);
end;
};
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=cmd(animate,0;blend,Blend.Add;diffusealpha,0);
NoneCommand=cmd(playcommand,"Glow");
PressCommand=cmd(playcommand,"Glow");
W1Command=cmd(setstate,0;playcommand,"W2");
W2Command=cmd(setstate,0;playcommand,"Glow");
W3Command=cmd(setstate,1;playcommand,"Glow");
W4Command=cmd(setstate,2;playcommand,"Glow");
W5Command=cmd();
HitMineCommand=cmd(playcommand,"Glow");
HeldCommand=cmd(setstate,0;playcommand,"Glow");
GlowCommand=cmd(stoptweening,zoom,1.05;diffusealpha,1;linear,0.25;zoom,1.1;diffusealpha,0);
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=cmd(animate,0;blend,Blend.Add;diffusealpha,0);
NoneCommand=cmd(playcommand,"Glow");
PressCommand=cmd(playcommand,"Glow");
W1Command=cmd(setstate,0;playcommand,"W2");
W2Command=cmd(setstate,0;playcommand,"Glow");
W3Command=cmd(setstate,1;playcommand,"Glow");
W4Command=cmd(setstate,2;playcommand,"Glow");
W5Command=cmd();
HitMineCommand=cmd(playcommand,"Glow");
HeldCommand=cmd(setstate,0;playcommand,"Glow");
GlowCommand=cmd(stoptweening,zoom,1;diffusealpha,0.4;linear,0.3;zoom,1.2;diffusealpha,0);
};
NOTESKIN:LoadActor(Var "Button","NoteHit") .. {
InitCommand=cmd(animate,0;zoom,1.1;blend,Blend.Add;visible,false);
HoldingOnCommand=cmd(visible,true);
HoldingOffCommand=cmd(visible,false);
};
}
+20 -37
View File
@@ -1,38 +1,21 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#9b376dFF"));
self:effectcolor2(color("#9b376dFF"));
self:fadetop(0.5);
end;
}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#cc5176FF"));
self:effectcolor2(color("#cc517633"));
self:effectclock("bgm");
self:effecttiming(1, 0, 0, 0);
end;
}
t[#t+1] = LoadActor("UpLeft_fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#cc5176FF"));
self:effectcolor2(color("#cc5176FF"));
end;
}
t[#t+1] = LoadActor("UpLeft border");
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#9b376dFF");effectcolor2,color("#9b376dFF");fadetop,0.5);
}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#cc5176FF");effectcolor2,color("#cc517633");effectclock,"bgm";effecttiming,1,0,0,0;);
}
t[#t+1] = LoadActor("UpLeft_fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#cc5176FF");effectcolor2,color("#cc5176FF"));
}
t[#t+1] = LoadActor("UpLeft border");
return t
+3 -8
View File
@@ -1,8 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=function(self)
self:rotationy(180);
self:rotationz(180);
self:y(-6);
self:x(2);
end;
}
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=cmd(rotationy,180;rotationz,180;y,-6;x,2);
}
+22 -53
View File
@@ -1,53 +1,22 @@
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
InitCommand=function(self)
self:animate(0);
self:setstate(0);
end;
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glow";
InitCommand=function(self)
self:animate(0);
self:setstate(1);
end;
OnCommand=function(self)
self:effectclock("bgm");
self:diffuseshift();
self:effectcolor1(color("#FFFFFFFF"));
self:effectcolor2(color("#FFFFFF00"));
self:effecttiming(1, 0, 0, 0);
end;
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
InitCommand=function(self)
self:animate(0);
self:setstate(2);
self:zoom(1);
self:diffusealpha(0);
self:blend('BlendMode_Add');
end;
PressCommand=function(self)
self:diffuse(color("#FFFFAA"));
self:stoptweening();
self:zoom(1.1);
self:linear(0.1);
self:diffusealpha(0.6);
self:zoom(1);
end;
LiftCommand=function(self)
self:diffuse(color("#FFFFAA"));
self:stoptweening();
self:diffusealpha(0.6);
self:zoom(1);
self:linear(0.15);
self:zoom(1.2);
self:diffusealpha(0);
end;
};
}
return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
InitCommand=cmd(animate,0;setstate,0);
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glow";
InitCommand=cmd(animate,0;setstate,1);
OnCommand=cmd(effectclock,"bgm";diffuseshift;effectcolor1,color("#FFFFFFFF");effectcolor2,color("#FFFFFF00");effecttiming,1,0,0,0);
};
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Tap";
InitCommand=cmd(animate,0;setstate,2;zoom,1;diffusealpha,0;blend,'BlendMode_Add');
PressCommand=cmd(diffuse,color("#FFFFAA");stoptweening;zoom,1.1;linear,0.1;diffusealpha,0.6;zoom,1);
LiftCommand=cmd(diffuse,color("#FFFFAA");stoptweening;diffusealpha,0.6;zoom,1;linear,0.15;zoom,1.2;diffusealpha,0);
};
}
+25 -49
View File
@@ -1,50 +1,26 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Mine_Base");
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#FFFFFFFF"));
self:effectcolor2(color("#FFFFFF22"));
self:effectclock("bgm");
self:effectperiod(2);
end;
}
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#FFFFFFFF"));
self:effectcolor2(color("#FFFFFF22"));
self:effectclock("bgm");
self:effectperiod(2);
end;
}
t[#t+1] = LoadActor("Mine_Border")..{
InitCommand=function(self)
self:spin();
self:effectmagnitude(0, 0, 36);
end;
}
t[#t+1] = LoadActor("Mine_Overlay");
t[#t+1] = LoadActor("Mine_Light")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#FFFFFF55"));
self:effectcolor2(color("#FFFFFF00"));
self:effectclock("bgm");
self:zoom(1.15);
self:effectperiod(2);
end;
}
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("Mine_Base");
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#FFFFFFFF");effectcolor2,color("#FFFFFF22");effectclock,"bgm";effectperiod,2);
}
t[#t+1] = LoadActor("Mine_Fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#FFFFFFFF");effectcolor2,color("#FFFFFF22");effectclock,"bgm";effectperiod,2);
}
t[#t+1] = LoadActor("Mine_Border")..{
InitCommand=cmd(spin;effectmagnitude,0,0,36);
}
t[#t+1] = LoadActor("Mine_Overlay");
t[#t+1] = LoadActor("Mine_Light")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#FFFFFF55");effectcolor2,color("#FFFFFF00");effectclock,"bgm";zoom,1.15;effectperiod,2);
}
return t
+26 -47
View File
@@ -1,48 +1,27 @@
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#9b376d66"));
self:effectcolor2(color("#9b376d66"));
end;
}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#cc5176FF"));
self:effectcolor2(color("#cc517666"));
self:effectclock("bgm");
self:effecttiming(1, 0, 0, 0);
end;
}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=function(self)
self:diffuseshift();
self:effectcolor1(color("#cc5176FF"));
self:effectcolor2(color("#cc5176FF"));
self:fadetop(1);
end;
}
t[#t+1] = LoadActor("UpLeft_fill")..{
InitCommand=function(self)
self:blend(Blend.Add);
self:diffuseshift();
self:effectcolor1(color("#cc5176FF"));
self:effectcolor2(color("#cc5176FF"));
end;
}
t[#t+1] = LoadActor("UpLeft border");
local t = Def.ActorFrame{}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#9b376d66");effectcolor2,color("#9b376d66"));
}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#cc5176FF");effectcolor2,color("#cc517666");effectclock,"bgm";effecttiming,1,0,0,0;);
}
t[#t+1] = LoadActor("UpLeft_blend")..{
InitCommand=cmd(diffuseshift;effectcolor1,color("#cc5176FF");effectcolor2,color("#cc5176FF");fadetop,1);
}
t[#t+1] = LoadActor("UpLeft_fill")..{
InitCommand=cmd(blend,Blend.Add;diffuseshift;effectcolor1,color("#cc5176FF");effectcolor2,color("#cc5176FF"));
}
t[#t+1] = LoadActor("UpLeft border");
return t
+3 -1
View File
@@ -1,2 +1,4 @@
return NOTESKIN:LoadActor("UpLeft","Hold Head")..{
return NOTESKIN:LoadActor("UpLeft","Hold Head")..{
--InitCommand=cmd(rotationy,180);
--BaseRotationY=180;
};
+2 -7
View File
@@ -1,8 +1,3 @@
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=function(self)
self:rotationy(180);
self:rotationz(180);
self:y(-6);
self:x(-2);
end;
return NOTESKIN:LoadActor("DownLeft","NoteHit")..{
InitCommand=cmd(rotationy,180;rotationz,180;y,-6;x,-2);
}
@@ -1,7 +1,8 @@
return NOTESKIN:LoadActor("UpLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
return NOTESKIN:LoadActor("UpLeft", "Ready Receptor")..{
Frames = {
{ Frame = 0 };
{ Frame = 1 };
{ Frame = 2 };
};
--InitCommand=cmd(rotationy,180);
};
+3 -1
View File
@@ -1,2 +1,4 @@
return NOTESKIN:LoadActor("UpLeft","Tap Note")..{
return NOTESKIN:LoadActor("UpLeft","Tap Note")..{
--InitCommand=cmd(rotationy,180);
--BaseRotationY=180;
};