ingame_vote.menu 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // SERVER INFO MENU
  2. {
  3. menuDef
  4. {
  5. name "ingame_vote"
  6. visible 0
  7. fullscreen 0
  8. outOfBoundsClick // this closes the window if it gets a click out of the rectangle
  9. rect 430 40 80 68
  10. focusColor 1 1 1 1
  11. style 1
  12. border 1
  13. // Overall window backdrop
  14. itemDef
  15. {
  16. name background_pic
  17. group none
  18. style WINDOW_STYLE_SHADER
  19. rect 0 0 80 68
  20. background "gfx/menus/menu_box_ingame"
  21. forecolor 1 1 1 1
  22. visible 1
  23. decoration
  24. }
  25. itemDef
  26. {
  27. name button1
  28. group buttons
  29. style WINDOW_STYLE_SHADER
  30. rect 2 4 76 30
  31. background "gfx/menus/menu_buttonback" // Frame around button
  32. forecolor 1 1 1 1
  33. decoration
  34. visible 0
  35. }
  36. itemDef
  37. {
  38. name yes
  39. text @MENUS_YES
  40. type 1
  41. style 2
  42. rect 2 4 76 30
  43. textalign ITEM_ALIGN_CENTER
  44. textalignx 38
  45. textaligny 0
  46. font 2
  47. textscale 1
  48. forecolor 1 .682 0 1
  49. visible 1
  50. action
  51. {
  52. play "sound/interface/button1.wav" ;
  53. exec "vote yes" ;
  54. uiScript closeingame
  55. }
  56. mouseEnter
  57. {
  58. show button1
  59. }
  60. mouseExit
  61. {
  62. hide button1
  63. }
  64. }
  65. itemDef
  66. {
  67. name button2
  68. group buttons
  69. style WINDOW_STYLE_SHADER
  70. rect 2 34 76 30
  71. background "gfx/menus/menu_buttonback" // Frame around button
  72. forecolor 1 1 1 1
  73. decoration
  74. visible 0
  75. }
  76. itemDef
  77. {
  78. name no
  79. text @MENUS_NO
  80. type 1
  81. style 2
  82. rect 2 34 76 30
  83. textalign ITEM_ALIGN_CENTER
  84. textalignx 38
  85. textaligny 0
  86. font 2
  87. textscale 1
  88. forecolor 1 .682 0 1
  89. visible 1
  90. action
  91. {
  92. play "sound/interface/button1.wav" ;
  93. exec "vote no" ;
  94. uiScript closeingame
  95. }
  96. mouseEnter
  97. {
  98. show button2
  99. }
  100. mouseExit
  101. {
  102. hide button2
  103. }
  104. }
  105. }
  106. }