I am trying to create a menu, just a template, that allows you to select options and view the selected option based on its color. I have not put in lines with Goto's to follow selection, right now I'm just trying to work out the menu. So far I think it should be working, but the menu just wont operate correctly. The selected option wont move past 'Option 2', except when you press up, it flickers onto option 6 and then back to 2. I have tried reviewing the code to work out kinks, But I just don't know enough basic to do this myself. Please help! Here is the code(I imported it into sourcecoder so if there are errors im sorry), and a screenshot:
Code:
Code:
DelVar ADelVar BDelVar CDelVar DDelVar EDelVar F
DelVar {Y1}DelVar {Y2}DelVar {Y3}DelVar {Y4}DelVar {Y5}DelVar {Y6}DelVar {Y7}DelVar {Y8}DelVar {Y9}DelVar {Y0}
AxesOff
BackgroundOff
ClrDraw
ZStandard
1->B:0->K
getKey->K
While K!=45
getKey->K
If K=34 and B=6:Then:0->K:1->B:End
If K=25 and B=1:Then:0->K:6->B:End
If K=34 and B<6:Then:0->K:B+1->B:End
If K=25 and B>1:Then:0->K:B-1->B:End
If B=1:Then:1->A:2->B:2->B:2->D:2->E:2->F:End
If B=2:Then:2->A:1->B:2->C:2->D:2->E:2->F:End
If B=3:Then:2->A:2->B:1->C:2->D:2->E:2->F:End
If B=4:Then:2->A:2->B:2->C:1->D:2->E:2->F:End
If B=5:Then:2->A:2->B:2->C:2->D:1->E:2->F:End
If B=6:Then:2->A:2->B:2->C:2->D:2->E:1->F:End
If A=1:TextColor(Red
If A=2:TextColor(Blue
Text(~1,10,10,"Option 1
If B=1:TextColor(Red
If B=2:TextColor(Blue
Text(~1,30,10,"Option 2
If C=1:TextColor(Red
If C=2:TextColor(Blue
Text(~1,50,10,"Option 3
If D=1:TextColor(Red
If D=2:TextColor(Blue
Text(~1,70,10,"Option 4
If E=1:TextColor(Red
If E=2:TextColor(Blue
Text(~1,90,10,"Option 5
If F=1:TextColor(Red
If F=2:TextColor(Blue
Text(~1,110,10,"Option 6
End