Fixed the issue related to trigging holdheads before they reach the receptor, at least I think that, more tests to be done (issue 150)
This commit is contained in:
@@ -1 +1,3 @@
|
||||
return NOTESKIN:LoadActor("DownLeft","Tap Note");
|
||||
return NOTESKIN:LoadActor("DownLeft","Tap Note")..{
|
||||
InitCommand=cmd(rotationy,180);
|
||||
};
|
||||
@@ -1,17 +1,19 @@
|
||||
local Noteskin = ... or {}
|
||||
local Noteskin = {}
|
||||
|
||||
--bBlanks:
|
||||
--bBlanks:
|
||||
Noteskin.bBlanks = {
|
||||
--["element"] = true|false;
|
||||
["Hold Tail Active"] = true;
|
||||
["Roll Tail Active"] = true;
|
||||
["Hold Tail Active"] = true;
|
||||
["Roll Tail Inactive"] = true;
|
||||
["Roll Tail Inactive"] = true;
|
||||
}
|
||||
Noteskin.ElementRedirs = {
|
||||
--["element"] = "redirected_element";
|
||||
["Hold Head Active"] = "Tap Note";
|
||||
["Hold Head Inactive"] = "Tap Note";
|
||||
["Roll Head Active"] = "Tap Note";
|
||||
["Roll Head Inactive"] = "Tap Note";
|
||||
["Roll Head Active"] = "Roll Head Active";
|
||||
["Roll Head Inactive"] = "Roll Head Active";
|
||||
["Tap Fake"] = "Tap Note";
|
||||
--
|
||||
["Hold Topcap Inactive"] = "Hold Topcap Active";
|
||||
@@ -19,17 +21,22 @@ Noteskin.ElementRedirs = {
|
||||
["Hold Bottomcap Inactive"] = "Hold Bottomcap Active";
|
||||
["Hold Tail Inactive"] = "Hold Tail Active";
|
||||
--
|
||||
["Roll Topcap Inactive"] = "Roll Topcap Active";
|
||||
["Roll Body Inactive"] = "Roll Body Active";
|
||||
["Roll Bottomcap Inactive"] = "Roll Bottomcap Active";
|
||||
["Roll Tail Inactive"] = "Roll 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";
|
||||
}
|
||||
Noteskin.ButtonRedirs = {
|
||||
Center = "Center";
|
||||
UpLeft = "UpLeft";
|
||||
UpRight = "UpLeft";
|
||||
UpRight = "UpRight";
|
||||
DownLeft = "DownLeft";
|
||||
DownRight = "DownLeft";
|
||||
DownRight = "DownRight";
|
||||
}
|
||||
Noteskin.BaseRotX = {
|
||||
Center = 0;
|
||||
@@ -41,9 +48,9 @@ Noteskin.BaseRotX = {
|
||||
Noteskin.BaseRotY = {
|
||||
Center = 0;
|
||||
UpLeft = 0;
|
||||
UpRight = 180;
|
||||
UpRight = 0;
|
||||
DownLeft = 0;
|
||||
DownRight = 180;
|
||||
DownRight = 0;
|
||||
}
|
||||
|
||||
local function func()
|
||||
@@ -71,6 +78,8 @@ local function func()
|
||||
local path = NOTESKIN:GetPath(Noteskin.ButtonRedirs[sButton],ElementToLoad)
|
||||
--Graficos separados para holds y rolls
|
||||
if string.find(sElement,"Hold") or string.find(sElement,"Roll") then
|
||||
--if ( string.find(sElement,"Hold") or string.find(sElement,"Roll") ) and not ( string.find(sElement,"Head") or string.find(sElement,"Tail") ) then
|
||||
--if ( string.find(sElement,"Hold") or string.find(sElement,"Roll") ) and ( string.find(sElement,"Body") ) then
|
||||
path = NOTESKIN:GetPath(sButton,ElementToLoad)
|
||||
end
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
return Def.ActorFrame {
|
||||
--note graphic
|
||||
NOTESKIN:LoadActor(Var "Button", "Tap Note") .. {
|
||||
InitCommand=cmd(blend,"BlendMode_Add";playcommand,"Glow");
|
||||
W1Command=cmd(playcommand,"Glow");
|
||||
@@ -6,10 +7,55 @@ return Def.ActorFrame {
|
||||
W3Command=cmd(playcommand,"Glow");
|
||||
W4Command=cmd();
|
||||
W5Command=cmd();
|
||||
HoldingOnCommand=cmd(playcommand,"Glow");
|
||||
--HoldingOnCommand=cmd(playcommand,"Glow");
|
||||
HitMineCommand=cmd(playcommand,"Glow");
|
||||
HeldCommand=cmd(playcommand,"Glow");
|
||||
GlowCommand=cmd(setstate,0;finishtweening;diffusealpha,1.0;zoom,1.0;linear,0.15;diffusealpha,0.9;zoom,1.1;linear,0.15;diffusealpha,0.0;zoom,1.2);
|
||||
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);
|
||||
};
|
||||
---[[
|
||||
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
|
||||
Name="Tap";
|
||||
Frames = { { Frame = 2 } };
|
||||
InitCommand=cmd(zoom,1;diffusealpha,0);
|
||||
--NOTESKIN:GetMetricA(Var "Button", "TapInitCommand");
|
||||
TapCommand=cmd(finishtweening;diffusealpha,1;zoom,1;linear,0.2;diffusealpha,0;zoom,1.2);
|
||||
--NOTESKIN:GetMetricA(Var "Button", "TapHeldCommand");
|
||||
|
||||
W1Command=cmd(playcommand,"Tap");
|
||||
W2Command=cmd(playcommand,"Tap");
|
||||
W3Command=cmd(playcommand,"Tap");
|
||||
W4Command=cmd(playcommand,"Tap");
|
||||
W5Command=cmd(playcommand,"Tap");
|
||||
|
||||
HitMineCommand=cmd(playcommand,"Tap");
|
||||
HeldCommand=cmd(playcommand,"Tap");
|
||||
|
||||
--NONECommand=cmd(playcommand,"Tap");
|
||||
|
||||
--HeldCommand=NOTESKIN:GetMetricA(Var "Button", "TapHeldCommand");
|
||||
--NoneCommand=cmd(linear,0.1;zoom,2);
|
||||
};
|
||||
--]]
|
||||
--explosion
|
||||
LoadActor("_stepfx")..{
|
||||
Frames = {
|
||||
{ Frame = 0 ; Delay = 0.05 };
|
||||
{ Frame = 1 ; Delay = 0.05 };
|
||||
{ Frame = 2 ; Delay = 0.05 };
|
||||
{ Frame = 3 ; Delay = 0.05 };
|
||||
{ Frame = 4 ; Delay = 0.05 };
|
||||
--WUT...
|
||||
{ Frame = 5 ; Delay = 99999 };
|
||||
};
|
||||
InitCommand=cmd(blend,"BlendMode_Add";setstate,0);
|
||||
W1Command=cmd(setstate,0);
|
||||
W2Command=cmd(setstate,0);
|
||||
W3Command=cmd(setstate,0);
|
||||
W4Command=cmd();
|
||||
W5Command=cmd();
|
||||
--HoldingOnCommand=cmd(setstate,0);
|
||||
HitMineCommand=cmd(setstate,0);
|
||||
HeldCommand=cmd(setstate,1);
|
||||
};
|
||||
Def.Quad {
|
||||
InitCommand=cmd(diffuse,1,1,1,0;zoomto,SCREEN_WIDTH*100,SCREEN_HEIGHT*100;zoomz,SCREEN_WIDTH*SCREEN_HEIGHT);
|
||||
|
||||
@@ -1,39 +1,49 @@
|
||||
local function Beat(self)
|
||||
local this = self:GetChildren()
|
||||
--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);
|
||||
local beat = GAMESTATE:GetSongBeat()
|
||||
|
||||
local part = beat%1
|
||||
part = clamp(part,0,0.5)
|
||||
local eff = scale(part,0,0.5,1,0)
|
||||
if beat >= 0 then
|
||||
this.Glow:diffusealpha(eff);
|
||||
if (GAMESTATE:GetSongDelay() 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";
|
||||
Condition=Var "Button" == "Center";
|
||||
--InitCommand=cmd(x,96);
|
||||
};
|
||||
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
|
||||
Name="Base";
|
||||
InitCommand=cmd();
|
||||
Frames = { { Frame = 0 } };
|
||||
--PressCommand=cmd(finishtweening;glow,1,1,1,1;linear,0.1;glow,1,1,1,0);
|
||||
};
|
||||
NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
|
||||
Name="Glow";
|
||||
InitCommand=cmd();
|
||||
Frames = { { Frame = 1 } };
|
||||
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";
|
||||
InitCommand=NOTESKIN:GetMetricA(Var "Button" ,"ReceptorTapInitCommand");
|
||||
PressCommand=NOTESKIN:GetMetricA(Var "Button" ,"ReceptorTapPressCommand");
|
||||
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 +1,3 @@
|
||||
return NOTESKIN:LoadActor("UpLeft","Tap Note");
|
||||
return NOTESKIN:LoadActor("UpLeft","Tap Note")..{
|
||||
InitCommand=cmd(rotationy,180);
|
||||
};
|
||||
@@ -17,23 +17,10 @@ FlipHoldBodyWhenReverse=1
|
||||
TopHoldAnchorWhenReverse=0
|
||||
HoldActiveIsAddLayer=0
|
||||
|
||||
;Explosion commands
|
||||
ButtonTapCommand=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
|
||||
|
||||
;you can go nuts now...
|
||||
FlashTapCommand=finishtweening;diffusealpha,0.5;zoom,1.0;linear,0.15;diffusealpha,0.45;zoom,1.15;linear,0.15;diffusealpha,0.0;zoom,1.3
|
||||
|
||||
;if you want/need diferent commands for each button, write the previous commands
|
||||
;under the correspondant button section in this metrics.ini
|
||||
|
||||
;ReceptorTap commands
|
||||
ReceptorTapInitCommand=zoom,1;diffusealpha,0;glow,1,1,1,0
|
||||
ReceptorTapPressCommand=finishtweening;glow,1,1,1,1;zoom,1;linear,0.2;glow,1,1,1,0;zoom,1.2
|
||||
TapInitCommand=zoom,1;diffusealpha,0;glow,1,1,1,0
|
||||
TapHeldCommand=finishtweening;glow,1,1,1,1;zoom,1;linear,0.2;glow,1,1,1,0;zoom,1.2
|
||||
|
||||
[Center]
|
||||
TapNoteAnimationLengthInBeats=1
|
||||
HoldHeadAnimationLengthInBeats=1
|
||||
HoldTailAnimationLengthInBeats=1
|
||||
|
||||
[DownLeft]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user