Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. --I'm working on a text that updates when scrolling through the Groups setting the text as the titles of the groups
  2. --Where do I put SCREENMAN:GetTopScreen():GetChild("MusicWheel")? I know I have to call it to use the WheelBase.
  3.  
  4. for count=1,30 do
  5. --Group Name
  6. t[#t+1] = Def.ActorFrame {
  7.     LoadFont(UseFont) .. {
  8.     InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomx,0.75;horizalign,center;horizalign,center);
  9.     OnCommand=function(self)
  10.     if WheelBase:GetSelectedType() == "WheelDataItemType_Section" then
  11.         self:playcommand("Set")
  12.     SetCommand=function(self)
  13.         local group = WheelBase:GetWheelItem();
  14.          if group[count] then
  15.          self:visible(true):settext(group[count]:GetText());
  16.                 else
  17.             self:settext("");
  18.             self:playcommand("Refresh");
  19.                 end;
  20.             end;
  21.                 else self:visible(false)
  22.                 end;
  23.             end;
  24.         };
  25.     };
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement