Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Enumeration
  2. #WIN_MAIN
  3. #BUTTON_CLOSE
  4. #Button_Gay
  5. #Button_Fem
  6. #Button_Duke
  7. #Sound_Orig = 1
  8. #Sound_Fem
  9. #Sound_Gay
  10. #Sound_Duke
  11. EndEnumeration
  12. UseOGGSoundDecoder()
  13. Global Quit.b = #False
  14. #FLAGS = #PB_Window_SystemMenu | #PB_Window_ScreenCentered
  15. If InitSound()
  16.   CatchSound(#Sound_orig, ?SoundOrig)
  17.   CatchSound(#Sound_Gay, ?SoundGay)
  18.  
  19. If OpenWindow(#WIN_MAIN, 0, 0, 300, 200, "Gary's Mod 1.0 GOTY Edition", #FLAGS)
  20. ButtonGadget(#BUTTON_CLOSE, 10, 35, 280, 160, "RAGEQUIT!")
  21. ButtonGadget(#Button_Gay, 10, 10, 90, 20, "Flamboyant")
  22. ButtonGadget(#Button_Fem, 105, 10, 90, 20, "Female")
  23. ButtonGadget(#Button_Duke, 200, 10, 90, 20, "Duke")
  24. Repeat
  25. Event.l = WaitWindowEvent()
  26. Select Event
  27. Case #PB_Event_Gadget
  28.   Select EventGadget()
  29.     Case #Button_Gay
  30.       sound.b = 1
  31.   Case #BUTTON_CLOSE
  32.     If sound = 0
  33.   PlaySound (#Sound_Orig)
  34.   Delay (2150)
  35.   Quit = #True
  36.   EndIf
  37.   If sound = 1
  38.     PlaySound (#Sound_Gay)
  39.   Delay (2150)
  40.   Quit = #True
  41. EndIf
  42.  
  43. EndSelect
  44. EndSelect
  45. Until Event = #PB_Event_CloseWindow Or Quit = #True
  46. EndIf
  47. EndIf
  48. End
  49.  
  50. DataSection
  51.   SoundOrig:
  52.   IncludeBinary "r.wav"
  53.   SoundFem:
  54.   IncludeBinary "rage_quit_female.ogg"
  55.   SoundGay:
  56.   IncludeBinary "rage_quit_gay.ogg"
  57.   SoundDuke:
  58.   IncludeBinary "rage_quit_duke.ogg"
  59.   EndDataSection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement