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 2.0 // sets the fadeup alpha
- fadeCycle 4 // how often fade happens in milliseconds
- fadeAmount 2 // amount to adjust alpha per cycle
-
- shadowColor 0.1 0.1 0.1 0.25 // shadow color
- }
-
- menuDef {
- name "ingame_main"
- fullscreen 0
- rect 0 0 640 480
- focusColor 1 1 1 1
- onOpen {
- setitemcolor fadebox backcolor 0 0 0 1 ;
- fadeout fadebox ;
- fadein format ;
- fadein icon ;
- fadein words ;
- hide quit;
- }
- onESC { open ingame_quit_confirm; hide Bar; hide icon; hide words; show quit;}
- itemDef {
- name quit // Layout
- style 3
- background "loadingBackground"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- rect 0 0 640 480
- visible 0
- decoration
- }
- itemDef {
- name modelselection //Precache player model
- ownerdraw UI_PLAYERMODEL //Ownerdraw for player models
- rect 0 0 0 0
- style 1
- decoration
- visible 1
- }
- itemDef {
- name icon
- style 3
- rect 0 0 640 480
- background "filter"
- visible 1
- decoration
- }
- itemDef {
- name format // Layout
- style 3
- background "swooshb"
- backcolor 1 0 0 1
- forecolor 1 0 0 1
- rect 0 0 640 480
- visible 1
- decoration
- }
- itemDef {
- name format // Layout
- style 3
- background "format"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- rect 0 0 640 480
- visible 1
- decoration
- }
- itemDef {
- name quit // Layout
- style 3
- background "greenhue"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- rect 0 0 640 480
- visible 0
- decoration
- }
- //Menu Items
- //Resume Bar
- itemDef {
- name resumebar
- group Bar
- style 2
- rect 50 40 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- decoration
- action { close ingame_main ; }
- }
- itemDef {
- name resume
- group icon
- style 3
- rect 40 40 40 40
- background "ui/sidrial/icon_resume.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { close ingame_main ; }
- }
- itemDef {
- name resume
- group words
- type 1
- text "Resume Game"
- style 0
- textstyle 6
- rect 40 40 312 40
- forecolor .66 1 0 1
- textalignx 50
- textaligny 27
- textalign 0
- textscale .4
- visible 0
- mouseEnter { transition resumebar 50 60 300 0 50 40 300 40 20 5 ; }
- mouseExit { transition resumebar 50 40 300 40 50 60 300 0 20 5 ; }
- action { close ingame_main ;}
- }
- //Player Setup Bar
- itemDef {
- name playerbar
- group Bar
- style 2
- rect 50 93 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close ingame_main; open ingame_playersetup; }
- }
- itemDef {
- name playersetup
- group icon
- style 3
- rect 40 93 40 40
- background "ui/sidrial/icon_playersetup.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { close ingame_main; open ingame_playersetup; }
- }
- itemDef {
- name playersetup
- group words
- type 1
- text "Player Setup"
- style 0
- textstyle 6
- rect 40 93 312 40
- forecolor .66 1 0 1
- textalignx 50
- textaligny 27
- textalign 0
- textscale .4
- visible 0
- mouseEnter { transition playerbar 50 113 300 0 50 93 300 40 20 5 ; }
- mouseExit { transition playerbar 50 93 300 40 50 113 300 0 20 5 ; }
- action { close ingame_main; open ingame_playersetup; }
- }
-
- //System Configuration
- itemDef {
- name systembar
- group Bar
- style 2
- rect 50 146 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close ingame_main ; open confignav0 ; open ingame_configcontrols }
- }
- itemDef {
- name systemconfig
- group icon
- style 3
- rect 40 146 40 40
- background "ui/sidrial/icon_systemconfig.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { close ingame_main ; open ingame_confignav ; open ingame_configcontrols }
- }
- itemDef {
- name systemconfig
- group words
- type 1
- text "System Configuration"
- style 0
- textstyle 6
- rect 40 146 312 40
- forecolor .66 1 0 1
- textalignx 50
- textaligny 27
- textalign 0
- textscale .4
- visible 0
- mouseEnter { transition systembar 50 166 300 0 50 146 300 40 20 5 ; }
- mouseExit { transition systembar 50 146 300 40 50 166 300 0 20 5 ; }
- action { close ingame_main ; open ingame_confignav ; open ingame_configcontrols }
- }
- //Exit Bar
- itemDef {
- name discbar
- group Bar
- style 2
- rect 50 199 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { open ingame_quit_confirm; show quit; hide Bar; hide icon; hide words; }
- }
- itemDef {
- name disconnect
- group icon
- style 3
- rect 40 199 40 40
- background "ui/sidrial/icon_exit.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { open ingame_quit_confirm; show quit; hide Bar; hide icon; hide words; }
- }
- itemDef {
- name disconnect
- group words
- type 1
- text "Exit to Main Menu"
- style 0
- textstyle 6
- rect 40 199 312 40
- forecolor .66 1 0 1
- textalignx 50
- textaligny 27
- textalign 0
- textscale .4
- visible 0
- mouseEnter { transition discbar 50 219 300 0 50 199 300 40 20 5 ; }
- mouseExit { transition discbar 50 199 300 40 50 219 300 0 20 5 ; }
- action { play "sound/UI/menu1.wav"; open ingame_quit_confirm; show quit; hide Bar; hide icon; hide words; }
- }
- itemDef {
- name fadebox // Box for fading in menus
- style WINDOW_STYLE_FILLED
- background "ui/sidrial/fadebox.tga"
- forecolor 0 0 0 1
- backcolor 0 0 0 1
- rect 0 0 640 480
- visible 1
- decoration
- }
-
- }
-
- }