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 "playersetup"
- style 3
- background "playersetup"
- 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 update "ui_GetName" ;
- }
- onClose { uiScript update "ui_SetName" }
- onESC { close playersetup; open main }
- itemDef {
- name modelselection
- style 1
- ownerdraw UI_PLAYERMODEL
- rect 360 40 310 450
- decoration
- visible 1
- }
- itemDef {
- name format // Layout
- style 3
- background "filter"
- 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_playersetup.tga"
- backcolor 0 0 0 0
- forecolor 1 1 1 1
- visible 1
- decoration
- }
- itemDef {
- name title
- style 3
- rect 10 5 256 32
- background "ui/sidrial/text_playersetup.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 playersetup ; 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 playersetup ; 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 playersetup ; open main }
- }
- itemDef {
- name modelselection
- ownerdraw UI_PLAYERMODEL
- rect 320 140 260 300
- style 1
- visible 1
- decoration
- }
- itemDef {
- name namefield
- group "playersettinggroup"
- type ITEM_TYPE_EDITFIELD
- style 0
- text "Player Name:"
- cvar "ui_Name"
- textstyle 6
- maxChars 32
- rect 55 150 215 32
- textalign ITEM_ALIGN_LEFT
- textalignx 5
- textaligny 21
- textscale .4
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- forecolor .66 1 0 1
- border 0
- bordercolor 0 0 0 0
- visible 1
- mouseenter { show message_name; }
- mouseexit { hide message_name; }
- }
- itemDef {
- name handicapfield
- style 0
- text "Handicap:"
- ownerdraw UI_HANDICAP
- textstyle 6
- rect 55 205 215 32
- textalign ITEM_ALIGN_LEFT
- textalignx 5
- textaligny 21
- textscale .4
- outlinecolor 1 .5 .5 .5
- backcolor 0 0 0 0
- forecolor .66 1 0 1
- border 0
- bordercolor 0 0 0 0
- visible 1
- mouseEnter { show message_handicap }
- mouseExit { hide message_handicap }
- }
- itemDef {
- name words
- type 0
- text "Select Player Model:"
- style 0
- textstyle 6
- rect 55 260 150 30
- forecolor .66 1 0 1
- textalignx 5
- textaligny 30
- textalign 0
- textscale .4
- visible 1
- decoration
- }
- itemDef {
- name headlist
- rect 60 300 250 80
- group grpquaketype
- type ITEM_TYPE_LISTBOX
- style WINDOW_STYLE_FILLED
- elementwidth 61.75
- elementheight 61.75
- elementtype LISTBOX_IMAGE
- feeder FEEDER_Q3HEADS
- horizontalscroll
- border 0
- backcolor .66 1 0 .25
- outlinecolor .66 1 0 1
- visible 1
- mouseenter { show message_model; setitemcolor headlist bordercolor 1 1 1 1 ; }
- mouseexit { hide message_model; setitemcolor headlist bordercolor .66 1 0 1 ; }
-
- }
-
- //Help Messages//
- itemDef {
- name message_back
- group grpmessage
- style 0
- rect 320 420 128 30
- textstyle 6
- textalign 1
- textalignx 0
- textaligny 25
- textscale .3
- text "Back to Main Menu"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_name
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Type Your Player Name"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_handicap
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Click to Change Handicap"
- forecolor 1 1 1 1
- decoration
- visible 0
- }
- itemDef {
- name message_model
- group grpmessage
- style 0
- rect 320 420 128 30
- textalign 1
- textstyle 6
- textalignx 0
- textaligny 25
- textscale .3
- text "Click to Choose Your Player Model"
- 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
- }
-
-
-
- }
-
- }