dbasegui.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. //===========================================================================//
  2. // Copyright (C) Microsoft Corporation. All rights reserved. //
  3. //===========================================================================//
  4. //--------------------------------------------------------------------------------------
  5. //
  6. // MechCommander 2
  7. //
  8. // This header contains the base classes for the GUI
  9. //
  10. // GUI is now single update driven. An event comes in, the manager decides who its for
  11. // and passes the event down. Eveything still know how to draw etc.
  12. //
  13. // All drawing is done through gos_drawQuad and drawTriangle
  14. //
  15. // Basic cycle is
  16. // call gObject->update with this frame's events.
  17. // This will check the events to see if any pertain to me.
  18. // Draw anything to the texture plane that needs drawing.
  19. // Call any code which the events might have trigged.
  20. // call gObject->render with this frame's events.
  21. // This draws the object to the screen.
  22. // called in order of depth.
  23. //
  24. //--------------------------------------------------------------------------------------
  25. #ifndef DBASEGUI_H
  26. #define DBASEGUI_H
  27. //--------------------------------------------------------------------------------------
  28. // Include Files
  29. //--------------------------------------------------------------------------------------
  30. #define gtINVALID -1
  31. #define gtBACKGROUND 0
  32. #define gtBUTTON 1
  33. #define gtTEXT 2
  34. #define gtHOTTEXT 3
  35. #define gtEDIT 4
  36. #define gtCHECKBOX 5
  37. #define gtSPINNER 6
  38. #define gtLISTBOX 7
  39. #define gtTABCTRL 8
  40. #define gtDRAGOBJECT 9
  41. #define gtMENU 10
  42. #define gtDIALOG 11
  43. #define aMSG_NOTHING -1
  44. #define aMSG_MOUSE_OVER 0
  45. #define aMSG_BUTTON_DOWN 1
  46. #define aMSG_BUTTON_UP 2
  47. #define aMSG_BUTTON_GRAY 3
  48. #define aMSG_MOUSE_MOVE 4
  49. #define aMSG_SELCHANGE 5
  50. #define aMSG_CANCEL 6
  51. #define aMSG_OK 7
  52. #define aBTN_NEWCAMPAIGN 0
  53. #define aBTN_LOADMISSION 1
  54. #define aBTN_SAVEMISSION 2
  55. #define aBTN_MULTIPLAYER 3
  56. #define aBTN_PREFERENCES 4
  57. #define aBTN_OPENINGCIN 5
  58. #define aBTN_QUIT 6
  59. #define aBTN_RETURNGAME 7
  60. // Status bar interface colors
  61. #define SD_YELLOW ((0x00) + (0xff<<8) + (0xff<<16) + (0xff<<24))
  62. #define SD_RED ((0x00) + (0x00<<8) + (0xff<<16) + (0xff<<24))
  63. #define SD_GREEN ((0x00) + (0xff<<8) + (0x00<<16) + (0xff<<24))
  64. #define SD_BLUE ((0xff) + (0x00<<8) + (0x00<<16) + (0xff<<24))
  65. #define SD_ORANGE ((0x00) + (0x7f<<8) + (0xff<<16) + (0xff<<24))
  66. #define SD_WHITE ((0xff) + (0xff<<8) + (0xff<<16) + (0xff<<24))
  67. #define SD_GRAY ((0x3f) + (0x3f<<8) + (0x3f<<16) + (0xff<<24))
  68. #define SD_BLACK ((0x00) + (0x00<<8) + (0x00<<16) + (0xff<<24))
  69. #define SX_WHITE ((0xff) + (0xff<<8) + (0xff<<16) + (0xbf<<24))
  70. #define SX_CYAN ((0xff) + (0xff<<8) + (0x00<<16) + (0xbf<<24))
  71. #define SX_YELLOW ((0x00) + (0xff<<8) + (0xff<<16) + (0xbf<<24))
  72. #define SX_RED ((0x00) + (0x00<<8) + (0xff<<16) + (0xbf<<24))
  73. #define SX_GREEN ((0x00) + (0xff<<8) + (0x00<<16) + (0xbf<<24))
  74. #define SX_BLUE ((0xff) + (0x00<<8) + (0x00<<16) + (0xbf<<24))
  75. #define SX_ORANGE ((0x00) + (0x7f<<8) + (0xff<<16) + (0xbf<<24))
  76. #define SX_GRAY ((0x3f) + (0x3f<<8) + (0x3f<<16) + (0xbf<<24))
  77. #define SX_BLACK ((0x00) + (0x00<<8) + (0x00<<16) + (0xbf<<24))
  78. #define SB_YELLOW ((0x00) + (0xff<<8) + (0xff<<16) + (0x6f<<24))
  79. #define SB_RED ((0x00) + (0x00<<8) + (0xff<<16) + (0x6f<<24))
  80. #define SB_GREEN ((0x00) + (0xff<<8) + (0x00<<16) + (0x6f<<24))
  81. #define SB_BLUE ((0xff) + (0x00<<8) + (0x00<<16) + (0x6f<<24))
  82. #define SB_ORANGE ((0x00) + (0x7f<<8) + (0xff<<16) + (0x6f<<24))
  83. #define SB_WHITE ((0xff) + (0xff<<8) + (0xff<<16) + (0x6f<<24))
  84. #define SB_GRAY ((0x3f) + (0x3f<<8) + (0x3f<<16) + (0x6f<<24))
  85. #define SB_BLACK ((0x00) + (0x00<<8) + (0x00<<16) + (0x6f<<24))
  86. #define XP_YELLOW ((0x00) + (0xff<<8) + (0xff<<16) + (0x3f<<24))
  87. #define XP_RED ((0x00) + (0x00<<8) + (0xff<<16) + (0x3f<<24))
  88. #define XP_GREEN ((0x00) + (0xff<<8) + (0x00<<16) + (0x3f<<24))
  89. #define XP_BLUE ((0xff) + (0x00<<8) + (0x00<<16) + (0x3f<<24))
  90. #define XP_ORANGE ((0x00) + (0x7f<<8) + (0xff<<16) + (0x3f<<24))
  91. #define XP_WHITE ((0xff) + (0xff<<8) + (0xff<<16) + (0x3f<<24))
  92. #define XP_GRAY ((0x3f) + (0x3f<<8) + (0x3f<<16) + (0x3f<<24))
  93. #define XP_BLACK ((0x00) + (0x00<<8) + (0x00<<16) + (0x3f<<24))
  94. //--------------------------------------------------------------------------------------
  95. #endif