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