Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --I'm working on a text that updates when scrolling through the Groups setting the text as the titles of the groups
- --Where do I put SCREENMAN:GetTopScreen():GetChild("MusicWheel")? I know I have to call it to use the WheelBase.
- for count=1,30 do
- --Group Name
- t[#t+1] = Def.ActorFrame {
- LoadFont(UseFont) .. {
- InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoomx,0.75;horizalign,center;horizalign,center);
- OnCommand=function(self)
- if WheelBase:GetSelectedType() == "WheelDataItemType_Section" then
- self:playcommand("Set")
- SetCommand=function(self)
- local group = WheelBase:GetWheelItem();
- if group[count] then
- self:visible(true):settext(group[count]:GetText());
- else
- self:settext("");
- self:playcommand("Refresh");
- end;
- end;
- else self:visible(false)
- end;
- end;
- };
- };
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement