Update Pump noteskins (thanks Daisu)

This commit is contained in:
AJ Kelly
2010-03-01 00:36:07 -06:00
parent 60b86919ba
commit 1e9975dada
16 changed files with 81 additions and 113 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

@@ -1,30 +0,0 @@
local function Beat(self)
local this = self:GetChildren()
this.Glowpart:diffusealpha(0);
local beat = GAMESTATE:GetSongBeat()
local part = beat%1
local eff = scale(part,0,0.5,1,0)
if beat >=0 then
this.Glowpart:diffusealpha(eff);
end
end
return Def.ActorFrame {
InitCommand=cmd(SetUpdateFunction,Beat);
LoadActor("_receptor parts")..{
InitCommand=cmd(pause;setstate,2);
};
LoadActor("_receptor parts")..{
Name="Glowpart";
InitCommand=function(self)
--(NOTESKIN:GetMetricA("Receptor","BeatCommand"))(self);
self:pause();
self:setstate(5);
self:blend('BlendMode_Add');
end;
};
LoadActor("_receptor parts")..{
InitCommand=cmd(pause;setstate,8;zoom,1;diffusealpha,0;glow,1,1,1,0);
PressCommand=cmd(finishtweening;glow,1,1,1,1;zoom,1;linear,0.2;glow,1,1,1,0;zoom,1.2);
};
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

@@ -1,30 +0,0 @@
local function Beat(self)
local this = self:GetChildren()
this.Glowpart:diffusealpha(0);
local beat = GAMESTATE:GetSongBeat()
local part = beat%1
local eff = scale(part,0,0.5,1,0)
if beat >=0 then
this.Glowpart:diffusealpha(eff);
end
end
return Def.ActorFrame {
InitCommand=cmd(SetUpdateFunction,Beat);
LoadActor("_receptor parts")..{
InitCommand=cmd(pause;setstate,0);
};
LoadActor("_receptor parts")..{
Name="Glowpart";
InitCommand=function(self)
--(NOTESKIN:GetMetricA("Receptor","BeatCommand"))(self);
self:pause();
self:setstate(3);
self:blend('BlendMode_Add');
end;
};
LoadActor("_receptor parts")..{
InitCommand=cmd(pause;setstate,6;zoom,1;diffusealpha,0;glow,1,1,1,0);
PressCommand=cmd(finishtweening;glow,1,1,1,1;zoom,1;linear,0.2;glow,1,1,1,0;zoom,1.2);
};
}
@@ -0,0 +1 @@
return NOTESKIN:LoadActor("DownLeft","Tap Note");
+32 -7
View File
@@ -1,5 +1,6 @@
local Noteskin = ... or {} local Noteskin = ... or {}
--bBlanks:
Noteskin.bBlanks = { Noteskin.bBlanks = {
--["element"] = true|false; --["element"] = true|false;
["Hold Tail Active"] = true; ["Hold Tail Active"] = true;
@@ -8,8 +9,20 @@ Noteskin.bBlanks = {
Noteskin.ElementRedirs = { Noteskin.ElementRedirs = {
--["element"] = "redirected_element"; --["element"] = "redirected_element";
["Hold Head Active"] = "Tap Note"; ["Hold Head Active"] = "Tap Note";
["Hold Head Inactive"] = "Tap Note";
["Roll Head Active"] = "Tap Note"; ["Roll Head Active"] = "Tap Note";
["Roll Head Inactive"] = "Tap Note";
["Tap Fake"] = "Tap Note"; ["Tap Fake"] = "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 Inactive"] = "Roll Topcap Active";
["Roll Body Inactive"] = "Roll Body Active";
["Roll Bottomcap Inactive"] = "Roll Bottomcap Active";
["Roll Tail Inactive"] = "Roll Tail Active";
} }
Noteskin.ButtonRedirs = { Noteskin.ButtonRedirs = {
Center = "Center"; Center = "Center";
@@ -37,10 +50,6 @@ local function func()
local sButton = Var "Button" local sButton = Var "Button"
local sElement = Var "Element" local sElement = Var "Element"
--redir...
sElement = string.gsub(sElement,"Inactive","Active")
sElement = string.gsub(sElement,"inactive","active")
if Noteskin.bBlanks[sElement] then if Noteskin.bBlanks[sElement] then
return Def.Actor {} return Def.Actor {}
end end
@@ -51,16 +60,32 @@ local function func()
ElementToLoad = sElement ElementToLoad = sElement
end end
if sElement == "Explosion" or sElement == "Tap Lift" or sElement == "Tap Mine" then --update: ahora receptor también
if sElement == "Explosion"
or sElement == "Tap Lift"
or sElement == "Tap Mine"
or sElement == "Receptor"
then
sButton = "UpLeft" sButton = "UpLeft"
end end
local path = NOTESKIN:GetPath(Noteskin.ButtonRedirs[sButton],ElementToLoad) local path = NOTESKIN:GetPath(Noteskin.ButtonRedirs[sButton],ElementToLoad)
--sean holds o rollos pero que no sean cabezas ni colas, para tener gráficos separados por flechita :D --Graficos separados para holds y rolls
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") then
path = NOTESKIN:GetPath(sButton,ElementToLoad) path = NOTESKIN:GetPath(sButton,ElementToLoad)
end end
local t = LoadActor(path) local t = LoadActor(path)
--Rotaciones independientes por elemento
--[[local dRotationX = Noteskin.BaseRotX[sButton][ElementToLoad]
if not dRotationX then
dRotationX = Noteskin.BaseRotX[sButton]["Common"]
end
local dRotationY = Noteskin.BaseRotY[sButton][ElementToLoad]
if not dRotationY then
dRotationY = Noteskin.BaseRotY[sButton]["Common"]
end]]
t.BaseRotationX=Noteskin.BaseRotX[sButton] t.BaseRotationX=Noteskin.BaseRotX[sButton]
t.BaseRotationY=Noteskin.BaseRotY[sButton] t.BaseRotationY=Noteskin.BaseRotY[sButton]
+2 -27
View File
@@ -1,6 +1,6 @@
return Def.ActorFrame { return Def.ActorFrame {
NOTESKIN:LoadActor(Var "Button", "Tap Note") .. { NOTESKIN:LoadActor(Var "Button", "Tap Note") .. {
InitCommand=cmd(blend,"BlendMode_Add";zoom,0;queuecommand,"Glow"); InitCommand=cmd(blend,"BlendMode_Add";playcommand,"Glow");
W1Command=cmd(playcommand,"Glow"); W1Command=cmd(playcommand,"Glow");
W2Command=cmd(playcommand,"Glow"); W2Command=cmd(playcommand,"Glow");
W3Command=cmd(playcommand,"Glow"); W3Command=cmd(playcommand,"Glow");
@@ -9,33 +9,8 @@ return Def.ActorFrame {
HoldingOnCommand=cmd(playcommand,"Glow"); HoldingOnCommand=cmd(playcommand,"Glow");
HitMineCommand=cmd(playcommand,"Glow"); HitMineCommand=cmd(playcommand,"Glow");
HeldCommand=cmd(playcommand,"Glow"); HeldCommand=cmd(playcommand,"Glow");
GlowCommand=cmd(setstate,0;finishtweening;diffusealpha,0.95;zoom,1;linear,0.15;zoom,1.15;linear,0.15;diffusealpha,0;zoom,1.30); 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);
}; };
LoadActor("_flash")..{
InitCommand=cmd(blend,"BlendMode_Add";zoom,0;queuecommand,"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,0.95;zoom,0.6;linear,0.15;zoom,0.65;linear,0.15;diffusealpha,0;zoom,0.7);
};
--this is supposed to be the "press" effect
--[[LoadActor("_receptor parts")..{
InitCommand=cmd(pause;diffusealpha,0.5;setstate,2);
ColumnJudgmentMessageCommand=function(self,params)
self:finishtweening();
if params.TapNoteScore == 'TapNoteScore_W2' then
self:zoom(2);
self:linear(0.3);
self:zoom(0);
end
--cmd(finishtweening;zoom,2;linear,0.3;zoom,1);
end;
};]]
Def.Quad { Def.Quad {
InitCommand=cmd(diffuse,1,1,1,0;zoomto,SCREEN_WIDTH*100,SCREEN_HEIGHT*100;zoomz,SCREEN_WIDTH*SCREEN_HEIGHT); InitCommand=cmd(diffuse,1,1,1,0;zoomto,SCREEN_WIDTH*100,SCREEN_HEIGHT*100;zoomz,SCREEN_WIDTH*SCREEN_HEIGHT);
HitMineCommand=cmd(finishtweening;diffusealpha,1;linear,0.3;diffusealpha,0); HitMineCommand=cmd(finishtweening;diffusealpha,1;linear,0.3;diffusealpha,0);
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+25 -16
View File
@@ -1,30 +1,39 @@
local function Beat(self) local function Beat(self)
local this = self:GetChildren() local this = self:GetChildren()
this.Glowpart:diffusealpha(0); --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 beat = GAMESTATE:GetSongBeat()
local part = beat%1 local part = beat%1
local eff = scale(part,0,0.5,1,0) local eff = scale(part,0,0.5,1,0)
if beat >=0 then if beat >= 0 then
this.Glowpart:diffusealpha(eff); this.Glow:diffusealpha(eff);
end end
end end
return Def.ActorFrame { return Def.ActorFrame {
-- COMMANDS --
InitCommand=cmd(SetUpdateFunction,Beat); InitCommand=cmd(SetUpdateFunction,Beat);
LoadActor("_receptor parts")..{ -- LAYERS --
InitCommand=cmd(pause;setstate,1); NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Base";
InitCommand=cmd();
}; };
LoadActor("_receptor parts")..{ NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
Name="Glowpart"; Name="Glow";
InitCommand=function(self) InitCommand=cmd();
--(NOTESKIN:GetMetricA("Receptor","BeatCommand"))(self);
self:pause();
self:setstate(4);
self:blend('BlendMode_Add');
end;
}; };
LoadActor("_receptor parts")..{ NOTESKIN:LoadActor(Var "Button", "Ready Receptor")..{
InitCommand=cmd(pause;setstate,7;zoom,1;diffusealpha,0;glow,1,1,1,0); Name="Tap";
PressCommand=cmd(finishtweening;glow,1,1,1,1;zoom,1;linear,0.2;glow,1,1,1,0;zoom,1.2); InitCommand=NOTESKIN:GetMetricA(Var "Button" ,"ReceptorTapInitCommand");
PressCommand=NOTESKIN:GetMetricA(Var "Button" ,"ReceptorTapPressCommand");
}; };
} }
@@ -0,0 +1 @@
return NOTESKIN:LoadActor("UpLeft","Tap Note");
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

+20 -3
View File
@@ -17,11 +17,28 @@ FlipHoldBodyWhenReverse=1
TopHoldAnchorWhenReverse=0 TopHoldAnchorWhenReverse=0
HoldActiveIsAddLayer=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
[Center] [Center]
TapNoteAnimationLengthInBeats=1 TapNoteAnimationLengthInBeats=1
HoldHeadAnimationLengthInBeats=1 HoldHeadAnimationLengthInBeats=1
HoldTailAnimationLengthInBeats=1 HoldTailAnimationLengthInBeats=1
;useless [DownLeft]
[Receptor]
BeatCommand=blend,"BlendMode_Add";diffuseshift;effectclock,"beat";effecttiming,0,0,.5,.5 [DownRight]
[UpLeft]
[UpRight]
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB