Advertisement
Jousway

Down Receptor.lua -- ColSpacing

Feb 23rd, 2017
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.37 KB | None | 0 0
  1. --If a Command has "NOTESKIN:GetMetricA" in it, that means it gets the command from the metrics.ini, else use cmd(); to define command.
  2. --If you dont know how "NOTESKIN:GetMetricA" works here is an explanation.
  3. --NOTESKIN:GetMetricA("The [Group] in the metrics.ini", "The actual Command to fallback on in the metrics.ini");
  4. local sPlayer = Var "Player";
  5. local ColSpacing = 128;
  6.  
  7.  
  8. local t = Def.ActorFrame {
  9.     OnCommand=function()
  10.         local getc = SCREENMAN:GetTopScreen():GetChild("Player"..ToEnumShortString(sPlayer)):GetChild("NoteField"):get_column_actors()
  11.         for i2 in pairs(getc) do
  12.             local cs = ColSpacing - 64
  13.             getc[i2]:x((cs*i2)-(cs*2.5));
  14.         end;
  15.     end;
  16.     Def.Sprite {
  17.         Texture=NOTESKIN:GetPath( '_down', 'Go Receptor' );
  18.         Frame0000=0;
  19.         Delay0000=0.2;
  20.         Frame0001=1;
  21.         Delay0001=0.8;
  22.         InitCommand=cmd(effectclock,"beat");
  23.         NoneCommand=NOTESKIN:GetMetricA("ReceptorArrow", "NoneCommand");
  24.         PressCommand=NOTESKIN:GetMetricA("ReceptorArrow", "PressCommand");
  25.         LiftCommand=NOTESKIN:GetMetricA("ReceptorArrow", "LiftCommand");
  26.         W5Command=NOTESKIN:GetMetricA("ReceptorArrow", "W5Command");
  27.         W4Command=NOTESKIN:GetMetricA("ReceptorArrow", "W4Command");
  28.         W3Command=NOTESKIN:GetMetricA("ReceptorArrow", "W3Command");
  29.         W2Command=NOTESKIN:GetMetricA("ReceptorArrow", "W2Command");
  30.         W1Command=NOTESKIN:GetMetricA("ReceptorArrow", "W1Command");
  31.     };
  32. };
  33. return t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement