findplayer.menu 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // FIND PLAYER POPUP MENU
  4. //
  5. // Screen for finding which server has a particular player
  6. //
  7. //----------------------------------------------------------------------------------------------
  8. {
  9. menuDef
  10. {
  11. name "findplayer_popmenu"
  12. visible 0
  13. fullscreen 0
  14. outOfBoundsClick // this closes the window if it gets a click out of the rectangle
  15. rect 125 60 390 360
  16. focusColor 1 1 1 1 // Focus color for text and items
  17. style 1
  18. border 1
  19. descX 320
  20. descY 400
  21. descScale 1
  22. descColor 1 .682 0 .8
  23. descAlignment ITEM_ALIGN_CENTER
  24. popup
  25. onOpen
  26. {
  27. uiScript FindPlayer
  28. setfocus nameField
  29. }
  30. onESC
  31. {
  32. play "sound/interface/esc.wav" ;
  33. close findplayer_popmenu
  34. }
  35. //----------------------------------------------------------------------------------------------
  36. // MENU BACKGROUND
  37. //----------------------------------------------------------------------------------------------
  38. itemDef
  39. {
  40. name setup_background
  41. group none
  42. style WINDOW_STYLE_FILLED
  43. rect 0 0 390 380
  44. backcolor 0 0 .35 .9
  45. forecolor 1 1 1 1
  46. border 1
  47. bordercolor 0 0 .8 1
  48. visible 1
  49. decoration
  50. }
  51. //---------------------------------------------
  52. // TITLE
  53. //---------------------------------------------
  54. // title
  55. itemDef
  56. {
  57. name screenTitle
  58. text @MENUS_FIND_PLAYER
  59. style WINDOW_STYLE_SHADER
  60. background "gfx/menus/menu_blendbox"
  61. rect 25 5 340 20
  62. font 3
  63. textscale 0.7
  64. textalign ITEM_ALIGN_CENTER
  65. textalignx 170
  66. textaligny 1
  67. forecolor .549 .854 1 1
  68. visible 1
  69. decoration
  70. }
  71. //---------------------------------------------
  72. // PLAYER NAME
  73. //---------------------------------------------
  74. itemDef
  75. {
  76. name nameTitle
  77. text @MENUS_NAME1
  78. style 0
  79. decoration
  80. font 2
  81. textscale .9
  82. rect 25 30 90 25
  83. textalign ITEM_ALIGN_RIGHT
  84. textalignx 85
  85. textaligny 0
  86. forecolor .549 .854 1 1
  87. visible 1
  88. }
  89. itemDef
  90. {
  91. name nameEntry
  92. style 1
  93. descText @MENUS_INPUT_PLAYER_NAME
  94. text @MENUS_BLANK_1
  95. maxchars 15
  96. font 2
  97. textscale .9
  98. type ITEM_TYPE_EDITFIELD
  99. cvar "ui_findplayer"
  100. rect 115 30 250 25
  101. textalign ITEM_ALIGN_LEFT
  102. textalignx 5
  103. textaligny 0
  104. forecolor 1 1 1 1
  105. backcolor .25 .25 .25 .5
  106. border 1
  107. bordercolor .79 .64 .22 1
  108. visible 1
  109. action
  110. {
  111. ui_script FindPlayer
  112. }
  113. mouseenter
  114. {
  115. setitemcolor nameEntry backcolor .25 .25 .25 .75
  116. }
  117. mouseexit
  118. {
  119. setitemcolor nameEntry backcolor .25 .25 .25 .5
  120. }
  121. }
  122. //---------------------------------------------
  123. // LIST OF SERVER NAMES
  124. //---------------------------------------------
  125. itemDef
  126. {
  127. name serverNameList
  128. rect 25 60 340 90
  129. type ITEM_TYPE_LISTBOX
  130. style WINDOW_STYLE_FILLED
  131. elementwidth 120
  132. elementheight 16
  133. font 2
  134. textscale .8
  135. backcolor 0 0 0 0.5
  136. outlinecolor .1 .1 .7 .5
  137. border 1
  138. bordersize 1
  139. bordercolor .5 .5 .5 1
  140. elementtype LISTBOX_TEXT
  141. feeder FEEDER_FINDPLAYER
  142. visible 1
  143. textaligny 12
  144. mouseenter
  145. {
  146. setitemcolor serverNameWindow bordercolor .7 0 0 1
  147. }
  148. mouseexit
  149. {
  150. setitemcolor serverNameWindow bordercolor .5 .5 .5 1
  151. }
  152. }
  153. itemDef
  154. {
  155. name serverNameWindow
  156. rect 25 60 340 90
  157. style 1
  158. backcolor 0 0 0 0
  159. forecolor 0 0 0 0
  160. border 1
  161. bordersize 1
  162. bordercolor .5 .5 .5 1
  163. visible 1
  164. decoration
  165. }
  166. itemDef
  167. {
  168. name serversFoundMsg
  169. cvar "ui_playerServersFound"
  170. type 0
  171. style 0
  172. background "gfx/menus/menu_blendbox"
  173. rect 5 360 390 30
  174. font 3
  175. textscale .6
  176. textalign ITEM_ALIGN_LEFT
  177. textalignx 0
  178. textaligny 1
  179. forecolor .549 .854 1 1
  180. visible 1
  181. decoration
  182. }
  183. //---------------------------------------------
  184. // LIST OF SERVER STATUS INFORMATION
  185. //---------------------------------------------
  186. itemDef
  187. {
  188. name serverInfoList
  189. rect 25 160 340 150
  190. type ITEM_TYPE_LISTBOX
  191. style WINDOW_STYLE_FILLED
  192. elementwidth 120
  193. elementheight 16
  194. font 2
  195. textscale .7
  196. backcolor 0 0 0 1
  197. border 1
  198. bordersize 1
  199. bordercolor .5 .5 .5 1
  200. elementtype LISTBOX_TEXT
  201. feeder FEEDER_SERVERSTATUS
  202. notselectable
  203. visible 1
  204. columns 4 2 40 120
  205. 40 40 180
  206. 90 40 180
  207. 135 40 180
  208. mouseenter
  209. {
  210. setitemcolor serverInfowindow bordercolor .7 0 0 1
  211. }
  212. mouseexit
  213. {
  214. setitemcolor serverInfowindow bordercolor .5 .5 .5 1
  215. }
  216. }
  217. itemDef
  218. {
  219. name serverInfowindow
  220. rect 25 160 340 150
  221. style 1
  222. backcolor 0 0 0 0
  223. forecolor 0 0 0 0
  224. border 1
  225. bordersize 1
  226. bordercolor .5 .5 .5 1
  227. visible 1
  228. decoration
  229. }
  230. //----------------------------------------------------------------------------------------------
  231. // BUTTONS
  232. //----------------------------------------------------------------------------------------------
  233. itemDef
  234. {
  235. name button_glow
  236. group none
  237. style WINDOW_STYLE_SHADER
  238. rect 0 0 0 0
  239. background "gfx/menus/menu_buttonback"
  240. forecolor 1 1 1 1
  241. visible 0
  242. decoration
  243. }
  244. itemDef
  245. {
  246. name search
  247. text @MENUS_SEARCH_CAPS
  248. descText @MENUS_SEARCH_DESC
  249. type 1
  250. font 3
  251. textscale .8
  252. style WINDOW_STYLE_FILLED
  253. rect 15 310 120 30
  254. textalign ITEM_ALIGN_CENTER
  255. textalignx 60
  256. textaligny 5
  257. forecolor 1 .682 0 1
  258. visible 1
  259. action
  260. {
  261. play "sound/interface/button1.wav" ;
  262. ui_script FindPlayer
  263. }
  264. mouseEnter
  265. {
  266. show button_glow
  267. setitemrect button_glow 15 312 150 26
  268. }
  269. mouseExit
  270. {
  271. hide button_glow
  272. }
  273. }
  274. itemDef
  275. {
  276. name doneText
  277. text @MENUS_DONE_CAPS
  278. descText @MENUS_DONE_DESC
  279. type 1
  280. font 3
  281. textscale .8
  282. style WINDOW_STYLE_FILLED
  283. rect 135 310 120 30
  284. textalign ITEM_ALIGN_CENTER
  285. textalignx 60
  286. textaligny 5
  287. forecolor 1 .682 0 1
  288. visible 1
  289. action
  290. {
  291. play "sound/interface/button1.wav" ;
  292. close findplayer_popmenu
  293. }
  294. mouseEnter
  295. {
  296. show button_glow
  297. setitemrect button_glow 115 312 160 26
  298. }
  299. mouseExit
  300. {
  301. hide button_glow
  302. }
  303. }
  304. itemDef
  305. {
  306. name join
  307. text @MENUS_JOIN_CAPS
  308. descText @MENUS_JOIN_PLAYER_DESC
  309. type 1
  310. font 3
  311. textscale .8
  312. style WINDOW_STYLE_FILLED
  313. rect 255 310 120 30
  314. textalign ITEM_ALIGN_CENTER
  315. textalignx 60
  316. textaligny 5
  317. forecolor 1 .682 0 1
  318. visible 1
  319. action
  320. {
  321. play "sound/interface/button1.wav" ;
  322. ui_script FoundPlayerJoinServer
  323. }
  324. mouseEnter
  325. {
  326. show button_glow
  327. setitemrect button_glow 235 312 160 26
  328. }
  329. mouseExit
  330. {
  331. hide button_glow
  332. }
  333. }
  334. }
  335. }