Advertisement
Guest User

Help mod_menu.menu

a guest
Apr 17th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. #include "ui/menudef.h"
  2.  
  3. #define ORIGIN_QUICKMESSAGETAB 32 224
  4. #define ORIGIN_QUICKMESSAGEWINDOW 32 256
  5.  
  6. {
  7. menuDef
  8. {
  9. name "tutorial_example_menu"
  10. fullscreen 0
  11. rect 0 0 640 480
  12. focuscolor 1 1 1 1
  13. disablecolor 0 0 0 0
  14. style WINDOW_STYLE_EMPTY
  15.  
  16. onOpen
  17. {
  18. setDvar cl_bypassMouseInput "1"
  19. }
  20. onClose
  21. {
  22. setDvar cl_bypassMouseInput "0"
  23. }
  24.  
  25. // WINDOW BACKGROUND
  26. itemDef
  27. {
  28. name "window_background"
  29. visible 1
  30. rect 0 0 224 192
  31. origin ORIGIN_QUICKMESSAGEWINDOW
  32. style WINDOW_STYLE_FILLED
  33. forecolor 1 1 1 1
  34. backcolor 0 0 0 0.7975
  35. decoration
  36. }
  37.  
  38. // WINDOW LINES
  39. itemDef
  40. {
  41. name "window_lines"
  42. visible 1
  43. rect 3 0 2 187
  44. origin ORIGIN_QUICKMESSAGEWINDOW
  45. style WINDOW_STYLE_FILLED
  46. backcolor 1 1 1 .125
  47. decoration
  48. }
  49. itemDef
  50. {
  51. name "window_lines"
  52. visible 1
  53. rect 219 0 2 187
  54. origin ORIGIN_QUICKMESSAGEWINDOW
  55. style WINDOW_STYLE_FILLED
  56. backcolor 1 1 1 .125
  57. decoration
  58. }
  59. itemDef
  60. {
  61. name "window_lines"
  62. visible 1
  63. rect 5 0 214 2
  64. origin ORIGIN_QUICKMESSAGEWINDOW
  65. style WINDOW_STYLE_FILLED
  66. backcolor 1 1 1 .125
  67. decoration
  68. }
  69. itemDef
  70. {
  71. name "window_lines"
  72. visible 1
  73. rect 3 187 218 2
  74. origin ORIGIN_QUICKMESSAGEWINDOW
  75. style WINDOW_STYLE_FILLED
  76. backcolor 1 1 1 .125
  77. decoration
  78. }
  79.  
  80. // TITLE
  81. itemDef
  82. {
  83. name "title"
  84. type ITEM_TYPE_TEXT
  85. visible 1
  86. rect 0 0 224 32
  87. origin ORIGIN_QUICKMESSAGETAB
  88. style WINDOW_STYLE_FILLED
  89. forecolor 1 1 1 1
  90. backcolor 0 0 0 0.7975
  91. text "This is the title"
  92. textfont UI_FONT_NORMAL
  93. textscale .24
  94. textaligny 24
  95. textalign ITEM_ALIGN_CENTER
  96. decoration
  97. }
  98. itemDef
  99. {
  100. name "title_quickmessage_gray"
  101. visible 1
  102. rect 3 3 218 29
  103. origin ORIGIN_QUICKMESSAGETAB
  104. style WINDOW_STYLE_FILLED
  105. backcolor 1 1 1 .125
  106. decoration
  107. }
  108.  
  109. itemDef
  110. {
  111. name "window"
  112. group ingamebox
  113. type ITEM_TYPE_TEXT
  114. visible 1
  115. rect 16 20 0 0
  116. origin ORIGIN_QUICKMESSAGEWINDOW
  117. forecolor 1 1 1 1
  118. textfont UI_FONT_NORMAL
  119. textscale .24
  120. textaligny 8
  121. text ^31. ^7Test
  122. decoration
  123. }
  124. execKey "1" { scriptMenuResponse ""give_l96a1_mod"; close tutorial_example_menu; }
  125.  
  126. itemDef
  127. {
  128. name "window"
  129. group ingamebox
  130. type ITEM_TYPE_TEXT
  131. visible 1
  132. rect 16 36 0 0
  133. origin ORIGIN_QUICKMESSAGEWINDOW
  134. forecolor 1 1 1 1
  135. textfont UI_FONT_NORMAL
  136. textscale .24
  137. textaligny 8
  138. text "@QUICKMESSAGE_2_MOVE_IN"
  139. decoration
  140. }
  141. execKey "2" { scriptMenuResponse "2"; close quickcommands }
  142.  
  143. itemDef
  144. {
  145. name "window"
  146. group ingamebox
  147. type ITEM_TYPE_TEXT
  148. visible 1
  149. rect 16 52 0 0
  150. origin ORIGIN_QUICKMESSAGEWINDOW
  151. forecolor 1 1 1 1
  152. textfont UI_FONT_NORMAL
  153. textscale .24
  154. textaligny 8
  155. text "@QUICKMESSAGE_3_FALL_BACK"
  156. decoration
  157. }
  158. execKey "3" { scriptMenuResponse "3"; close quickcommands }
  159.  
  160. itemDef
  161. {
  162. name "window"
  163. group ingamebox
  164. type ITEM_TYPE_TEXT
  165. visible 1
  166. rect 16 68 0 0
  167. origin ORIGIN_QUICKMESSAGEWINDOW
  168. forecolor 1 1 1 1
  169. textfont UI_FONT_NORMAL
  170. textscale .24
  171. textaligny 8
  172. text "@QUICKMESSAGE_4_SUPPRESSING_FIRE"
  173. decoration
  174. }
  175. execKey "4" { scriptMenuResponse "4"; close quickcommands }
  176.  
  177. itemDef
  178. {
  179. name "window"
  180. group ingamebox
  181. type ITEM_TYPE_TEXT
  182. visible 1
  183. rect 16 84 0 0
  184. origin ORIGIN_QUICKMESSAGEWINDOW
  185. forecolor 1 1 1 1
  186. textfont UI_FONT_NORMAL
  187. textscale .24
  188. textaligny 8
  189. text "@QUICKMESSAGE_5_ATTACK_LEFT_FLANK"
  190. decoration
  191. }
  192. execKey "5" { scriptMenuResponse "5"; close quickcommands }
  193.  
  194. itemDef
  195. {
  196. name "window"
  197. group ingamebox
  198. type ITEM_TYPE_TEXT
  199. visible 1
  200. rect 16 100 0 0
  201. origin ORIGIN_QUICKMESSAGEWINDOW
  202. forecolor 1 1 1 1
  203. textfont UI_FONT_NORMAL
  204. textscale .24
  205. textaligny 8
  206. text "@QUICKMESSAGE_6_ATTACK_RIGHT_FLANK"
  207. decoration
  208. }
  209. execKey "6" { scriptMenuResponse "6"; close quickcommands }
  210.  
  211. itemDef
  212. {
  213. name "window"
  214. group ingamebox
  215. type ITEM_TYPE_TEXT
  216. visible 1
  217. rect 16 116 0 0
  218. origin ORIGIN_QUICKMESSAGEWINDOW
  219. forecolor 1 1 1 1
  220. textfont UI_FONT_NORMAL
  221. textscale .24
  222. textaligny 8
  223. text "@QUICKMESSAGE_7_HOLD_THIS_POSITION"
  224. decoration
  225. }
  226. execKey "7" { scriptMenuResponse "7"; close quickcommands }
  227.  
  228. itemDef
  229. {
  230. name "window"
  231. group ingamebox
  232. type ITEM_TYPE_TEXT
  233. visible 1
  234. rect 16 132 0 0
  235. origin ORIGIN_QUICKMESSAGEWINDOW
  236. forecolor 1 1 1 1
  237. textfont UI_FONT_NORMAL
  238. textscale .24
  239. textaligny 8
  240. text "@QUICKMESSAGE_8_REGROUP"
  241. decoration
  242. }
  243. execKey "8" { scriptMenuResponse "8"; close quickcommands }
  244.  
  245. itemDef
  246. {
  247. name "window"
  248. type ITEM_TYPE_TEXT
  249. visible 1
  250. rect 16 148 0 0
  251. origin ORIGIN_QUICKMESSAGEWINDOW
  252. forecolor 1 1 1 1
  253. textfont UI_FONT_NORMAL
  254. textscale .24
  255. textaligny 8
  256. text "@QUICKMESSAGE_ESC_EXIT"
  257. decoration
  258. }
  259. }
  260. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement