home *** CD-ROM | disk | FTP | other *** search
- #include "ui/menudef.h"
-
- {
- \\ SERVER INFO MENU \\
-
- menuDef {
- name "ingame_vote"
- visible 0
- fullscreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 315 42 120 120
- focusColor 1 1 1 1
- style 1
-
- //Background
- itemDef {
- name window2
- rect 2 2 115 115
- style 1
- backcolor 0 0 0 .5
- visible 1
- decoration
- }
- itemDef {
- name window
- rect 2 2 115 115
- style 1
- backcolor .66 1 0 .35
- forecolor 0 0 0 1
- border 1
- bordercolor .66 1 0 1
- visible 1
- decoration
- }
- itemDef {
- name text
- style 0
- textstyle 6
- text "Vote:"
- rect 10 15 50 20
- textalign 1
- textalignx 25
- textaligny 18
- textscale .3
- forecolor 1 1 1 1
- decoration
- visible 1
- }
- // OKBUTTON //
- itemDef {
- name yesbar
- group grpCallVote
- style WINDOW_STYLE_FILLED
- rect 35 50 50 15
- backcolor .66 1 0 .7
- visible 0
- action { exec "vote yes" ; uiScript closeingame }
- }
- itemDef {
- name yes
- group grpVote
- style 3
- rect 27 48 20 20
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { exec "vote yes" ; uiScript closeingame }
- }
- itemDef {
- name yes
- group grpVote
- style 3
- rect 75 48 20 20
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { exec "vote yes" ; uiScript closeingame }
- }
- itemDef {
- name yes
- group grpVote
- text "Yes"
- textstyle 6
- textscale .25
- rect 35 50 50 15
- type 1
- textalign 1
- textalignx 25
- textaligny 12
- forecolor .66 1 0 1
- visible 1
- action { exec "vote yes" ; uiScript closeingame }
- mouseEnter { transition yesbar 35 57 50 0 35 50 50 15 20 5 }
- mouseExit { transition yesbar 35 50 50 15 35 57 50 0 20 5 }
- }
-
- // NOBUTTON //
- itemDef {
- name nobar
- group grpCallVote
- style WINDOW_STYLE_FILLED
- rect 35 80 50 15
- backcolor .66 1 0 .7
- visible 0
- action { exec "vote no" ; uiScript closeingame }
- }
- itemDef {
- name no
- group grpVote
- style 3
- rect 27 78 20 20
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { exec "vote no" ; uiScript closeingame }
- }
- itemDef {
- name no
- group grpVote
- style 3
- rect 75 78 20 20
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { exec "vote no" ; uiScript closeingame }
- }
- itemDef {
- name no
- group grpVote
- text "No"
- textstyle 6
- textscale .25
- rect 35 80 50 15
- type 1
- textalign 1
- textalignx 25
- textaligny 12
- forecolor .66 1 0 1
- visible 1
- action { exec "vote no" ; uiScript closeingame }
- mouseEnter { transition yesbar 35 87 50 0 35 80 50 15 20 5 }
- mouseExit { transition yesbar 35 80 50 15 35 87 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 80 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 80 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 80 80 40 40
- background "ui/sidrial/Popup/BRCorner.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
-
-
- }
- }
- }
-