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
-
-
- 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 "singleplayer"
- style 3
- background "singleplayer"
- 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 {
- setitemcolor fadebox backcolor 0 0 0 1 ;
- playlooped "music/SidrialMusic_ui.wav" ;
- fadeout fadebox ;
- show format ;
- uiScript LoadSavedGames
- }
- onEsc { close singleplayer ; open main }
-
- itemDef {
- name modelselection
- ownerdraw UI_PLAYERMODEL
- rect 360 40 310 450 //320 140 260 300
- style 1
- decoration
- visible 1
- }
- itemDef {
- name format // Layout
- style 3
- background "filter"
- backcolor .25 .5 .75 .75
- rect 0 0 640 480
- visible 0
- decoration
- }
- itemDef {
- name format
- style 3
- rect 0 0 640 480
- background "ui/sidrial/sub/white_bar.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef {
- name format // Layout
- style 3
- background "sub_swooshb"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- rect 0 0 640 480
- visible 0
- decoration
- }
- itemDef {
- name singleplayer
- group icon
- style 3
- rect 580 40 40 40
- background "ui/sidrial/icon_singleplayer.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name subtitle
- group words
- type 0
- text "Main"
- style 0
- textstyle 6
- rect 500 40 80 40
- forecolor .66 1 0 1
- textalignx 75
- textaligny 27
- textalign 2
- textscale .4
- visible 1
- decoration
- }
- itemDef {
- name title
- style 3
- rect 10 5 256 32
- background "ui/sidrial/text_singleplayer.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name backbar
- group Bar
- style 2
- rect 20 420 210 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close singleplayer ; open main }
- }
- itemDef {
- name back
- group icon
- style 3
- rect 15 420 40 40
- background "ui/sidrial/sub/icon_left.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { close singleplayer ; open main }
- }
- itemDef {
- name back
- group words
- type 1
- text "Back"
- style 0
- textstyle 6
- rect 15 420 150 40
- forecolor .66 1 0 1
- textalignx 45
- textaligny 25
- textalign 0
- textscale .4
- visible 1
- mouseEnter { transition backbar 20 440 196 0 20 420 196 40 20 5 ; fadein message_back;}
- mouseExit { transition backbar 20 420 196 40 20 440 196 0 20 5 ; fadeout message_back;}
- action { close singleplayer ; open main }
- }
- itemDef {
- name continuebar
- group continue
- style 2
- rect 405 420 -210 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close singleplayer; uiScript loadgame; }
- }
- itemDef {
- name icon
- group continue
- style 3
- rect 585 420 40 40
- background "ui/sidrial/sub/icon_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- action { close singleplayer; uiScript loadgame; }
- }
- itemDef {
- name continuewords
- group words
- type 1
- text "Continue"
- style 0
- textstyle 6
- rect 485 420 150 40
- forecolor .66 1 0 1
- textalignx 15
- textaligny 25
- textalign 0
- textscale .4
- visible 1
- mouseEnter { transition continuebar 405 440 -210 0 405 420 -210 40 20 5 ; fadein message_accept; }
- mouseExit { transition continuebar 405 420 -210 40 405 440 -210 0 20 5 ; fadeout message_accept;}
- action { close singleplayer; uiScript loadgame; }
- }
- itemDef {
- name mission
- type 1
- text "Spawn Game:"
- style 0
- rect 30 180 150 25
- forecolor .66 1 0 1
- textalignx 2
- textaligny 25
- textalign 0
- textscale .4
- visible 1
- decoration
- }
- itemDef {
- name gameslist
- rect 30 210 280 180
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementtype LISTBOX_TEXT
- elementwidth 150
- elementheight 18
- feeder FEEDER_SAVED_GAMES
- backcolor .66 1 0 .2
- border 1
- bordercolor .66 1 0 1
- forecolor 1 1 1 1
- outlinecolor .66 1 0 1
- visible 1
- textscale .25
- textstyle 6
- mouseenter { setitemcolor gameslist bordercolor 1 1 1 1 ; fadein message_choose;}
- mouseexit { setitemcolor gameslist bordercolor .66 1 0 1 ; fadeout message_choose;}
- doubleClick { uiScript loadgame }
- }
- //Delete Bar//
- itemDef {
- name deletebar
- group game
- style WINDOW_STYLE_FILLED
- rect 35 140 130 25
- backcolor .66 1 0 .7
- visible 0
- }
- itemDef {
- name brace
- group game
- style 3
- rect 19 137 35 35
- background "ui/sidrial/sub/brace.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name brace
- group game
- style 3
- rect 144 137 35 35
- background "ui/sidrial/sub/brace_right.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name deletegame
- group game
- text "Delete Game"
- type 1
- style WINDOW_STYLE_FILLED
- rect 35 140 130 25
- textalign 1
- textstyle 6
- textalignx 65
- textaligny 21
- textscale .35
- forecolor .66 1 0 1
- visible 1
- action { uiScript deletegame; }
- mouseEnter { transition deletebar 35 155 130 0 35 140 130 30 20 5; fadein message_del;}
- mouseExit { transition deletebar 35 140 130 30 35 155 130 0 20 5; fadeout message_del;}
- }
-
- itemDef {
- name modelselection
- ownerdraw UI_PLAYERMODEL
- rect 320 140 260 300
- style 1
- decoration
- visible 1
- }
- // MESSAGES //
- itemDef {
- name message_back
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Back to Main Menu"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_accept
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textalignx 0
- textstyle 6
- textaligny 25
- textscale .3
- text "Spawn Selected Game"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_del
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textalignx 0
- textstyle 6
- textaligny 25
- textscale .3
- text "Delete Selected Saved Game"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_choose
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textalignx 0
- textstyle 6
- textaligny 25
- textscale .3
- text "Select a Saved Game"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- 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
- }
-
-
- }
-
- }