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 "server"
- style 3
- background "createserver"
- 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 loadArenas ;
- }
- onEsc { close server; open multiplayer; }
-
- 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 multiplayer
- group icon
- style 3
- rect 580 40 40 40
- background "ui/sidrial/icon_multiplayer.tga"
- backcolor .66 1 0 1
- visible 1
- decoration
- }
- itemDef {
- name subtitle
- group words
- type 0
- text "Create Server"
- 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_multiplayer.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 server ; open multiplayer }
- }
- 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 server ; open multiplayer }
- }
- 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 { fadein message_back; transition backbar 20 440 196 0 20 420 196 40 20 5 ;}
- mouseExit { fadeout message_back; transition backbar 20 420 196 40 20 440 196 0 20 5 ; }
- action { close server ; open multiplayer }
- }
-
- itemDef {
- name continuebar
- group continue
- style 2
- rect 405 420 -210 40
- backcolor .66 1 0 .7
- border 0
- visible 0
- action { close server ; uiScript StartServer }
- }
- 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 server ; uiScript StartServer }
- }
- itemDef {
- name continue
- 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 server ; uiScript StartServer }
- }
-
- // map selection
-
-
- itemDef {
- name mappreview
- style 0
- ownerdraw UI_STARTMAPCINEMATIC
- rect 101 131 190 141
- border 1
- bordercolor .5 .5 .5 .5
- visible 1
- }
- itemDef {
- name mappreview
- style WINDOW_STYLE_FILLED
- rect 100 130 192 143
- border 1
- bordercolor .66 1 0 1
- visible 1
- }
-
- itemDef {
- name maplist
- rect 100 276 192 131
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 120
- elementheight 20
- textscale .25
- elementtype LISTBOX_TEXT
- feeder FEEDER_ALLMAPS
- textstyle 6
- textalign 3
- textaligny 14
- border 1
- bordercolor .66 1 0 1
- backcolor .66 1 0 .3
- outlinecolor .66 1 0 1
- visible 1
- columns 1 2 190 25
- mouseEnter { fadein message_arena ; setitemcolor maplist bordercolor 1 1 1 1 }
- mouseExit { fadeout message_arena ; setitemcolor maplist bordercolor .66 1 0 1 }
- }
-
- // SETTINGS //
- itemDef {
- name gametypefield
- style 0
- ownerdraw UI_NETGAMETYPE
- text "Type:"
- rect 360 132 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseEnter { fadein message_gametype }
- mouseExit { fadeout message_gametype }
- }
- itemDef {
- name normal
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Frag Limit:"
- cvar "fraglimit"
- ownerdrawflag UI_SHOW_NETANYNONTEAMGAME
- rect 360 147 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- maxchars 4
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
- itemDef {
- name normal
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Time Limit:"
- cvar "timelimit"
- rect 360 162 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- maxchars 4
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
- itemDef {
- name normal
- group grpsettings
- type ITEM_TYPE_YESNO
- text "Pure Server:"
- cvar "sv_pure"
- rect 360 177 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_yesno; }
- mouseexit { hide message_yesno; }
- }
-
- itemDef {
- name normal
- group grpsettings
- type ITEM_TYPE_MULTI
- text "Dedicated:"
- // syntax for this is cvar name followed by a semicolan separated list of choices first choice equals 0
- // dedicated is a special cvar in that as soon as it is set, the game goes to console only so the ui catches this one specifically
- cvar "ui_dedicated"
- cvarFloatList { "No" 0 "LAN" 1 "Internet" 2 }
- rect 360 192 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_EDITFIELD
- text "Host Name:"
- cvar "sv_hostname"
- maxChars 32
- maxPaintChars 20
- rect 360 207 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
-
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_YESNO
- text "Auto Download:"
- cvar "sv_allowdownload"
- rect 360 222 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_yesno; }
- mouseexit { hide message_yesno; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_YESNO
- text "Enable Voting:"
- cvar "g_allowvote"
- rect 360 237 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_yesno; }
- mouseexit { hide message_yesno; }
- }
-
-
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Maximum Players:"
- cvar "sv_maxclients"
- rect 360 252 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- maxchars 4
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
-
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Minimum Ping:"
- cvar "sv_minping"
- rect 360 267 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- maxchars 4
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Maximum Ping:"
- cvar "sv_maxping"
- rect 360 282 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- maxchars 4
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_YESNO
- text "Do Warmup:"
- cvar "g_dowarmup"
- rect 360 297 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_yesno; }
- mouseexit { hide message_yesno; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Warmup time:"
- cvar "g_warmup"
- rect 360 312 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- maxchars 4
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_YESNO
- text "Synchronous Client:"
- cvar "g_synchronousclients"
- rect 360 327 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_yesno; }
- mouseexit { hide message_yesno; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Max Rate:"
- cvar "sv_maxrate"
- rect 360 342 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- maxchars 4
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Zombie Time:"
- cvar "sv_zombietime"
- rect 360 357 128 12
- maxchars 4
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
-
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_NUMERICFIELD
- text "Reconnect Limit:"
- cvar "sv_reconnectlimit"
- maxchars 4
- rect 360 372 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_edit; }
- mouseexit { hide message_edit; }
- }
- itemDef {
- name expert
- group grpsettings
- type ITEM_TYPE_YESNO
- text "Friendly Fire:"
- cvar "g_friendlyfire"
- rect 360 387 128 12
- textalign ITEM_ALIGN_RIGHT
- textalignx 85
- textaligny 12
- textscale .25
- forecolor .66 1 0 1
- visible 1
- mouseenter { show message_yesno; }
- mouseexit { hide message_yesno; }
- }
- // 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 Join Server"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_gametype
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textalignx 0
- textstyle 6
- textaligny 25
- textscale .3
- text "Select Game Type"
- 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 "Start Server"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_arena
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Select Map"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_normal
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Select to Modify Normal Server Settings"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_edit
- style 0
- rect 320 420 128 30
- text "Click to Edit Field"
- forecolor 1 1 1 1
- textstyle 6
- textscale .3
- textalignx 1
- textalign 1
- textaligny 25
- visible 0
- decoration
- }
- //FADE BOX//
- 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
- }
-
-
-
- }
-
- }