spenk

Test

May 25th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("CCGUI")
  2.  
  3. def = CCGUI.newMenu()
  4.  
  5. b1 = CCGUI.newItem()
  6. b2 = CCGUI.newItem()
  7. b3 = CCGUI.newItem()
  8. b4 = CCGUI.newItem()
  9. b5 = CCGUI.newItem()
  10. b6 = CCGUI.newItem()
  11. b7 = CCGUI.newItem()
  12. b8 = CCGUI.newItem()
  13. b9 = CCGUI.newItem()
  14.  
  15.  
  16. b1:newName("[ 1]")
  17. b1:newType("bp1")
  18. b1:newColour(colours.magenta)
  19.  
  20. b2:newName("[ 0]")
  21. b2:newType("bp2")
  22. b2:newColour(colours.magenta)
  23.  
  24. b3:newName("[-1]")
  25. b3:newType("bp3")
  26. b3:newColour(colours.magenta)
  27.  
  28. b4:newName("[-2]")
  29. b4:newType("bp4")
  30. b4:newColour(colours.magenta)
  31.  
  32. b5:newName("[-3]")
  33. b5:newType("bp5")
  34. b5:newColour(colours.magenta)
  35.  
  36. b6:newName("[-4]")
  37. b6:newType("bp6")
  38. b6:newColour(colours.magenta)
  39.  
  40. b7:newName("[-5]")
  41. b7:newType("bp7")
  42. b7:newColour(colours.magenta)
  43.  
  44. b8:newName("[-6]")
  45. b8:newType("bp8")
  46. b8:newColour(colours.magenta)
  47.  
  48. b9:newName("[-7]")
  49. b9:newType("bp9")
  50. b9:newColour(colours.magenta)
  51.  
  52.  
  53. def:newItem(b1)
  54. def:newItem(b2)
  55. def:newItem(b3)
  56. def:newItem(b4)
  57. def:newItem(b5)
  58. def:newItem(b6)
  59. def:newItem(b7)
  60. def:newItem(b8)
  61. def:newItem(b9)
  62.  
  63. while true do
  64. bp = def:draw()
  65. if bp =="bp1" then CCGUI.msgBox({"Going to 1","They see me rollin","They waitin"}); end
  66. if bp =="bp2" then CCGUI.msgBox({"Going to 0"}); end
  67. if bp =="bp3" then CCGUI.msgBox({"Going to -1"}); end
  68. if bp =="bp4" then CCGUI.msgBox({"Going to -2"}); end
  69. if bp =="bp5" then CCGUI.msgBox({"Going to -3"}); end
  70. if bp =="bp6" then CCGUI.msgBox({"Going to -4"}); end
  71. if bp =="bp7" then CCGUI.msgBox({"Going to -5"}); end
  72. if bp =="bp8" then CCGUI.msgBox({"Going to -6"}); end
  73. if bp =="bp9" then CCGUI.msgBox({"Going to -7"}); end
  74. end
Advertisement
Add Comment
Please, Sign In to add comment