home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 87 / CDMM87_1.ISO / Sidrial / data1.cab / Program_Files / sidrial0.pk3 / ui / ingame_callvote.menu < prev    next >
Encoding:
Text File  |  2002-01-13  |  8.5 KB  |  483 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ CALL VOTE MENU \\
  5.  
  6. menuDef {
  7.        name "ingame_callvote"
  8.        visible 0
  9.        fullscreen 0
  10.        rect 225 42 292 192
  11.     outOfBoundsClick            // this closes the window if it gets a click out of the rectangle
  12.        focusColor 1 1 1 1
  13.        style 1
  14.     onopen { hide grpcallVote ; show misc ; uiScript loadArenas }
  15.  
  16. //Background
  17.     itemDef {
  18.         name window2
  19.            rect 2 2 290 190
  20.         style 1
  21.         backcolor 0 0 0 .5
  22.         visible 1
  23.         decoration
  24.     }
  25.     itemDef {
  26.         name window
  27.            rect 2 2 290 190
  28.         style 1
  29.         backcolor .66 1 0 .35
  30.         forecolor 0 0 0 1
  31.         border 1
  32.         bordercolor .66 1 0 1
  33.         visible 1
  34.         decoration
  35.     }
  36.  
  37.  
  38. //     BUTTONS    //
  39. // MISC //
  40. itemDef {
  41.     name miscbar
  42.     group button
  43.     style WINDOW_STYLE_FILLED
  44.     rect 63 18 50 15
  45.     backcolor .66 1 0 .7  
  46.     visible 0 
  47.     action { hide grpCallVote ; show misc }
  48. }
  49. itemDef {
  50.     name brace        
  51.     group button
  52.     style 3
  53.     rect 52 15 20 20
  54.     background "ui/sidrial/sub/brace.tga"
  55.     backcolor 0 0 0 0
  56.        forecolor 1 1 1 1
  57.        visible 1
  58.     decoration    
  59.     action { hide grpCallVote ; show misc }
  60. }
  61. itemDef {
  62.     name brace    
  63.     group button
  64.     style 3
  65.     rect 102 15 20 20 
  66.     background "ui/sidrial/sub/brace_right.tga"
  67.     backcolor 0 0 0 0
  68.        forecolor 1 1 1 1
  69.        visible 1
  70.     decoration    
  71.     action { hide grpCallVote ; show misc }
  72. }    
  73. itemDef {
  74.     name ctr_misc
  75.     textstyle 6
  76.     text "Misc"
  77.     textscale .25
  78.     group grpbutton
  79.     rect 63 18 50 15
  80.     type 1
  81.     textalign 1
  82.     textalignx 25
  83.     textaligny 12
  84.     forecolor .66 1 0 1
  85.     visible 1
  86.     action { hide grpCallVote ; show misc }
  87.     mouseEnter { transition miscbar 63 25 50 0 63 18 50 15 20 5  }
  88.     mouseExit { transition miscbar 63 18 50 15 63 25 50 0 20 5 }
  89.     }
  90.  
  91. // KICK //
  92. itemDef {
  93.     name kickbar
  94.     group button
  95.     style WINDOW_STYLE_FILLED
  96.     rect 123 18 50 15
  97.     backcolor .66 1 0 .7  
  98.     visible 0 
  99.     action { hide grpCallVote ; show kick }
  100. }
  101. itemDef {
  102.     name brace        
  103.     group button
  104.     style 3
  105.     rect 112 15 20 20
  106.     background "ui/sidrial/sub/brace.tga"
  107.     backcolor 0 0 0 0
  108.        forecolor 1 1 1 1
  109.        visible 1
  110.     decoration    
  111.     action { hide grpCallVote ; show kick }
  112. }
  113. itemDef {
  114.     name brace    
  115.     group button
  116.     style 3
  117.     rect 162 15 20 20 
  118.     background "ui/sidrial/sub/brace_right.tga"
  119.     backcolor 0 0 0 0
  120.        forecolor 1 1 1 1
  121.        visible 1
  122.     decoration    
  123.     action { hide grpCallVote ; show kick }
  124. }    
  125. itemDef {
  126.     name ctr_misc
  127.     text "Kick"
  128.     textstyle 6
  129.     textscale .25
  130.     group grpbutton
  131.     rect 123 18 50 15
  132.     type 1
  133.     textalign 1
  134.     textalignx 25
  135.     textaligny 12
  136.     forecolor .66 1 0 1
  137.     visible 1
  138.     action { hide grpCallVote ; show kick }
  139.     mouseEnter { transition kickbar 123 25 50 0 123 18 50 15 20 5  }
  140.     mouseExit { transition kickbar 123 18 50 15 123 25 50 0 20 5 }
  141.     }
  142.  
  143.  
  144. // MAP //
  145. itemDef {
  146.     name mapbar
  147.     group button
  148.     style WINDOW_STYLE_FILLED
  149.     rect 183 18 50 15
  150.     backcolor .66 1 0 .7  
  151.     visible 0 
  152.     action { hide grpCallVote ; show map }
  153. }
  154. itemDef {
  155.     name brace        
  156.     group button
  157.     style 3
  158.     rect 172 15 20 20
  159.     background "ui/sidrial/sub/brace.tga"
  160.     backcolor 0 0 0 0
  161.        forecolor 1 1 1 1
  162.        visible 1
  163.     decoration    
  164.     action { hide grpCallVote ; show map }
  165. }
  166. itemDef {
  167.     name brace    
  168.     group button
  169.     style 3
  170.     rect 222 15 20 20 
  171.     background "ui/sidrial/sub/brace_right.tga"
  172.     backcolor 0 0 0 0
  173.        forecolor 1 1 1 1
  174.        visible 1
  175.     decoration    
  176.     action { hide grpCallVote ; show map }
  177. }    
  178. itemDef {
  179.     name ctr_misc
  180.     text "Map"
  181.     textstyle 6
  182.     textscale .25
  183.     group grpbutton
  184.     rect 183 18 50 15
  185.     type 1
  186.     textalign 1
  187.     textalignx 25
  188.     textaligny 12
  189.     forecolor .66 1 0 1
  190.     visible 1
  191.     action { hide grpCallVote ; show map }
  192.     mouseEnter { transition mapbar 183 25 50 0 183 18 50 15 20 5  }
  193.     mouseExit { transition mapbar 183 18 50 15 183 25 50 0 20 5 }
  194.     }
  195.  
  196. //     MISC    //        
  197.          
  198. itemDef {
  199.     name misc
  200.     text "Restart Map"
  201.     textstyle 6
  202.     group grpCallVote
  203.     textscale .25
  204.     rect 0 70 290 20
  205.     type 1
  206.     textalign 1
  207.     textalignx 145
  208.     textaligny 16
  209.     forecolor .66 1 0 1
  210.     visible 0
  211.     action { exec "cmd callvote map_restart" ; uiScript closeingame }
  212.     }
  213.  
  214.  
  215. itemDef {
  216.     name misc
  217.     group grpCallVote
  218.     text "Next Map"
  219.     textstyle 6
  220.     textscale .25
  221.     rect 0 90 290 20
  222.     type 1
  223.     textalign 1
  224.     textalignx 145
  225.     textaligny 16
  226.     forecolor .66 1 0 1
  227.     visible 0
  228.     action { exec "cmd callvote nextmap" ; uiScript closeingame }
  229.     }
  230. itemDef {
  231.     name misc
  232.     group grpCallVote
  233.     text "Do Warmup"
  234.     textstyle 6
  235.     textscale .25
  236.     rect 0 110 290 20
  237.     type 1
  238.     textalign 1
  239.     textalignx 145
  240.     textaligny 16
  241.     forecolor .66 1 0 1
  242.     visible 0
  243.     action { exec "cmd callvote g_doWarmup 1" ; uiScript closeingame }
  244.     }
  245.  
  246.  
  247.  
  248.  
  249.  
  250. //     KICK PLAYER    //
  251.  
  252. itemDef {
  253.     name kick
  254.     group grpCallVote
  255.     text "Kick Player:"
  256.     textstyle 6
  257.     textscale .3
  258.     rect 20 50 110 20
  259.     textalign 0
  260.     textalignx 0
  261.     textaligny 12
  262.     forecolor 1 1 1 1
  263.     visible 0
  264.     decoration
  265.     action { }
  266.     }
  267. itemDef {
  268.     name kick
  269.     group grpCallVote
  270.     rect 20 70 250 85
  271.     style WINDOW_STYLE_FILLED
  272.     type ITEM_TYPE_LISTBOX
  273.     elementwidth 100
  274.     elementheight 17
  275.     textscale .25
  276.     elementtype LISTBOX_TEXT
  277.     feeder FEEDER_PLAYER_LIST
  278.     forecolor 1 1 1 1
  279.     textstyle 6
  280.     border 1
  281.     bordercolor .66 1 0 1
  282.     backcolor .66 1 0 .3
  283.     outlinecolor .66 1 0 1
  284.     visible 0
  285.     mouseEnter { fadein message_arena ; setitemcolor kick bordercolor 1 1 1 1 ;  } 
  286.     mouseExit { fadeout message_arena ; setitemcolor kick bordercolor .66 1 0 1 ; }
  287.     }
  288.  
  289.  
  290. // OKBUTTON //
  291. itemDef {
  292.     name okbar
  293.     group grpCallVote
  294.     style WINDOW_STYLE_FILLED
  295.     rect 123 160 50 15
  296.     backcolor .66 1 0 .7  
  297.     visible 0 
  298.     action { uiScript voteKick ; uiScript closeingame }
  299. }
  300. itemDef {
  301.     name kick
  302.     group grpCallVote
  303.     style 3
  304.     rect 112 158 20 20
  305.     background "ui/sidrial/sub/brace.tga"
  306.     backcolor 0 0 0 0
  307.        forecolor 1 1 1 1
  308.        visible 0
  309.     decoration    
  310.     action { uiScript voteKick ; uiScript closeingame }
  311. }
  312. itemDef {
  313.     name kick    
  314.     group grpCallVote
  315.     style 3
  316.     rect 162 158 20 20 
  317.     background "ui/sidrial/sub/brace_right.tga"
  318.     backcolor 0 0 0 0
  319.        forecolor 1 1 1 1
  320.        visible 0
  321.     decoration    
  322.     action { uiScript voteKick ; uiScript closeingame }
  323. }    
  324. itemDef {
  325.     name kick
  326.     group grpCallVote
  327.     text "OK"
  328.     textstyle 6
  329.     textscale .25
  330.     rect 123 160 50 15
  331.     type 1
  332.     textalign 1
  333.     textalignx 25
  334.     textaligny 12
  335.     forecolor .66 1 0 1
  336.     visible 0
  337.     action { uiScript voteKick ; uiScript closeingame }
  338.     mouseEnter { transition okbar 123 167 50 0 123 160 50 15 20 5 }
  339.     mouseExit { transition okbar 123 160 50 15 123 167 50 0 20 5 }
  340.     }
  341.  
  342.  
  343.  
  344. //     NEW MAP    //
  345.  
  346. itemDef {
  347.     name map
  348.     group grpCallVote
  349.     text "New Map:"
  350.     textstyle 6
  351.     ownerdraw UI_ALLMAPS_SELECTION 
  352.     textscale .3
  353.     rect 20 50 110 20
  354.     textalign 0
  355.     textalignx 0
  356.     textaligny 12
  357.     forecolor 1 1 1 1
  358.     decoration
  359.     visible 0
  360.     action { }
  361.     }
  362. itemDef {
  363.     name map
  364.     group grpCallVote
  365.     rect 20 70 250 85
  366.     type ITEM_TYPE_LISTBOX
  367.     style WINDOW_STYLE_FILLED
  368.     elementwidth 100
  369.     elementheight 17
  370.     textscale .25
  371.     textstyle 6
  372.     elementtype LISTBOX_TEXT
  373.     feeder FEEDER_ALLMAPS
  374.     border 1
  375.     bordercolor .66 1 0 1
  376.     forecolor 1 1 1 1
  377.     backcolor .66 1 0 .3
  378.     outlinecolor .66 1 0 1
  379.     visible 0
  380.     mouseEnter { setitemcolor map bordercolor 1 1 1 1 } 
  381.     mouseExit { setitemcolor map bordercolor .66 1 0 1 } 
  382.       }
  383.  
  384.  
  385. // OKBUTTON //
  386. itemDef {
  387.     name mapokbar
  388.     group grpCallVote
  389.     style WINDOW_STYLE_FILLED
  390.     rect 123 160 50 15
  391.     backcolor .66 1 0 .7  
  392.     visible 0 
  393.     action { uiScript voteMap ; uiScript closeingame }
  394. }
  395. itemDef {
  396.     name map        
  397.     group grpCallVote
  398.     style 3
  399.     rect 112 158 20 20
  400.     background "ui/sidrial/sub/brace.tga"
  401.     backcolor 0 0 0 0
  402.        forecolor 1 1 1 1
  403.        visible 0
  404.     decoration    
  405.     action { uiScript voteMap ; uiScript closeingame }
  406. }
  407. itemDef {
  408.     name map    
  409.     group grpCallVote
  410.     style 3
  411.     rect 162 158 20 20 
  412.     background "ui/sidrial/sub/brace_right.tga"
  413.     backcolor 0 0 0 0
  414.        forecolor 1 1 1 1
  415.        visible 0
  416.     decoration    
  417.     action { uiScript voteMap ; uiScript closeingame }
  418. }    
  419. itemDef {
  420.     name map
  421.     group grpCallVote
  422.     text "OK"
  423.     textstyle 6
  424.     textscale .25
  425.     rect 123 160 50 15
  426.     type 1
  427.     textalign 1
  428.     textalignx 25
  429.     textaligny 12
  430.     forecolor .66 1 0 1
  431.     visible 0
  432.     action { uiScript voteMap ; uiScript closeingame }
  433.     mouseEnter { transition mapokbar 123 167 50 0 123 160 50 15 20 5 }
  434.     mouseExit { transition mapokbar 123 160 50 15 123 167 50 0 20 5 }
  435.     }
  436. //Corners    
  437. itemDef {
  438.           name corners    
  439.         style 3
  440.           rect 0 0 40 40
  441.          background "ui/sidrial/Popup/ULCorner.tga"
  442.         backcolor 0 0 0 0
  443.           forecolor 1 1 1 1
  444.           visible 1
  445.         decoration    
  446.     }
  447. itemDef {
  448.           name corners    
  449.         style 3
  450.           rect 255 0 40 40
  451.          background "ui/sidrial/Popup/URCorner.tga"
  452.         backcolor 0 0 0 0
  453.           forecolor 1 1 1 1
  454.           visible 1
  455.         decoration    
  456.     }
  457. itemDef {
  458.           name corners    
  459.         style 3
  460.           rect 0 155 40 40
  461.          background "ui/sidrial/Popup/BLCorner.tga"
  462.         backcolor 0 0 0 0
  463.           forecolor 1 1 1 1
  464.           visible 1
  465.         decoration    
  466.     }
  467. itemDef {
  468.           name corners    
  469.         style 3
  470.           rect 255 155 40 40
  471.          background "ui/sidrial/Popup/BRCorner.tga"
  472.         backcolor 0 0 0 0
  473.           forecolor 1 1 1 1
  474.           visible 1
  475.         decoration    
  476.     }
  477.  
  478.  
  479. }
  480.  
  481.  
  482. }
  483.