custom_game_menu.ddh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. (include "button.ddh")
  2. # menu world
  3. (class world_custom_game_menu dd_world
  4. (group
  5. # background
  6. (def float bg_rotation)
  7. (def dd_meshColour bg)
  8. # menu buttons
  9. (def Button button[7])
  10. (def int buttonTotal)
  11. (def avdl_program buttonProgram)
  12. (def float buttonClickCol[3])
  13. (def float buttonActiveCol[3])
  14. (def float buttonInactiveCol[3])
  15. # number of players
  16. (def Button buttonPlayerNumber)
  17. (def Button buttonPlayerNumberValue)
  18. # starting player
  19. (def Button buttonStartingPlayer)
  20. (def Button buttonStartingPlayerValue)
  21. # text display
  22. (def Button textButton)
  23. # font
  24. (def dd_string3d font)
  25. (def int selection)
  26. (def int selectionClick)
  27. (def int isMovingToNewWorld)
  28. # custom game tweak values
  29. (def int numberOfPlayers)
  30. (def int startingPlayer)
  31. (def int hasGuide)
  32. (function void create (group))
  33. (function void onload (group))
  34. (function void resize (group))
  35. (function void update (group))
  36. (function void draw (group))
  37. (function void key_input (group char key))
  38. (function void mouse_input (group int button int type))
  39. (function void clean (group))
  40. )
  41. ) # menu world