Advertisement
Jousway

SO MUCH CODE

Mar 26th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.99 KB | None | 0 0
  1. local t = Def.ActorFrame {
  2.    
  3.     -- hold body
  4.     Def.Sprite {
  5.         --Texture=( THEME:GetPathB("_noteskinstuff/hold",holdbody) );
  6.         Name="Hold Body";
  7.         InitCommand=cmd(y,SCREEN_CENTER_Y-64;x,SCREEN_CENTER_X+140);
  8.     };
  9.    
  10.     -- hold bottom
  11.     Def.Sprite {
  12.         --Texture=( THEME:GetPathB("_noteskinstuff/hold",holdend) );
  13.         Name="Hold End";
  14.         InitCommand=cmd(y,SCREEN_CENTER_Y+32;x,SCREEN_CENTER_X+140);
  15.     };
  16.    
  17.     -- roll body
  18.     Def.Sprite {
  19.         --Texture=( THEME:GetPathB("_noteskinstuff/hold",holdbody) );
  20.         Name="Roll Body";
  21.         InitCommand=cmd(y,SCREEN_CENTER_Y-64;x,SCREEN_CENTER_X+220);
  22.     };
  23.    
  24.     -- roll bottom
  25.     Def.Sprite {
  26.         --Texture=( THEME:GetPathB("_noteskinstuff/hold",holdend) );
  27.         Name="Roll End";
  28.         InitCommand=cmd(y,SCREEN_CENTER_Y+32;x,SCREEN_CENTER_X+220);
  29.     };
  30.    
  31.     --noteskin part
  32.     --Def.ActorFrame {
  33.     --  Name="Noteskin Container";
  34.     --  InitCommand=cmd(zoom,slim);
  35.         --for holds
  36.         Def.Sprite {
  37.             --Texture=( THEME:GetPathB("_noteskinstuff/bottom",ntype) );
  38.             Name="Noteskin Bottom1";
  39.             InitCommand=cmd(y,SCREEN_CENTER_Y-128;x,SCREEN_CENTER_X+140;diffuse,1,0,0,1);
  40.         };
  41.        
  42.         Def.Sprite {
  43.             --Texture=( THEME:GetPathB("_noteskinstuff/hold",ntype) );
  44.             Name="Noteskin Hold1";
  45.             InitCommand=cmd(y,SCREEN_CENTER_Y-128;x,SCREEN_CENTER_X+140);
  46.         };
  47.    
  48.         --for rolls
  49.         Def.Sprite {
  50.             --Texture=( THEME:GetPathB("_noteskinstuff/bottom",ntype) );
  51.             Name="Noteskin Bottom2";
  52.             InitCommand=cmd(y,SCREEN_CENTER_Y-128;x,SCREEN_CENTER_X+220;diffuse,0,0,1,1);
  53.         };
  54.    
  55.         Def.Sprite {
  56.             --Texture=( THEME:GetPathB("_noteskinstuff/hold",ntype) );
  57.             Name="Noteskin Hold2";
  58.             InitCommand=cmd(y,SCREEN_CENTER_Y-128;x,SCREEN_CENTER_X+220);
  59.         };
  60.     --};
  61. };
  62.  
  63.  
  64. -- update function to change it actively
  65. local function Update(self)
  66.  
  67.     local holdbody = self:GetChild("Hold Body");
  68.     local holdend = self:GetChild("Hold End");
  69.     local rollbody = self:GetChild("Roll Body");
  70.     local rollend = self:GetChild("Roll End");
  71.     local ntypeb1 = self:GetChild("Noteskin Bottom1");
  72.     local ntypeh1 = self:GetChild("Noteskin Hold1");
  73.     local ntypeb2 = self:GetChild("Noteskin Bottom2");
  74.     local ntypeh2 = self:GetChild("Noteskin Hold2");
  75.    
  76.     if GetUserPrefB("Slimmode") == true then
  77.         ntypeb1:zoomy("0.5");
  78.         ntypeh1:zoomy("0.5");
  79.         ntypeb2:zoomy("0.5");
  80.         ntypeh2:zoomy("0.5");
  81.     else
  82.         ntypeb1:zoomy("1");
  83.         ntypeh1:zoomy("1");
  84.         ntypeb2:zoomy("1");
  85.         ntypeh2:zoomy("1");
  86.     end;
  87.    
  88.  
  89.                        
  90.     if GetUserPref("NoteskinType") == "5" then
  91.         ntypeb1:Load( THEME:GetPathB("_noteskinstuff/bottom","part bar") );
  92.         ntypeh1:Load( THEME:GetPathB("_noteskinstuff/hold","part bar") );
  93.         ntypeb2:Load( THEME:GetPathB("_noteskinstuff/bottom","part bar") );
  94.         ntypeh2:Load( THEME:GetPathB("_noteskinstuff/hold","part bar") );
  95.         holdbody:zoomx("0.9");
  96.         holdend:zoomx("0.9");
  97.         rollbody:zoomx("0.9");
  98.         rollend:zoomx("0.9");
  99.         if GetUserPrefB("HoldBody") == true then
  100.             if GetUserPrefB("HoldEnd") == true then
  101.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  102.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","Bar") );
  103.             else
  104.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  105.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","Bar") );
  106.             end;
  107.         else
  108.             if GetUserPrefB("HoldEnd") == true then
  109.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","Bar") );
  110.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","Bar") );
  111.             else
  112.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","Bar") );
  113.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","Bar") );
  114.             end;
  115.         end;
  116.     elseif GetUserPref("NoteskinType") == "4" then
  117.         ntypeb1:Load( THEME:GetPathB("_noteskinstuff/bottom","part circle") );
  118.         ntypeh1:Load( THEME:GetPathB("_noteskinstuff/hold","part circle") );
  119.         ntypeb2:Load( THEME:GetPathB("_noteskinstuff/bottom","part circle") );
  120.         ntypeh2:Load( THEME:GetPathB("_noteskinstuff/hold","part circle") );
  121.         holdbody:zoomx("0.8");
  122.         holdend:zoomx("0.8");
  123.         rollbody:zoomx("0.8");
  124.         rollend:zoomx("0.8");
  125.         if GetUserPrefB("HoldBody") == true then
  126.             if GetUserPrefB("HoldEnd") == true then
  127.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  128.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","Circle") );
  129.             else
  130.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  131.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","Circle") );
  132.             end;
  133.         else
  134.             if GetUserPrefB("HoldEnd") == true then
  135.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","Circle") );
  136.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","Circle") );
  137.             else
  138.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","Circle") );
  139.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","Circle") );
  140.             end;
  141.         end;
  142.     elseif GetUserPref("NoteskinType") == "3" then
  143.         ntypeb1:Load( THEME:GetPathB("_noteskinstuff/bottom","part ITGC") );
  144.         ntypeh1:Load( THEME:GetPathB("_noteskinstuff/hold","part ITGC") );
  145.         ntypeb2:Load( THEME:GetPathB("_noteskinstuff/bottom","part ITGC") );
  146.         ntypeh2:Load( THEME:GetPathB("_noteskinstuff/hold","part ITGC") );
  147.         holdbody:zoomx("1");
  148.         holdend:zoomx("1");
  149.         rollbody:zoomx("1");
  150.         rollend:zoomx("1");
  151.         if GetUserPrefB("HoldBody") == true then
  152.             if GetUserPrefB("HoldEnd") == true then
  153.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  154.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","itgarrow1") );
  155.             else
  156.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  157.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","itgarrow2") );
  158.                 holdbody:SetAllStateDelays(1.1);
  159.                 holdend:SetAllStateDelays(1.1);
  160.             end;
  161.         else
  162.             if GetUserPrefB("HoldEnd") == true then
  163.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","ddrarrow2") );
  164.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","ddrarrow2") );
  165.             else
  166.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","ddrarrow1") );
  167.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","itgarrow") );
  168.                 holdbody:SetAllStateDelays(1.1);
  169.                 holdend:SetAllStateDelays(1.1);
  170.             end;
  171.         end;
  172.     elseif GetUserPref("NoteskinType") == "2" then
  173.         ntypeb1:Load( THEME:GetPathB("_noteskinstuff/bottom","part ITGM") );
  174.         ntypeh1:Load( THEME:GetPathB("_noteskinstuff/hold","part ITGM") );
  175.         ntypeb2:Load( THEME:GetPathB("_noteskinstuff/bottom","part ITGM") );
  176.         ntypeh2:Load( THEME:GetPathB("_noteskinstuff/hold","part ITGM") );
  177.         holdbody:zoomx("1");
  178.         holdend:zoomx("1");
  179.         rollbody:zoomx("1");
  180.         rollend:zoomx("1");
  181.         if GetUserPrefB("HoldBody") == true then
  182.             if GetUserPrefB("HoldEnd") == true then
  183.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  184.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","itgarrow1") );
  185.             else
  186.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  187.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","itgarrow2") );
  188.                 holdbody:SetAllStateDelays(1.1);
  189.                 holdend:SetAllStateDelays(1.1);
  190.             end;
  191.         else
  192.             if GetUserPrefB("HoldEnd") == true then
  193.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","ddrarrow2") );
  194.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","ddrarrow2") );
  195.             else
  196.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","ddrarrow1") );
  197.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","itgarrow") );
  198.                 holdbody:SetAllStateDelays(1.1);
  199.                 holdend:SetAllStateDelays(1.1);
  200.             end;
  201.         end;
  202.     else
  203.         ntypeb1:Load( THEME:GetPathB("_noteskinstuff/bottom","part DDR") );
  204.         ntypeh1:Load( THEME:GetPathB("_noteskinstuff/hold","part DDR") );
  205.         ntypeb2:Load( THEME:GetPathB("_noteskinstuff/bottom","part DDR") );
  206.         ntypeh2:Load( THEME:GetPathB("_noteskinstuff/hold","part DDR") );
  207.         holdbody:zoomx("1");
  208.         holdend:zoomx("1");
  209.         rollbody:zoomx("1");
  210.         rollend:zoomx("1");
  211.             if GetUserPrefB("HoldBody") == true then
  212.             if GetUserPrefB("HoldEnd") == true then
  213.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  214.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","itgarrow1") );
  215.             else
  216.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body ITG","itgarrow") );
  217.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom ITG","ddrarrow") );
  218.                 holdbody:SetAllStateDelays(1.1);
  219.                 holdend:SetAllStateDelays(1.1);
  220.             end;
  221.         else
  222.             if GetUserPrefB("HoldEnd") == true then
  223.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","ddrarrow2") );
  224.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","ddrarrow2") );
  225.             else
  226.                 holdbody:Load( THEME:GetPathB("_noteskinstuff/hold/body DDR","ddrarrow3") );
  227.                 holdend:Load( THEME:GetPathB("_noteskinstuff/hold/bottom DDR","ddrarrow1") );
  228.                 holdbody:SetAllStateDelays(1.1);
  229.                 holdend:SetAllStateDelays(1.1);
  230.             end;
  231.         end;
  232.     end;   
  233.    
  234. end;
  235.  
  236. t.InitCommand=cmd(SetUpdateFunction,Update);
  237.  
  238. return t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement