home *** CD-ROM | disk | FTP | other *** search
- #include "ui/menudef.h"
-
- {
- \\ CALL VOTE MENU \\
-
- menuDef {
- name "ingame_callvote"
- visible 0
- fullscreen 0
- rect 225 42 292 192
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- focusColor 1 1 1 1
- style 1
- onopen { hide grpcallVote ; show misc ; uiScript loadArenas }
-
- //Background
- itemDef {
- name window2
- rect 2 2 290 190
- style 1
- backcolor 0 0 0 .5
- visible 1
- decoration
- }
- itemDef {
- name window
- rect 2 2 290 190
- style 1
- backcolor .66 1 0 .35
- forecolor 0 0 0 1
- border 1
- bordercolor .66 1 0 1
- visible 1
- decoration
- }
-
-
- // BUTTONS //
- // MISC //
- itemDef {
- name miscbar
- group button
- style WINDOW_STYLE_FILLED
- rect 63 18 50 15
- backcolor .66 1 0 .7
- visible 0
- action { hide grpCallVote ; show misc }
- }
- itemDef {
- name brace
- group button
- style 3
- rect 52 15 20 20
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { hide grpCallVote ; show misc }
- }
- itemDef {
- name brace
- group button
- style 3
- rect 102 15 20 20
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { hide grpCallVote ; show misc }
- }
- itemDef {
- name ctr_misc
- textstyle 6
- text "Misc"
- textscale .25
- group grpbutton
- rect 63 18 50 15
- type 1
- textalign 1
- textalignx 25
- textaligny 12
- forecolor .66 1 0 1
- visible 1
- action { hide grpCallVote ; show misc }
- mouseEnter { transition miscbar 63 25 50 0 63 18 50 15 20 5 }
- mouseExit { transition miscbar 63 18 50 15 63 25 50 0 20 5 }
- }
-
- // KICK //
- itemDef {
- name kickbar
- group button
- style WINDOW_STYLE_FILLED
- rect 123 18 50 15
- backcolor .66 1 0 .7
- visible 0
- action { hide grpCallVote ; show kick }
- }
- itemDef {
- name brace
- group button
- style 3
- rect 112 15 20 20
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { hide grpCallVote ; show kick }
- }
- itemDef {
- name brace
- group button
- style 3
- rect 162 15 20 20
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { hide grpCallVote ; show kick }
- }
- itemDef {
- name ctr_misc
- text "Kick"
- textstyle 6
- textscale .25
- group grpbutton
- rect 123 18 50 15
- type 1
- textalign 1
- textalignx 25
- textaligny 12
- forecolor .66 1 0 1
- visible 1
- action { hide grpCallVote ; show kick }
- mouseEnter { transition kickbar 123 25 50 0 123 18 50 15 20 5 }
- mouseExit { transition kickbar 123 18 50 15 123 25 50 0 20 5 }
- }
-
-
- // MAP //
- itemDef {
- name mapbar
- group button
- style WINDOW_STYLE_FILLED
- rect 183 18 50 15
- backcolor .66 1 0 .7
- visible 0
- action { hide grpCallVote ; show map }
- }
- itemDef {
- name brace
- group button
- style 3
- rect 172 15 20 20
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { hide grpCallVote ; show map }
- }
- itemDef {
- name brace
- group button
- style 3
- rect 222 15 20 20
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { hide grpCallVote ; show map }
- }
- itemDef {
- name ctr_misc
- text "Map"
- textstyle 6
- textscale .25
- group grpbutton
- rect 183 18 50 15
- type 1
- textalign 1
- textalignx 25
- textaligny 12
- forecolor .66 1 0 1
- visible 1
- action { hide grpCallVote ; show map }
- mouseEnter { transition mapbar 183 25 50 0 183 18 50 15 20 5 }
- mouseExit { transition mapbar 183 18 50 15 183 25 50 0 20 5 }
- }
-
- // MISC //
-
- itemDef {
- name misc
- text "Restart Map"
- textstyle 6
- group grpCallVote
- textscale .25
- rect 0 70 290 20
- type 1
- textalign 1
- textalignx 145
- textaligny 16
- forecolor .66 1 0 1
- visible 0
- action { exec "cmd callvote map_restart" ; uiScript closeingame }
- }
-
-
- itemDef {
- name misc
- group grpCallVote
- text "Next Map"
- textstyle 6
- textscale .25
- rect 0 90 290 20
- type 1
- textalign 1
- textalignx 145
- textaligny 16
- forecolor .66 1 0 1
- visible 0
- action { exec "cmd callvote nextmap" ; uiScript closeingame }
- }
- itemDef {
- name misc
- group grpCallVote
- text "Do Warmup"
- textstyle 6
- textscale .25
- rect 0 110 290 20
- type 1
- textalign 1
- textalignx 145
- textaligny 16
- forecolor .66 1 0 1
- visible 0
- action { exec "cmd callvote g_doWarmup 1" ; uiScript closeingame }
- }
-
-
-
-
-
- // KICK PLAYER //
-
- itemDef {
- name kick
- group grpCallVote
- text "Kick Player:"
- textstyle 6
- textscale .3
- rect 20 50 110 20
- textalign 0
- textalignx 0
- textaligny 12
- forecolor 1 1 1 1
- visible 0
- decoration
- action { }
- }
- itemDef {
- name kick
- group grpCallVote
- rect 20 70 250 85
- style WINDOW_STYLE_FILLED
- type ITEM_TYPE_LISTBOX
- elementwidth 100
- elementheight 17
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_PLAYER_LIST
- forecolor 1 1 1 1
- textstyle 6
- border 1
- bordercolor .66 1 0 1
- backcolor .66 1 0 .3
- outlinecolor .66 1 0 1
- visible 0
- mouseEnter { fadein message_arena ; setitemcolor kick bordercolor 1 1 1 1 ; }
- mouseExit { fadeout message_arena ; setitemcolor kick bordercolor .66 1 0 1 ; }
- }
-
-
- // OKBUTTON //
- itemDef {
- name okbar
- group grpCallVote
- style WINDOW_STYLE_FILLED
- rect 123 160 50 15
- backcolor .66 1 0 .7
- visible 0
- action { uiScript voteKick ; uiScript closeingame }
- }
- itemDef {
- name kick
- group grpCallVote
- style 3
- rect 112 158 20 20
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { uiScript voteKick ; uiScript closeingame }
- }
- itemDef {
- name kick
- group grpCallVote
- style 3
- rect 162 158 20 20
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { uiScript voteKick ; uiScript closeingame }
- }
- itemDef {
- name kick
- group grpCallVote
- text "OK"
- textstyle 6
- textscale .25
- rect 123 160 50 15
- type 1
- textalign 1
- textalignx 25
- textaligny 12
- forecolor .66 1 0 1
- visible 0
- action { uiScript voteKick ; uiScript closeingame }
- mouseEnter { transition okbar 123 167 50 0 123 160 50 15 20 5 }
- mouseExit { transition okbar 123 160 50 15 123 167 50 0 20 5 }
- }
-
-
-
- // NEW MAP //
-
- itemDef {
- name map
- group grpCallVote
- text "New Map:"
- textstyle 6
- ownerdraw UI_ALLMAPS_SELECTION
- textscale .3
- rect 20 50 110 20
- textalign 0
- textalignx 0
- textaligny 12
- forecolor 1 1 1 1
- decoration
- visible 0
- action { }
- }
- itemDef {
- name map
- group grpCallVote
- rect 20 70 250 85
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 100
- elementheight 17
- textscale .25
- textstyle 6
- elementtype LISTBOX_TEXT
- feeder FEEDER_ALLMAPS
- border 1
- bordercolor .66 1 0 1
- forecolor 1 1 1 1
- backcolor .66 1 0 .3
- outlinecolor .66 1 0 1
- visible 0
- mouseEnter { setitemcolor map bordercolor 1 1 1 1 }
- mouseExit { setitemcolor map bordercolor .66 1 0 1 }
- }
-
-
- // OKBUTTON //
- itemDef {
- name mapokbar
- group grpCallVote
- style WINDOW_STYLE_FILLED
- rect 123 160 50 15
- backcolor .66 1 0 .7
- visible 0
- action { uiScript voteMap ; uiScript closeingame }
- }
- itemDef {
- name map
- group grpCallVote
- style 3
- rect 112 158 20 20
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { uiScript voteMap ; uiScript closeingame }
- }
- itemDef {
- name map
- group grpCallVote
- style 3
- rect 162 158 20 20
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { uiScript voteMap ; uiScript closeingame }
- }
- itemDef {
- name map
- group grpCallVote
- text "OK"
- textstyle 6
- textscale .25
- rect 123 160 50 15
- type 1
- textalign 1
- textalignx 25
- textaligny 12
- forecolor .66 1 0 1
- visible 0
- action { uiScript voteMap ; uiScript closeingame }
- mouseEnter { transition mapokbar 123 167 50 0 123 160 50 15 20 5 }
- mouseExit { transition mapokbar 123 160 50 15 123 167 50 0 20 5 }
- }
- //Corners
- itemDef {
- name corners
- style 3
- rect 0 0 40 40
- background "ui/sidrial/Popup/ULCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name corners
- style 3
- rect 255 0 40 40
- background "ui/sidrial/Popup/URCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name corners
- style 3
- rect 0 155 40 40
- background "ui/sidrial/Popup/BLCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name corners
- style 3
- rect 255 155 40 40
- background "ui/sidrial/Popup/BRCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
-
- }
-
-
- }
-