saberstyle.menu 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // SABER STYLE MENU - called from in game - allows player to change saber fighting style
  4. //
  5. //----------------------------------------------------------------------------------------------
  6. {
  7. menuDef
  8. {
  9. name "saberstyleMenu"
  10. fullScreen 1 // MENU_TRUE
  11. rect 0 0 640 480 // Size and position of the menu
  12. visible 1 // Visible on open
  13. focusColor 1 1 1 1 // Focus color for text and items
  14. descX 320
  15. descY 426
  16. descScale 1
  17. descColor 1 .682 0 .8
  18. descAlignment ITEM_ALIGN_CENTER
  19. onOpen
  20. {
  21. uiScript "getsabercvars"
  22. uiScript "updatefightingstylechoices"
  23. setfocus new_fightingstyle_button
  24. uiScript "saber_hilt"
  25. uiScript "saber_color"
  26. }
  27. onESC
  28. {
  29. play "sound/interface/esc.wav"
  30. uiScript "updatesabercvars"
  31. }
  32. //----------------------------------------------------------------------------------------------
  33. // MENU BACKGROUND
  34. //----------------------------------------------------------------------------------------------
  35. itemDef
  36. {
  37. name background
  38. group none
  39. style WINDOW_STYLE_SHADER
  40. rect 0 0 640 480
  41. background "gfx/menus/sabermenu_back"
  42. forecolor 1 1 1 1
  43. visible 1
  44. decoration
  45. }
  46. itemDef
  47. {
  48. name styleboxleft
  49. group none
  50. style WINDOW_STYLE_SHADER
  51. rect 127 53 198 40
  52. background "gfx/menus/sabermenu_stylebox_left"
  53. forecolor 1 1 1 1
  54. visible 1
  55. decoration
  56. }
  57. itemDef
  58. {
  59. name styleboxright
  60. group none
  61. style WINDOW_STYLE_SHADER
  62. rect 325 53 198 40
  63. background "gfx/menus/sabermenu_stylebox_right"
  64. forecolor 1 1 1 1
  65. visible 1
  66. decoration
  67. }
  68. itemDef
  69. {
  70. name styleboxleft
  71. group none
  72. style WINDOW_STYLE_SHADER
  73. rect 127 118 198 40
  74. background "gfx/menus/sabermenu_stylebox_left"
  75. forecolor 1 1 1 1
  76. visible 1
  77. decoration
  78. }
  79. itemDef
  80. {
  81. name styleboxright
  82. group none
  83. style WINDOW_STYLE_SHADER
  84. rect 325 118 198 40
  85. background "gfx/menus/sabermenu_stylebox_right"
  86. forecolor 1 1 1 1
  87. visible 1
  88. decoration
  89. }
  90. //----------------------------------------------------------------------------------------------
  91. // SABER MENU specific stuff
  92. //----------------------------------------------------------------------------------------------
  93. itemDef
  94. {
  95. name title_glow
  96. group none
  97. style WINDOW_STYLE_SHADER
  98. rect 100 26 440 24
  99. background "gfx/menus/menu_blendbox"
  100. forecolor 1 1 1 1
  101. visible 1
  102. decoration
  103. }
  104. // Screen title
  105. itemDef
  106. {
  107. name title
  108. group title
  109. style WINDOW_STYLE_EMPTY
  110. text @MENUS_CHOOSE_SABER_STYLE
  111. rect 100 30 440 16
  112. font 3
  113. textscale 0.8
  114. textalign ITEM_ALIGN_CENTER
  115. textalignx 225
  116. textaligny -1
  117. forecolor .549 .854 1 1
  118. visible 1
  119. decoration
  120. }
  121. //----------------------------------------------------------------------------------------------
  122. // SABER COMBAT STYLES
  123. //----------------------------------------------------------------------------------------------
  124. // Current fighting style
  125. itemDef
  126. {
  127. name fightingstylebutton1
  128. group none
  129. text @MENUS_CURRENT_STYLE
  130. descText @MENUS_ADDFIGHTINGSTYLE
  131. type ITEM_TYPE_MULTI
  132. style WINDOW_STYLE_EMPTY
  133. rect 140 60 0 0
  134. font 3
  135. textscale 1
  136. textalign ITEM_ALIGN_LEFT
  137. textstyle 1
  138. textalignx 0
  139. textaligny 0
  140. forecolor .549 .854 1 1
  141. cvar "ui_currentfightingstyle"
  142. cvarStrList
  143. {
  144. @MENUS_COMBATSTYLEFAST "0"
  145. @MENUS_COMBATSTYLEMEDIUM "1"
  146. @MENUS_COMBATSTYLEHEAVY "2"
  147. }
  148. visible 1
  149. }
  150. itemDef
  151. {
  152. name new_fightingstyle_button
  153. group none
  154. text @MENUS_NEW_STYLE
  155. descText @MENUS_ADDFIGHTINGSTYLE
  156. type ITEM_TYPE_MULTI
  157. style WINDOW_STYLE_EMPTY
  158. rect 140 125 380 24
  159. font 3
  160. textscale 1
  161. textalign ITEM_ALIGN_LEFT
  162. textstyle 1
  163. textalignx 0
  164. textaligny 0
  165. forecolor .615 .615 .956 1
  166. cvar "ui_newfightingstyle"
  167. cvarStrList
  168. {
  169. @MENUS_COMBATSTYLEFAST "0"
  170. @MENUS_COMBATSTYLEHEAVY "2"
  171. }
  172. visible 1
  173. mouseEnter
  174. {
  175. show button_glow
  176. setitemrect button_glow 180 124 380 26
  177. }
  178. mouseExit
  179. {
  180. hide button_glow
  181. }
  182. action
  183. {
  184. play "sound/interface/button1.wav"
  185. }
  186. }
  187. itemDef
  188. {
  189. name briefing_background
  190. group none
  191. style WINDOW_STYLE_FILLED
  192. rect 127 160 395 64
  193. backcolor 0 0 .35 .7
  194. forecolor 1 1 1 1
  195. border 1
  196. bordercolor 0 0 .8 1
  197. visible 1
  198. decoration
  199. }
  200. itemDef
  201. {
  202. name new_fightingstyle_desc
  203. group none
  204. type ITEM_TYPE_TEXTSCROLL
  205. text @SP_INGAME_FAST_STYLE
  206. style WINDOW_STYLE_EMPTY
  207. rect 130 162 392 60
  208. font 4
  209. textscale 1
  210. textalign ITEM_ALIGN_LEFT
  211. textstyle 1
  212. textalignx 0
  213. textaligny 0
  214. forecolor 1 1 1 1
  215. cvartest "ui_newfightingstyle"
  216. showcvar
  217. {
  218. "0"
  219. }
  220. lineHeight 14
  221. visible 1
  222. autowrapped
  223. }
  224. itemDef
  225. {
  226. name new_fightingstyle_desc
  227. group none
  228. type ITEM_TYPE_TEXTSCROLL
  229. text @SP_INGAME_STRONG_STYLE
  230. style WINDOW_STYLE_EMPTY
  231. rect 130 162 392 60
  232. font 4
  233. textscale 1
  234. textalign ITEM_ALIGN_LEFT
  235. textstyle 1
  236. textalignx 0
  237. textaligny 0
  238. forecolor 1 1 1 1
  239. cvartest "ui_newfightingstyle"
  240. showcvar
  241. {
  242. "2"
  243. }
  244. lineHeight 14
  245. visible 1
  246. autowrapped
  247. }
  248. //----------------------------------------------------------------------------------------------
  249. //SABER MODELS
  250. //----------------------------------------------------------------------------------------------
  251. itemDef
  252. {
  253. name saber
  254. group models
  255. type ITEM_TYPE_MODEL
  256. rect 12 -110 615 615
  257. asset_model "models/weapons2/saber_reborn/saber_w.glm"
  258. isSaber 1
  259. model_angle 180
  260. model_rotation 20
  261. model_g2mins 0 0 0
  262. model_g2maxs 20 20 20
  263. model_fovx 75
  264. model_fovy 75
  265. visible 1
  266. decoration
  267. }
  268. //----------------------------------------------------------------------------------------------
  269. // CONTINUE BUTTON
  270. //----------------------------------------------------------------------------------------------
  271. itemDef
  272. {
  273. name continue
  274. group none
  275. text @MENUS_CONTINUE
  276. descText @MENUS_NEW_MISSION_DESC
  277. type ITEM_TYPE_BUTTON
  278. style WINDOW_STYLE_EMPTY
  279. rect 455 444 130 24
  280. font 3
  281. textscale 1
  282. textalignx 65
  283. textaligny -1
  284. textalign ITEM_ALIGN_CENTER
  285. textstyle 3
  286. forecolor 1 .682 0 1
  287. visible 1
  288. action
  289. {
  290. uiScript "updatesabercvars"
  291. uiScript "updatefightingstyle"
  292. close all
  293. setcvar tier_storyinfo "7"
  294. setcvar storyhead "protocol"
  295. open ingameGotoTier
  296. // HACK We're expecting to go to a mission screen from here
  297. playvoice "sound/chars/storyinfo/7.mp3"
  298. }
  299. mouseEnter
  300. {
  301. show button_glow
  302. setitemrect button_glow 455 444 130 24
  303. }
  304. mouseExit
  305. {
  306. hide button_glow
  307. }
  308. }
  309. itemDef
  310. {
  311. name button_glow
  312. group mods
  313. style WINDOW_STYLE_SHADER
  314. rect 455 444 130 24
  315. background "gfx/menus/menu_buttonback"
  316. forecolor 1 1 1 1
  317. visible 0
  318. decoration
  319. }
  320. }
  321. }