Advertisement
ThePJ120

SubMenu Example

Dec 31st, 2014
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //< Submenu 4
  2. :Submenu4_
  3. Function 0 2 0
  4. fPush_3.0
  5. StaticSet1 3
  6. push_1
  7. StaticSet1 8
  8. Call @DrawBackground_
  9. Call @DrawNormalOptionHighlight_
  10. PushString "Submenu 4"
  11. Call @AddTitle_
  12. fPush_1.0
  13. PushString "Option 1"
  14. Call @AddOption_
  15. fPush_2.0
  16. PushString "Option 2"
  17. Call @AddOption_
  18. fPush_3.0
  19. PushString "Option 3"
  20. Call @AddOption_
  21. //Highlight
  22. //The info box is not just limited to a whole submenu. You can display it on an option highlight as well.
  23. StaticGet1 2
  24. FtoI
  25. Switch [1=@Sub4High1_][2=@Sub4High2_][3=@Sub4High3_]
  26. :Sub4High1_
  27. PushString "Info Box Highlight 1"
  28. Call @AddInfoBox_
  29. Jump @Submenu4Options_
  30. :Sub4High2_
  31. PushString "Info Box Highlight 2"
  32. Call @AddInfoBox_
  33. Jump @Submenu4Options_
  34. :Sub4High3_
  35. PushString "Info Box Highlight 3"
  36. Call @AddInfoBox_
  37. //Options
  38. :Submenu4Options_
  39. Call @CheckAPressed_
  40. push_1
  41. JumpEQ @Submenu4Controller_
  42. Jump @EndSubmenu4_
  43. :Submenu4Controller_
  44. PushString "SELECT"
  45. Call @PlayFrontendSound_
  46. StaticGet1 2
  47. FtoI
  48. Switch [1=@Sub4Op1_][2=@Sub4Op2_][3=@Sub4Op3_]
  49. :Sub4Op1_
  50. Jump @EndSubmenu4_
  51. :Sub4Op2_
  52. Jump @EndSubmenu4_
  53. :Sub4Op3_
  54. Jump @EndSubmenu4_
  55. :EndSubmenu4_
  56. Return 0 0
  57. //>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement