Advertisement
Jousway

how do I make this update lol

Jul 3rd, 2012
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local t = Def.ActorFrame {
  2.    
  3.     -- noteskin part
  4.     LoadActor( THEME:GetPathB("_noteskinstuff/bottom",ntype) ) .. {
  5.         Name="Fill";
  6.         InitCommand=cmd(y,SCREEN_CENTER_Y-100;x,SCREEN_CENTER_X+180;diffuse,1,0,0,1);
  7.     };
  8.     Def.Sprite {
  9.         Texture=( THEME:GetPathB("_noteskinstuff/top",ntype) );
  10.         InitCommand=cmd(y,SCREEN_CENTER_Y-100;x,SCREEN_CENTER_X+180);
  11.     };
  12. };
  13.  
  14.  
  15. -- update function to change it actively
  16. local function Update(self)
  17.     local ntype;
  18.  
  19.     if GetUserPref("NoteskinType") == "5" then
  20.         ntype = "part bar";
  21.     elseif GetUserPref("NoteskinType") == "4" then
  22.         ntype = "part circle";
  23.     elseif GetUserPref("NoteskinType") == "3" then
  24.         ntype = "part ITGC";
  25.     elseif GetUserPref("NoteskinType") == "2" then
  26.         ntype = "part ITGM";
  27.     else
  28.         ntype = "part DDR";
  29.     end;
  30. end;
  31.  
  32. t.InitCommand=cmd(SetUpdateFunction,Update);
  33.  
  34. return t;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement