home *** CD-ROM | disk | FTP | other *** search
- #include "ui/menudef.h"
- {
-
- assetGlobalDef {
- font "fonts/font" 16 // font
- smallFont "fonts/smallfont" 12 // font
- bigFont "fonts/bigfont" 20 // font
- cursor "ui/assets/3_cursor3" // cursor
- gradientBar "ui/sidrial/hilight.tga" // gradient bar
- itemFocusSound "sound/UI/menu2.wav" // sound for item getting focus (via keyboard or mouse )
-
- fadeClamp 1.0 // sets the fadeup alpha
- fadeCycle 1 // how often fade happens in milliseconds
- fadeAmount 0.1 // amount to adjust alpha per cycle
-
- shadowColor 0.1 0.1 0.1 0.25 // shadow color
- }
-
-
- \\ INGAME MENU \\
-
- menuDef {
- name "ingame"
- visible 1
- fullScreen 0
- outOfBoundsClick // this closes the window if it gets a click out of the rectangle
- rect 120 5 530 35
- focusColor 1 1 1 1
- disableColor .5 .5 .5 1
- onOpen {
- hide litebar;
- }
-
-
- //Main Bar//
- itemDef {
- name mainbar
- group ingame
- style WINDOW_STYLE_FILLED
- rect 100 6 70 24
- backcolor .66 1 0 .7
- visible 0
- action { open ingame_main; close ingame; }
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 82 1 34 34
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { open ingame_main; close ingame; }
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 152 1 34 34
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { open ingame_main; close ingame;}
- }
- itemDef {
- name main
- group ingame
- text "Main"
- type 1
- style WINDOW_STYLE_FILLED
- rect 100 6 70 24
- textalign 1
- textstyle 6
- textalignx 35
- textaligny 17
- textscale .25
- forecolor .66 1 0 1
- visible 1
- action { open ingame_main; close ingame; hide litebar;}
- mouseEnter { transition mainbar 100 18 70 0 100 6 70 24 20 5 ; }
- mouseExit { transition mainbar 100 6 70 24 100 18 70 0 20 5 ; }
- }
- //Team Bar//
- itemDef {
- name teambar
- group ingame
- style WINDOW_STYLE_FILLED
- rect 183 6 70 24
- backcolor .66 1 0 .7
- visible 0
- }
- itemDef {
- name team_litebar
- group litebar
- style WINDOW_STYLE_FILLED
- rect 183 6 70 24
- backcolor .66 1 0 .7
- visible 0
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 165 1 34 34
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 237 1 34 34
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name team
- group ingame
- text "Team"
- type 1
- style WINDOW_STYLE_FILLED
- rect 183 6 70 24
- textalign 1
- textstyle 6
- textalignx 35
- textaligny 17
- textscale .25
- cvarTest "ui_singleplayeractive"
- disableCvar { "1" }
- forecolor .66 1 0 1
- visible 1
- action { open ingame_team; hide litebar; show team_litebar; }
- mouseEnter { transition teambar 183 18 70 0 183 6 70 24 20 5 ; }
- mouseExit { transition teambar 183 6 70 24 183 18 70 0 20 5 ; }
- }
- // Vote BAR//
- itemDef {
- name votebar
- group ingame
- style WINDOW_STYLE_FILLED
- rect 267 6 70 24
- backcolor .66 1 0 .7
- visible 0
- }
- itemDef {
- name vote_litebar
- group litebar
- style WINDOW_STYLE_FILLED
- rect 267 6 70 24
- backcolor .66 1 0 .7
- visible 0
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 249 1 34 34
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 321 1 34 34
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name vote
- group ingame
- text "Vote"
- type 1
- style WINDOW_STYLE_FILLED
- rect 267 6 70 24
- textalign 1
- textstyle 6
- textalignx 35
- textaligny 17
- textscale .25
- cvarTest "ui_singleplayeractive"
- disableCvar { "1" }
- forecolor .66 1 0 1
- visible 1
- action { open ingame_vote; hide litebar; show vote_litebar; }
- mouseEnter { transition votebar 267 18 70 0 267 6 70 24 20 5 ; }
- mouseExit { transition votebar 267 6 70 24 267 18 70 0 20 5 ; }
- }
-
- // VoteCall BAR//
- itemDef {
- name votecallbar
- group ingame
- style WINDOW_STYLE_FILLED
- rect 351 6 70 24
- backcolor .66 1 0 .7
- visible 0
- }
- itemDef {
- name votecall_litebar
- group litebar
- style WINDOW_STYLE_FILLED
- rect 351 6 70 24
- backcolor .66 1 0 .7
- visible 0
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 333 1 34 34
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 405 1 34 34
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name callvote
- group ingame
- text "Call Vote"
- type 1
- style WINDOW_STYLE_FILLED
- rect 351 6 70 24
- textalign 1
- textstyle 6
- textalignx 35
- textaligny 17
- textscale .25
- cvarTest "ui_singleplayeractive"
- disableCvar { "1" }
- forecolor .66 1 0 1
- visible 1
- action { open ingame_callvote; hide litebar; show votecall_litebar; }
- mouseEnter { transition votecallbar 351 18 70 0 351 6 70 24 20 5 ; }
- mouseExit { transition votecallbar 351 6 70 24 351 18 70 0 20 5 ; }
- }
- // Server Info//
- itemDef {
- name infobar
- group ingame
- style WINDOW_STYLE_FILLED
- rect 435 6 70 24
- backcolor .66 1 0 .7
- visible 0
- }
- itemDef {
- name info_litebar
- group litebar
- style WINDOW_STYLE_FILLED
- rect 435 6 70 24
- backcolor .66 1 0 .7
- visible 0
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 417 1 34 34
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name brace
- group ingame
- style 3
- rect 489 1 34 34
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name serverinfo
- group ingame
- text "About"
- type 1
- style WINDOW_STYLE_FILLED
- rect 435 6 70 24
- textalign 1
- textstyle 6
- textalignx 35
- textaligny 17
- textscale .25
- cvarTest "ui_singleplayeractive"
- disableCvar { "1" }
- forecolor .66 1 0 1
- visible 1
- action { open ingame_serverinfo; hide litebar; show info_litebar; }
- mouseEnter { transition infobar 435 18 70 0 435 6 70 24 20 5 ; }
- mouseExit { transition infobar 435 6 70 24 435 18 70 0 20 5 ; }
- }
- }
-
- }