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 "main"
- style 3
- background "blank"
- fullScreen MENU_TRUE
- rect 0 0 640 480 // Size and position of the menu
- visible MENU_TRUE // Visible on open
- focusColor 1 1 1 1 // Menu focus color for text and items
-
- onOpen {
- playLooped "music/SidrialMusic_ui.wav"
- setitemcolor fadebox backcolor 0 0 0 1 ;
- fadeout fadebox ;
- fadein format ;
- fadein icon ;
- fadein words ;
- uiScript stopRefresh ;
- hide greenhue;
- show cinematic;
- }
- onClose {
- hide Bar;
- }
- onESC { open quit_confirm; hide Bar; hide icon; hide words; show greenhue; hide cinematic;}
-
- 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 cinematic
- style 5
- cinematic "video/sidrial/Sidrial_BeautyShots.roq"
- rect 0 0 640 480
- decoration
- visible 1
- }
- itemDef {
- name filter
- 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 greenhue
- style 3
- rect 0 0 640 480
- background "greenhue"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- }
-
- //Menu Items
- //Single Player Bar
- itemDef {
- name singlebar
- group Bar
- style 2
- rect 50 40 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- decoration
- action { close main ; open singleplayer ; }
- }
- itemDef {
- name singleplayer
- group icon
- style 3
- rect 40 40 40 40
- background "ui/sidrial/icon_singleplayer.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { close main ; open singleplayer ; }
- }
- itemDef {
- name words
- group singlewords
- type 1
- text "Single Player"
- 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 singlebar 50 60 300 0 50 40 300 40 20 5 ; }
- mouseExit { transition singlebar 50 40 300 40 50 60 300 0 20 5 ; }
- action {close main ; open singleplayer ; }
- }
-
- //Multiplayer Bar
- itemDef {
- name multibar
- group Bar
- style 2
- rect 50 93 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close main ; open multiplayer ; }
- }
- itemDef {
- name multiplayer
- group icon
- style 3
- rect 40 93 40 40
- background "ui/sidrial/icon_multiplayer.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { close main ; open multiplayer ; }
- }
- itemDef {
- name multiplayer
- group words
- type 1
- text "Multiplayer"
- 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 multibar 50 113 300 0 50 93 300 40 20 5 ; }
- mouseExit { transition multibar 50 93 300 40 50 113 300 0 20 5 ; }
- action { close main ; open multiplayer ; }
- }
-
- //Player Setup Bar
- itemDef {
- name playerbar
- group Bar
- style 2
- rect 50 146 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close main ; open playersetup ; }
- }
- itemDef {
- name playersetup
- group icon
- style 3
- rect 40 146 40 40
- background "ui/sidrial/icon_playersetup.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { close main ; open playersetup ; }
- }
- itemDef {
- name playersetup
- group words
- type 1
- text "Player Setup"
- 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 playerbar 50 166 300 0 50 146 300 40 20 5 ; }
- mouseExit { transition playerbar 50 146 300 40 50 166 300 0 20 5 ; }
- action { close main ; open playersetup ; }
- }
-
- //System Configuration
- itemDef {
- name systembar
- group Bar
- style 2
- rect 50 199 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close main ; open confignav ; open configcontrols }
- }
- itemDef {
- name systemconfig
- group icon
- style 3
- rect 40 199 40 40
- background "ui/sidrial/icon_systemconfig.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { close main ; open confignav ; open configcontrols }
- }
- itemDef {
- name systemconfig
- group words
- type 1
- text "System Configuration"
- 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 systembar 50 219 300 0 50 199 300 40 20 5 ; }
- mouseExit { transition systembar 50 199 300 40 50 219 300 0 20 5 ; }
- action { close main ; open confignav ; open configcontrols}
- }
- //Cinematics Bar
- itemDef {
- name cinebar
- group Bar
- style 2
- rect 50 252 300 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { show quit; hide Bar; hide icon; hide words; hide cinematic; }
- }
- itemDef {
- name cine
- group icon
- style 3
- rect 40 252 40 40
- background "ui/sidrial/icon_cinematics.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { show quit; hide Bar; hide icon; hide words; hide cinematic; }
- }
- itemDef {
- name cine
- group words
- type 1
- text "Cinematics"
- style 0
- textstyle 6
- rect 40 252 312 40
- forecolor .66 1 0 1
- textalignx 50
- textaligny 27
- textalign 0
- textscale .4
- visible 0
- mouseEnter { transition cinebar 50 272 300 0 50 252 300 40 20 5 ; }
- mouseExit { transition cinebar 50 252 300 40 50 272 300 0 20 5 ; }
- action { close main; open cinematics; }
- }
-
- //Exit Bar
- itemDef {
- name exitbar
- group bar
- style 2
- rect 50 304 300 40
- backcolor .66 1 0 .7
- visible 0
- action { open quit_confirm; hide Bar; hide icon; hide words; hide cinematic; show greenhue;}
- }
- itemDef {
- name exit
- group icon
- style 3
- rect 40 304 40 40
- background "ui/sidrial/icon_exit.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- action { open quit_confirm; hide Bar; hide icon; hide words; hide cinematic; show greenhue;}
- }
- itemDef {
- name exit
- group words
- type 1
- text "Exit"
- style 0
- textstyle 6
- rect 40 304 312 40
- forecolor .66 1 0 1
- textalignx 50
- textaligny 27
- textalign 0
- textscale .4
- visible 0
- mouseEnter { transition exitbar 50 324 300 0 50 304 300 40 20 5 ; }
- mouseExit { transition exitbar 50 304 300 40 50 324 300 0 20 5 ; }
- action { play "sound/UI/menu1.wav"; open quit_confirm; hide Bar; hide icon; hide words; hide cinematic; show greenhue;}
- }
- 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
- }
-
- }
-
- }