Skip to content

Commit

Permalink
Merge pull request #79 from Jousway/etterna-noteskin
Browse files Browse the repository at this point in the history
Adding more Noteskin features.
  • Loading branch information
nico-abram authored Dec 10, 2017
2 parents 3805beb + b1e4b45 commit 555a283
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 0 deletions.
13 changes: 13 additions & 0 deletions NoteSkins/common/common/Fallback Explosion.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
local t = Def.ActorFrame {
LoadActor(NOTESKIN:GetPath("Fallback", "Overlayceptor" ));
NOTESKIN:LoadActor( Var "Button", "Hold Explosion" ) .. {
HoldingOnCommand=NOTESKIN:GetMetricA("HoldGhostArrow", "HoldingOnCommand");
HoldingOffCommand=NOTESKIN:GetMetricA("HoldGhostArrow", "HoldingOffCommand");
Expand All @@ -22,6 +23,12 @@ local t = Def.ActorFrame {
W3Command=NOTESKIN:GetMetricA("GhostArrowDim", "W3Command");
W2Command=NOTESKIN:GetMetricA("GhostArrowDim", "W2Command");
W1Command=NOTESKIN:GetMetricA("GhostArrowDim", "W1Command");
JudgmentCommand=cmd(finishtweening);
BrightCommand=cmd(visible,false);
DimCommand=cmd(visible,true);
};
NOTESKIN:LoadActor( Var "Button", "Held Explosion Dim" ) .. {
InitCommand=cmd(diffusealpha,0);
HeldCommand=NOTESKIN:GetMetricA("GhostArrowDim", "HeldCommand");
JudgmentCommand=function(self)
self:finishtweening()
Expand All @@ -42,6 +49,12 @@ local t = Def.ActorFrame {
W3Command=NOTESKIN:GetMetricA("GhostArrowBright", "W3Command");
W2Command=NOTESKIN:GetMetricA("GhostArrowBright", "W2Command");
W1Command=NOTESKIN:GetMetricA("GhostArrowBright", "W1Command");
JudgmentCommand=cmd(finishtweening);
BrightCommand=cmd(visible,true);
DimCommand=cmd(visible,false);
};
NOTESKIN:LoadActor( Var "Button", "Held Explosion Bright" ) .. {
InitCommand=cmd(diffusealpha,0);
HeldCommand=NOTESKIN:GetMetricA("GhostArrowBright", "HeldCommand");
JudgmentCommand=function(self)
self:finishtweening()
Expand Down
1 change: 1 addition & 0 deletions NoteSkins/common/common/Fallback Held Explosion Bright.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return NOTESKIN:LoadActor( Var "Button", "Tap Explosion Bright" );
1 change: 1 addition & 0 deletions NoteSkins/common/common/Fallback Held Explosion Dim.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return NOTESKIN:LoadActor( Var "Button", "Tap Explosion Bright" );
1 change: 1 addition & 0 deletions NoteSkins/common/common/Fallback Overlay Receptor.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_blank
31 changes: 31 additions & 0 deletions NoteSkins/common/common/Fallback Overlayceptor.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
local sButton = Var "Button"
local pn = Var "Player"

local Buttons = {
["Dance_Single"] = {
"Left",
"Down",
"Up",
"Right",
},
}

local getstyle = ToEnumShortString(GAMESTATE:GetCurrentStyle():GetStepsType())

print(getstyle)

local t = Def.ActorFrame {}

if sButton == Buttons[getstyle][1] then
fReceptor = {}
for i = 1,#Buttons[getstyle] do
t[#t+1] = NOTESKIN:LoadActor( Buttons[getstyle][i], "Overlay Receptor" )..{
InitCommand=function(self)
self:x((i-1)*64)
fReceptor[Buttons[getstyle][i]] = self;
end;
}
end
end

return t;
1 change: 1 addition & 0 deletions NoteSkins/common/common/Fallback Underlay Receptor.redir
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_blank
7 changes: 7 additions & 0 deletions NoteSkins/common/common/_Tap Lead-in Receptor.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
local sButton = Var "Button";

return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button", "Underlay Receptor") .. {
OnCommand=function() fReceptor[sButton]:queuecommand("On") end;
PressCommand=function() fReceptor[sButton]:queuecommand("Press") end;
LiftCommand=function() fReceptor[sButton]:queuecommand("Lift") end;
};
LoadActor( "_Tap Receptor", NOTESKIN:LoadActor(Var "Button", "Ready Receptor") ) .. {
Frames = {
{ Frame = 2; Delay = 1; };
Expand Down
File renamed without changes.

0 comments on commit 555a283

Please sign in to comment.