ingamevid_warning.menu 4.3 KB

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