vid_warning.menu 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. //------------------------------------------------------------------------------------------------
  2. // VIDEO WARNING
  3. //
  4. //
  5. //------------------------------------------------------------------------------------------------
  6. {
  7. menuDef
  8. {
  9. name "videowarningMenu"
  10. visible 0
  11. fullScreen 1 // MENU_TRUE
  12. rect 100 120 440 320
  13. focusColor 1 1 1 1 // Focus color for text and items
  14. outOfBoundsClick // this closes the window if it gets a click out of the rectangle
  15. descX 320
  16. descY 360
  17. descScale 1
  18. descColor 1 .682 0 .8
  19. descAlignment ITEM_ALIGN_CENTER
  20. popup
  21. onESC
  22. {
  23. play "sound/interface/esc.wav"
  24. close all
  25. open setupMenu
  26. }
  27. onClose
  28. {
  29. }
  30. itemDef
  31. {
  32. name warn_background
  33. group none
  34. style WINDOW_STYLE_SHADER
  35. rect 100 120 440 300
  36. background "gfx/menus/menu_boxred" // Frame
  37. forecolor 1 1 1 1
  38. visible 1
  39. decoration
  40. }
  41. //----------------------------------------------------------------------------------------------
  42. // VIDEO WARNING
  43. //----------------------------------------------------------------------------------------------
  44. // Video Warning title
  45. itemDef
  46. {
  47. name vidwarn_title
  48. group vidwarn
  49. style WINDOW_STYLE_SHADER
  50. background "gfx/menus/menu_blendbox"
  51. text @MENUS_UNAPPLIED_VIDEO_CHANGES
  52. rect 120 130 400 20
  53. font 3
  54. textscale 1
  55. textalign ITEM_ALIGN_CENTER
  56. textalignx 200
  57. textaligny -3
  58. forecolor .549 .854 1 1
  59. visible 1
  60. decoration
  61. }
  62. itemDef
  63. {
  64. name vidwarn_text1
  65. group vidwarn
  66. text @MENUS_YOU_HAVE_MADE_CHANGES
  67. rect 210 240 220 20
  68. textalign ITEM_ALIGN_CENTER
  69. text2aligny 18
  70. textalignx 110
  71. font 2
  72. textscale 1
  73. forecolor 1 1 1 1
  74. visible 1
  75. decoration
  76. }
  77. itemDef
  78. {
  79. name vidwarn_text2
  80. group vidwarn
  81. text @MENUS_APPLY_THESE_CHANGES_OR
  82. rect 210 260 220 20
  83. textalign ITEM_ALIGN_CENTER
  84. textalignx 110
  85. font 2
  86. textscale 1
  87. forecolor 1 1 1 1
  88. visible 1
  89. decoration
  90. }
  91. itemDef
  92. {
  93. name vidwarn_no_button
  94. group vidwarn
  95. style WINDOW_STYLE_SHADER
  96. rect 180 380 120 24
  97. background "gfx/menus/menu_buttonback" // Frame around button
  98. forecolor 1 1 1 1
  99. decoration
  100. visible 0
  101. }
  102. // DISCARD button - return to Video Data screen
  103. itemDef
  104. {
  105. name vidwarn_no
  106. group vidwarn
  107. text @MENUS_DISCARD
  108. type ITEM_TYPE_BUTTON
  109. style WINDOW_STYLE_EMPTY
  110. rect 180 380 120 24
  111. font 2
  112. textscale 1
  113. textalign ITEM_ALIGN_CENTER
  114. textalignx 60
  115. textaligny -3
  116. descText @MENUS_DO_NOT_APPLY_CHANGES
  117. forecolor .79 .64 .22 1
  118. visible 1
  119. action
  120. {
  121. play "sound/interface/esc.wav"
  122. close "videowarningMenu" ;
  123. setcvar "ui_r_modified" 0 ;
  124. rundeferred ;
  125. }
  126. mouseEnter
  127. {
  128. show vidwarn_no_button
  129. }
  130. mouseExit
  131. {
  132. hide vidwarn_no_button
  133. }
  134. }
  135. itemDef
  136. {
  137. name vidwarn_yes_button
  138. group vidwarn
  139. style WINDOW_STYLE_SHADER
  140. rect 340 380 120 24
  141. background "gfx/menus/menu_buttonback" // Frame around button
  142. forecolor 1 1 1 1
  143. decoration
  144. visible 0
  145. }
  146. // APPLY button, use settings
  147. itemDef
  148. {
  149. name vidwarn_yes
  150. group vidwarn
  151. text @MENUS_APPLY
  152. type ITEM_TYPE_BUTTON
  153. style WINDOW_STYLE_EMPTY
  154. rect 340 380 120 24
  155. font 2
  156. textscale 1
  157. textalign ITEM_ALIGN_CENTER
  158. textalignx 60
  159. textaligny -3
  160. descText @MENUS_APPLY_CHANGES_AND_THEN
  161. forecolor .79 .64 .22 1
  162. visible 1
  163. action
  164. {
  165. play "sound/interface/button1.wav" ;
  166. uiScript updatevideosetup ;
  167. close all
  168. }
  169. mouseEnter
  170. {
  171. show vidwarn_yes_button
  172. }
  173. mouseExit
  174. {
  175. hide vidwarn_yes_button
  176. }
  177. }
  178. }
  179. }