Talk:Kirby GUI/@comment-16153947-20140802022255/@comment-5106053-20140802040220

I'll try my best to get it done as soon as I can, but I still have alot to do actually, all that's really there is graphics for the buttons, I really don't think it'll be done by tomorrow.

Here's how a circular button press is going to be detected in my current version I'm working on:  @MAIN IF BUTTONTHEN GOSUB@BTN ELSE B=0 IF TCHST THEN GOSUB@TCH VSYNC 1 GOTO@MAIN @BTN B=BUTTON RETURN 'C[I,0]=isEnabled 'C[I,1]=controlType 'C[I,2]=xPosition 'C[I,3]=yPosition 'C[I,4]=width(rectangle type only)/radius(circle type only) @TCH FOR I=0TO NC-1 IF C[I,1]==1AND C[I,0]AND SQR(POW(C[I,2]-TCHX,2)+POW(C[I,3]-TCHY,2))<C[I,4]THEN B=B AND POW(2,I) NEXT