local scene={} local selected-- Mod selected local function _modComp(a,b) return a.no0 then M.time=M.time-1 end else if M.time<10 then M.time=M.time+1 end end end end function scene.draw() setFont(40) GC.setLineWidth(5) for _,M in next,MODOPT do GC.push('transform') GC.translate(M.x,M.y) local t=M.time*.01-- t range:0~0.1 GC.scale(1+3*t) GC.rotate(t) local rad,side if M.unranked then rad,side=45,5 else rad=40 end local color=M.color GC.setColor(color[1],color[2],color[3],5*t) GC.circle('fill',0,0,rad,side) GC.setColor(color) GC.circle('line',0,0,rad,side) GC.setColor(COLOR.Z) GC.mStr(M.id,0,-27) if M.sel>0 and M.list then setFont(25) GC.setColor(1,1,1,10*t) GC.mStr(M.list[M.sel],20,8) setFont(40) end if M.list then GC.setColor(1,1,1,t*6) GC.arc('line','open',0,0,rad+6,0,(M.sel/#M.list)*6.2832) end GC.pop() end GC.setColor(COLOR.Z) if selected then setFont(30) GC.printf(text.modInfo[selected.name],70,540,950) else setFont(25) GC.printf(text.modInstruction,70,540,950) end end scene.widgetList={ WIDGET.newText{name='title', x=80,y=50,font=70,align='L'}, WIDGET.newText{name='unranked',x=1200,y=60,color='Y',font=50,align='R'}, WIDGET.newButton{name='reset', x=1140,y=540,w=170,h=80,font=25,code=pressKey'tab'}, WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,sound='back',font=60,fText=CHAR.icon.back,code=backScene}, } return scene