defines.hpp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // Control types
  2. #define CT_STATIC 0
  3. #define CT_BUTTON 1
  4. #define CT_EDIT 2
  5. #define CT_SLIDER 3
  6. #define CT_COMBO 4
  7. #define CT_LISTBOX 5
  8. #define CT_TOOLBOX 6
  9. #define CT_CHECKBOXES 7
  10. #define CT_PROGRESS 8
  11. #define CT_HTML 9
  12. #define CT_STATIC_SKEW 10
  13. #define CT_ACTIVETEXT 11
  14. #define CT_TREE 12
  15. #define CT_STRUCTURED_TEXT 13
  16. #define CT_CONTEXT_MENU 14
  17. #define CT_CONTROLS_GROUP 15
  18. #define CT_SHORTCUT_BUTTON 16 // Arma 2 - textured button
  19. #define CT_XKEYDESC 40
  20. #define CT_XBUTTON 41
  21. #define CT_XLISTBOX 42
  22. #define CT_XSLIDER 43
  23. #define CT_XCOMBO 44
  24. #define CT_ANIMATED_TEXTURE 45
  25. #define CT_OBJECT 80
  26. #define CT_OBJECT_ZOOM 81
  27. #define CT_OBJECT_CONTAINER 82
  28. #define CT_OBJECT_CONT_ANIM 83
  29. #define CT_LINEBREAK 98
  30. #define CT_USER 99
  31. #define CT_MAP 100
  32. #define CT_MAP_MAIN 101
  33. #define CT_List_N_Box 102 // Arma 2 - N columns list box
  34. // Static styles
  35. #define ST_POS 0x0F
  36. #define ST_HPOS 0x03
  37. #define ST_VPOS 0x0C
  38. #define ST_LEFT 0x00
  39. #define ST_RIGHT 0x01
  40. #define ST_CENTER 0x02
  41. #define ST_DOWN 0x04
  42. #define ST_UP 0x08
  43. #define ST_VCENTER 0x0c
  44. #define CT_MAP_MAIN 101
  45. #define ST_PICTURE 48
  46. #define ST_TYPE 0xF0
  47. #define ST_SINGLE 0
  48. #define ST_MULTI 16
  49. #define ST_TITLE_BAR 32
  50. #define ST_PICTURE 48
  51. #define ST_FRAME 64
  52. #define ST_BACKGROUND 80
  53. #define ST_GROUP_BOX 96
  54. #define ST_GROUP_BOX2 112
  55. #define ST_HUD_BACKGROUND 128
  56. #define ST_TILE_PICTURE 144
  57. #define ST_WITH_RECT 160
  58. #define ST_LINE 176
  59. #define ST_SHADOW 0x100
  60. #define ST_NO_RECT 0x200 // this style works for CT_STATIC in conjunction with ST_MULTI
  61. #define ST_KEEP_ASPECT_RATIO 0x800
  62. #define ST_TITLE ST_TITLE_BAR + ST_CENTER
  63. // Slider styles
  64. #define SL_DIR 0x400
  65. #define SL_VERT 0
  66. #define SL_HORZ 0x400
  67. #define SL_TEXTURES 0x10
  68. // Listbox styles
  69. #define LB_TEXTURES 0x10
  70. #define LB_MULTI 0x20
  71. #define FontM "puristaMedium"
  72. #define COLOR_BROWN { 0.30, 0.25, 0.2, 0.75 }
  73. #define COLOR_GREEN { 0.2, 0.23, 0.18, 0.75 }
  74. #define COLOR_GREEN_ALPHA { 0.2, 0.23, 0.18, 0.4 }
  75. #define COLOR_GREEN_NOALPHA { 0.2, 0.23, 0.18, 1 }
  76. #define COLOR_LIGHTGREEN { 0.4, 0.55, 0.36, 0.4 }
  77. #define COLOR_LIGHTGRAY { 0.6, 0.6, 0.6, 0.8 }
  78. #define COLOR_LIGHTGRAY_ALPHA { 0.6, 0.6, 0.6, 0.55 }
  79. #define COLOR_WHITE { 1, 1, 1, 1 }
  80. #define COLOR_NOALPHA { 0, 0, 0, 0 }
  81. #define COLOR_BLUFOR { 0, 0.3, 1, 1 }
  82. #define COLOR_OPFOR { 1, 0, 0, 1 }
  83. #define COLOR_GUER { 0.5, 0.5, 0.5, 0.5 }
  84. #define COLOR_WHITE_TRANSP { 1, 1, 1, 0.5 }
  85. #define COLOR_BLACK { 0, 0, 0, 1 }
  86. #define COLOR_BLACK_ALPHA { 0, 0, 0, 0.85 }
  87. #define COLOR_BLUFOR_NOALPHA { 0, 0, 1, 1 }
  88. #define COLOR_OPFOR_NOALPHA { 1, 0, 0, 1 }
  89. #define COLOR_RED_DISABLED { 1,0,0,0.4 }
  90. #define COLOR_BLEEDOUT { 0.66,0,0,0.8 }
  91. #define COLOR_BRIGHTGREEN { 0.2,1,0.2,1 }
  92. #define SHADOW_X 0.0008
  93. #define SHADOW_Y 0.0011
  94. #define ICONE_SPACY 0.025
  95. #define BORDERSIZE 0.01
  96. #define MAP_IDC 10023