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
+11 -36
View File
@@ -2,64 +2,39 @@ local t = Def.ActorFrame {
NOTESKIN:LoadActor( Var "Button", "Hold Explosion" ) .. {
HoldingOnCommand=NOTESKIN:GetMetricA("HoldGhostArrow", "HoldingOnCommand");
HoldingOffCommand=NOTESKIN:GetMetricA("HoldGhostArrow", "HoldingOffCommand");
InitCommand=function(self)
self:playcommand("HoldingOff");
self:finishtweening();
end;
InitCommand=cmd(playcommand,"HoldingOff";finishtweening);
};
NOTESKIN:LoadActor( Var "Button", "Roll Explosion" ) .. {
RollOnCommand=NOTESKIN:GetMetricA("HoldGhostArrow", "RollOnCommand");
RollOffCommand=NOTESKIN:GetMetricA("HoldGhostArrow", "RollOffCommand");
InitCommand=function(self)
self:playcommand("RollOff");
self:finishtweening();
end;
InitCommand=cmd(playcommand,"RollOff";finishtweening);
};
NOTESKIN:LoadActor( Var "Button", "Tap Explosion Dim" ) .. {
InitCommand=function(self)
self:diffusealpha(0);
end;
InitCommand=cmd(diffusealpha,0);
W5Command=NOTESKIN:GetMetricA("GhostArrowDim", "W5Command");
W4Command=NOTESKIN:GetMetricA("GhostArrowDim", "W4Command");
W3Command=NOTESKIN:GetMetricA("GhostArrowDim", "W3Command");
W2Command=NOTESKIN:GetMetricA("GhostArrowDim", "W2Command");
W1Command=NOTESKIN:GetMetricA("GhostArrowDim", "W1Command");
HeldCommand=NOTESKIN:GetMetricA("GhostArrowDim", "HeldCommand");
JudgmentCommand=function(self)
self:finishtweening();
end;
BrightCommand=function(self)
self:visible(false);
end;
DimCommand=function(self)
self:visible(true);
end;
JudgmentCommand=cmd(finishtweening);
BrightCommand=cmd(visible,false);
DimCommand=cmd(visible,true);
};
NOTESKIN:LoadActor( Var "Button", "Tap Explosion Bright" ) .. {
InitCommand=function(self)
self:diffusealpha(0);
end;
InitCommand=cmd(diffusealpha,0);
W5Command=NOTESKIN:GetMetricA("GhostArrowBright", "W5Command");
W4Command=NOTESKIN:GetMetricA("GhostArrowBright", "W4Command");
W3Command=NOTESKIN:GetMetricA("GhostArrowBright", "W3Command");
W2Command=NOTESKIN:GetMetricA("GhostArrowBright", "W2Command");
W1Command=NOTESKIN:GetMetricA("GhostArrowBright", "W1Command");
HeldCommand=NOTESKIN:GetMetricA("GhostArrowBright", "HeldCommand");
JudgmentCommand=function(self)
self:finishtweening();
end;
BrightCommand=function(self)
self:visible(true);
end;
DimCommand=function(self)
self:visible(false);
end;
JudgmentCommand=cmd(finishtweening);
BrightCommand=cmd(visible,true);
DimCommand=cmd(visible,false);
};
NOTESKIN:LoadActor( Var "Button", "HitMine Explosion" ) .. {
InitCommand=function(self)
self:blend("BlendMode_Add");
self:diffusealpha(0);
end;
InitCommand=cmd(blend,"BlendMode_Add";diffusealpha,0);
HitMineCommand=NOTESKIN:GetMetricA("GhostArrowBright", "HitMineCommand");
};
}
+1 -3
View File
@@ -35,9 +35,7 @@ local function func()
t = Def.Actor {};
end
return t .. {
function(self)
self:visible(false);
end;
cmd(visible,false);
};
end
@@ -4,15 +4,9 @@ return Def.ActorFrame {
{ Frame = 2; Delay = 1; };
};
InitCommand=function(self)
self:playcommand("Set");
end;
GameplayLeadInChangedMessageCommand=function(self)
self:playcommand("Set");
end;
SetCommand=function(self)
self:visible(GAMESTATE:GetGameplayLeadIn());
end;
InitCommand=cmd(playcommand, "Set");
GameplayLeadInChangedMessageCommand=cmd(playcommand,"Set");
SetCommand=cmd(visible,GAMESTATE:GetGameplayLeadIn());
};
LoadActor( "_Tap Receptor", NOTESKIN:LoadActor(Var "Button", "Go Receptor") ) .. {
@@ -22,14 +16,8 @@ return Def.ActorFrame {
{ Frame = 2; };
};
InitCommand=function(self)
self:playcommand("Set");
end;
GameplayLeadInChangedMessageCommand=function(self)
self:playcommand("Set");
end;
SetCommand=function(self)
self:visible(not GAMESTATE:GetGameplayLeadIn());
end;
InitCommand=cmd(playcommand, "Set");
GameplayLeadInChangedMessageCommand=cmd(playcommand,"Set");
SetCommand=cmd(visible,not GAMESTATE:GetGameplayLeadIn());
};
}
+1 -3
View File
@@ -1,9 +1,7 @@
local File = ...;
return LoadActor( File ) .. {
InitCommand=function(self)
self:playcommand("Lift");
end;
InitCommand=cmd(playcommand,"Lift");
ReverseOnCommand=NOTESKIN:GetMetricA("Press", "ReverseOnCommand");
ReverseOffCommand=NOTESKIN:GetMetricA("Press", "ReverseOffCommand");
PressCommand=NOTESKIN:GetMetricA("Press", "PressCommand");