Initial revision
This commit is contained in:
parent
d690c0d5e5
commit
f2f1e273dd
|
@ -0,0 +1,323 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ ADD FILTER POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "addfilter_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 190 200 256 256
|
||||
outOfBoundsClick
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { hide grpFilter ; show add }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 256 256
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 220 256 1
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// BUTTONS //
|
||||
|
||||
itemDef {
|
||||
name filter_add
|
||||
text "Add"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 10 5 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpFilter ; show add }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name filter_edit
|
||||
text "Edit"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 90 5 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpFilter ; show edit }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name filter_delete
|
||||
text "Delete"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 170 5 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpFilter ; show delete }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// ADD FILTER //
|
||||
|
||||
|
||||
itemDef {
|
||||
name add
|
||||
group grpFilter
|
||||
text "Description:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 30 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name add
|
||||
group grpFilter
|
||||
text "Filter Name:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name add
|
||||
group grpFilter
|
||||
rect 20 80 216 105
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_PLAYER_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor add bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor add bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name add
|
||||
text "Add"
|
||||
group grpFilter
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 190 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// EDIT //
|
||||
|
||||
|
||||
itemDef {
|
||||
name edit
|
||||
group grpFilter
|
||||
text "Description:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 30 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name edit
|
||||
group grpFilter
|
||||
text "Filter Name:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name edit
|
||||
group grpFilter
|
||||
rect 20 80 216 105
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_PLAYER_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor edit bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor edit bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name edit
|
||||
text "Accept"
|
||||
group grpFilter
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 190 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// DELETE //
|
||||
|
||||
itemDef {
|
||||
name delete
|
||||
group grpFilter
|
||||
text "Filter Name:"
|
||||
textscale .25
|
||||
rect 20 30 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name delete
|
||||
group grpFilter
|
||||
rect 20 80 216 105
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_PLAYER_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor delete bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor delete bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name delete
|
||||
text "Delete"
|
||||
group grpFilter
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 190 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// OK //
|
||||
|
||||
itemDef {
|
||||
name type
|
||||
text "Exit"
|
||||
textscale .25
|
||||
type 1
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 230 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { close addfilter_popmenu ; close joinserver ; open joinserver }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,306 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
// botselection menu
|
||||
{
|
||||
menuDef {
|
||||
name "BotSelection"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 200 80 132
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name "Possess"
|
||||
text "Possess"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 5 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show pbar }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "pbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 5 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Follow"
|
||||
text "Follow"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 17 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show fbar }
|
||||
}
|
||||
itemDef {
|
||||
name "fbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Go To"
|
||||
text "Go To"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 29 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show gbar }
|
||||
}
|
||||
itemDef {
|
||||
name "gbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 29 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Get"
|
||||
text "Get"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 41 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show g2bar }
|
||||
action { open getMenu }
|
||||
}
|
||||
itemDef {
|
||||
name "g2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 41 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Patrol From"
|
||||
text "Patrol From"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 53 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p2bar }
|
||||
}
|
||||
itemDef {
|
||||
name "p2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 53 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Patrol To"
|
||||
text "Patrol To"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 65 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p3bar }
|
||||
}
|
||||
itemDef {
|
||||
name "p3bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 65 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Camp Near"
|
||||
text "Camp Near"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 77 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show cbar }
|
||||
}
|
||||
itemDef {
|
||||
name "cbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 75 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Defend"
|
||||
text "Defend"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 89 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dbar }
|
||||
}
|
||||
itemDef {
|
||||
name "dbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 89 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Attack"
|
||||
text "Attack"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 101 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show abar }
|
||||
}
|
||||
itemDef {
|
||||
name "abar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 101 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Drop Command"
|
||||
text "Drop Command"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 113 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dcbar }
|
||||
}
|
||||
itemDef {
|
||||
name "dcbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 113 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "getMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 86 238 85 35
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name "Enemy Flag"
|
||||
text "Enemy Flag"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 3 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show efbar }
|
||||
action { close getMenu ; close teamMenu ; orders get flag }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "efbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 3 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Rocket Launcher"
|
||||
text "Rocket Launcher"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 17 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show rlbar }
|
||||
action { close getMenu ; close teamMenu ; orders get rocketlauncher }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "rlbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "voiceMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 25 40 40
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "console"
|
||||
//backcolor 0 0 0.5 0.5
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 2 33 33
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_SELECTEDPLAYER_HEAD
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "voteMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 25 40 40
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "textures/base_wall/comp3"
|
||||
backcolor 0 0 0.5 0.5
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor 0 1 0 1
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,312 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "cdkey_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onClose {
|
||||
uiScript verifyCDKey
|
||||
}
|
||||
onOpen {
|
||||
setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
hide grpfinish ;
|
||||
uiScript getCDKey
|
||||
}
|
||||
onEsc { close cdkey_menu ; close setup_menu ; open main }
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpSystembutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// DEMO ONLY OPTION //
|
||||
|
||||
itemDef {
|
||||
name demo_only
|
||||
group grpcdkey
|
||||
rect 0 145 454 30
|
||||
text"This Option is Not Available in Demo."
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textscale .333
|
||||
textalignx 217
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name data
|
||||
group grpcdkey
|
||||
rect 0 145 454 30
|
||||
text"Enter your encryption code in the field below."
|
||||
textalign 1
|
||||
textscale .333
|
||||
textalignx 217
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
style 0
|
||||
text "Code:"
|
||||
maxchars 4
|
||||
rect 60 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
decoration
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkey1"
|
||||
maxchars 4
|
||||
rect 107 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkey2"
|
||||
maxchars 4
|
||||
rect 162 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkey3"
|
||||
maxchars 4
|
||||
rect 217 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text""
|
||||
cvar "cdkey4"
|
||||
maxchars 4
|
||||
rect 272 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
style 0
|
||||
text "-"
|
||||
maxchars 2
|
||||
rect 327 192 60 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
backcolor 0 0 0 0
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkeychecksum"
|
||||
maxchars 2
|
||||
rect 335 192 40 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 .25
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
itemDef {
|
||||
name accept
|
||||
text "Verify"
|
||||
type 1
|
||||
group grpcdkey
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 161 247 100 26
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action {
|
||||
play "sound/misc/nomenu.wav" ;
|
||||
uiScript verifyCDKey ;
|
||||
show finish_message
|
||||
}
|
||||
mouseEnter { setitemcolor accept backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor accept backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
group grpcdkey
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 161 247 100 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
group grpcdkey
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 149 247 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
group grpcdkey
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 260 247 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name finish_message
|
||||
group grpfinish
|
||||
style 0
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
text ""
|
||||
cvar ui_cdkeyvalid
|
||||
rect 0 290 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 5 7 24 24
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/bluechip.tga"
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 5 7 24 24
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_BLUE_FLAGSTATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 67 7 24 24
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/redchip.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 67 7 24 24
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_RED_FLAGSTATUS
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Cinematic \\
|
||||
|
||||
menuDef {
|
||||
name "cinematic"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { exec "cinematic idlogo.RoQ" ; open credit }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,308 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CINEMATIC \\
|
||||
|
||||
menuDef {
|
||||
name "cinematicMenu"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onEsc { close cinematicMenu ; open main }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
play "sound/misc/kcswish.wav" ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
fadeout fadebox ;
|
||||
transition mappreview 0 0 640 480 54 144 256 192 20 10 ;
|
||||
uiScript loadMovies ;
|
||||
hide lightning ;
|
||||
hide accept_alt ;
|
||||
show accept ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_e
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
background "menuback_e"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_b
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
visible 1
|
||||
background "menuback_b"
|
||||
bordercolor 0.5 0.5 0.5 .7
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name windowscreen
|
||||
rect 0 0 640 240
|
||||
style 3
|
||||
background levelshotdetail
|
||||
forecolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name windowscreen
|
||||
rect 0 240 640 240
|
||||
style 3
|
||||
background levelshotdetail
|
||||
forecolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelbar
|
||||
text "TEAM ARENA CINEMATICS"
|
||||
textstyle 6
|
||||
style 2
|
||||
rect 0 16 640 40
|
||||
textscale 0.416
|
||||
textalign 1 // center
|
||||
textalignx 320 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 27
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name cinematiclist
|
||||
rect 330 144 256 192
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_CINEMATICS
|
||||
doubleclick { uiScript playMovie }
|
||||
textalign 3
|
||||
textaligny 14
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .1 1
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 1
|
||||
mouseEnter { fadein message_cinematic ; setitemcolor cinematiclist bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_cinematic ; setitemcolor cinematiclist bordercolor .5 .5 .5 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close cinematicMenu ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close cinematicMenu ; open main }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
style 3
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseEnter { playlooped "sound/misc/loop_electricity_05.wav" ; show lightning ; hide accept ; show accept_alt ; fadein message_accept }
|
||||
action { close cinematicMenu ; uiScript playMovie }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept_alt
|
||||
style 3
|
||||
rect 572 422 54 54
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
action { close cinematicMenu ; uiScript playMovie }
|
||||
mouseExit { hide lightning ; hide accept_alt ; show accept ; fadeout message_accept ; playlooped "music/fla_mp03.wav" }
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 46 385 174 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 417 385 174 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_cinematic
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Select Cinematic to Play"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_accept
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Select to Play Fullscreen"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name mappreview
|
||||
ownerdraw UI_PREVIEWCINEMATIC
|
||||
rect 54 144 256 192
|
||||
backcolor 1 1 1 .25
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
lcc -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I..\..\game -I..\..\ta_ui %1
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
|
||||
{
|
||||
|
||||
menuDef {
|
||||
name "Connect"
|
||||
background "ui/assets/backscreen"
|
||||
rect 0 0 640 480
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
style WINDOW_STYLE_SHADER
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,911 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "control_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { hide grpControls ; show look }
|
||||
|
||||
|
||||
itemDef {
|
||||
name controls_shader
|
||||
group grpControls
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 45 640 60
|
||||
visible 0
|
||||
background "ui/assets/controls_shader1"
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpControlbutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name keyBindStatus
|
||||
rect 0 15 640 30
|
||||
ownerdraw UI_KEYBINDSTATUS
|
||||
text " "
|
||||
forecolor 1 .75 0 1
|
||||
textscale .25
|
||||
textalignx 100
|
||||
textalign 1
|
||||
textaligny 20
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_look
|
||||
text "Look"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 37 395 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show look }
|
||||
mouseEnter { show message_look ; setitemcolor ctr_look backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_look ; setitemcolor ctr_look backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_look
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 37 395 45 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_look
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 25 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_look
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 81 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Look Down:"
|
||||
cvar "+lookdown"
|
||||
//rect 99 140 256 20
|
||||
rect 99 135 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Mouse Look:"
|
||||
cvar "+mlook"
|
||||
rect 99 160 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Centerview:"
|
||||
cvar "centerview"
|
||||
rect 99 185 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "ZoomView:"
|
||||
cvar "+zoom"
|
||||
rect 99 210 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Free Look:"
|
||||
cvar "cl_freelook"
|
||||
rect 99 235 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_move
|
||||
text "Move"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 116 395 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show move }
|
||||
mouseEnter { show message_move ; setitemcolor ctr_move backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_move ; setitemcolor ctr_move backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_move
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 116 395 45 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_move
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 104 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_move
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 160 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Always Run:"
|
||||
cvar "+speed"
|
||||
rect 99 50 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Forward:"
|
||||
cvar "+forward"
|
||||
rect 99 75 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Backpedal:"
|
||||
cvar "+back"
|
||||
rect 99 100 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Move Left:"
|
||||
cvar "+moveleft"
|
||||
rect 99 125 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Move Right:"
|
||||
cvar "+moveright"
|
||||
rect 99 150 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Jump:"
|
||||
cvar "+moveup"
|
||||
rect 99 175 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Crouch:"
|
||||
cvar "+movedown"
|
||||
rect 99 200 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Turn Left:"
|
||||
cvar "+left"
|
||||
rect 99 225 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Turn Right:"
|
||||
cvar "+right"
|
||||
rect 99 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Strafe:"
|
||||
cvar "+strafe"
|
||||
rect 99 275 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
text "Shoot"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 197 395 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show shoot }
|
||||
mouseEnter { show message_shoot ; setitemcolor ctr_shoot backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_shoot ; setitemcolor ctr_shoot backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 197 395 45 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 185 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 241 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Attack:"
|
||||
cvar "+attack"
|
||||
rect 99 50 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Previous Weapon:"
|
||||
cvar "weapprev"
|
||||
rect 99 70 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Next Weapon:"
|
||||
cvar "weapnext"
|
||||
rect 99 90 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Autoswitch:"
|
||||
cvar "cg_autoswitch"
|
||||
rect 99 110 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Gauntlet:"
|
||||
cvar "weapon 1"
|
||||
rect 99 130 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Machinegun:"
|
||||
cvar "weapon 2"
|
||||
rect 99 150 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Shotgun:"
|
||||
cvar "weapon 3"
|
||||
rect 99 170 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Grenade Launcher:"
|
||||
cvar "weapon 4"
|
||||
rect 99 190 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Rocket Launcher:"
|
||||
cvar "weapon 5"
|
||||
rect 99 210 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Lightning Gun:"
|
||||
cvar "weapon 6"
|
||||
rect 99 230 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Railgun:"
|
||||
cvar "Weapon 7"
|
||||
rect 99 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Plasma Gun:"
|
||||
cvar "weapon 8"
|
||||
rect 99 270 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "BFG:"
|
||||
cvar "weapon 9"
|
||||
rect 99 290 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Nail Gun:"
|
||||
cvar "weapon 11"
|
||||
rect 99 310 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Proximity Mine:"
|
||||
cvar "weapon 12"
|
||||
rect 99 330 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Chain Gun:"
|
||||
cvar "weapon 13"
|
||||
rect 99 350 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
text "Miscellaneous"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 282 395 140 26
|
||||
textalign 1
|
||||
textalignx 70
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show misc }
|
||||
mouseEnter { show message_misc ; setitemcolor ctr_miscellaneous backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_misc ; setitemcolor ctr_miscellaneous backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 282 395 140 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 270 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 421 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Show Scores:"
|
||||
cvar "+scores"
|
||||
rect 99 50 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Use Item:"
|
||||
cvar "+button2"
|
||||
rect 99 75 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Gesture:"
|
||||
cvar "+button3"
|
||||
rect 99 100 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Chat:"
|
||||
cvar "messagemode"
|
||||
rect 99 125 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Team Chat:"
|
||||
cvar "messagemode2"
|
||||
rect 99 150 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Target Chat:"
|
||||
cvar "messagemode3"
|
||||
rect 99 175 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Attack Chat:"
|
||||
cvar "messagemode4"
|
||||
rect 99 200 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Senstivity:"
|
||||
cvarfloat "sensitivity" 5 1 30
|
||||
rect 99 225 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Invert Mouse:"
|
||||
cvar "ui_mousePitch"
|
||||
rect 99 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript update mousePitch }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Smooth Mouse:"
|
||||
cvar "m_filter"
|
||||
rect 99 275 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Next Team Member:"
|
||||
cvar "nextTeamMember"
|
||||
rect 99 300 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Next Team Order:"
|
||||
cvar "nextOrder"
|
||||
rect 99 325 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,199 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CREATE FAVORITE POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "createfavorite_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 204 122 235 235
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC { close createfavorite_popmenu ; open joinserver }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 235 235
|
||||
style 3
|
||||
background "ui/assets/mainpop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 47 47 144 144
|
||||
style 3
|
||||
background "centerconsole2"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ENTER NAME AND ADDRESS //
|
||||
|
||||
itemDef {
|
||||
name name
|
||||
text "Name"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 1 62 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name name
|
||||
text "Name"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 0 61 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name nameEntry
|
||||
style 1
|
||||
maxchars 15
|
||||
text ":"
|
||||
textscale .25
|
||||
TYPE 4
|
||||
cvar "ui_favoriteName"
|
||||
rect 60 81 120 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
mouseenter { setitemcolor nameentry backcolor 0 0 0 .75 }
|
||||
mouseexit { setitemcolor nameentry backcolor 0 0 0 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name address
|
||||
text "IP Address"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 1 112 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name address
|
||||
text "IP Address"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 0 111 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name addressEntry
|
||||
style 1
|
||||
maxchars 20
|
||||
maxPaintChars 12
|
||||
text ":"
|
||||
textscale .25
|
||||
TYPE 4
|
||||
maxchars 21
|
||||
cvar "ui_favoriteAddress"
|
||||
rect 60 131 120 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
mouseenter { setitemcolor addressEntry backcolor 0 0 0 .75 }
|
||||
mouseexit { setitemcolor addressEntry backcolor 0 0 0 .25 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "Ok"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 103 158 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
uiScript CreateFavorite ;
|
||||
close createfavorite_popmenu ;
|
||||
open joinserver }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 103 158 30 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 97 158 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 132 158 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,459 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CREDIT \\
|
||||
|
||||
menuDef {
|
||||
name "credit"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
soundloop ""
|
||||
onEsc { close credit ; open menu }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
show grpidcredit ;
|
||||
hide grpoutcredit ;
|
||||
transition programming 0 0 640 30 0 80 640 30 20 10 ;
|
||||
transition artist 0 0 640 30 0 110 640 30 20 10 ;
|
||||
transition levelDesign 0 0 640 30 0 140 640 30 20 10 ;
|
||||
transition gameDesign 0 0 640 30 0 170 640 30 20 10 ;
|
||||
transition ceo 0 0 640 30 0 200 640 30 20 10 ;
|
||||
transition bizdev 0 0 640 30 0 230 640 30 20 10 ;
|
||||
transition idMom 0 0 640 30 0 260 640 30 20 10 ;
|
||||
transition devAssist 0 0 640 30 0 290 640 30 20 10 ;
|
||||
transition progAssist 0 0 640 30 0 340 640 30 20 10 ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name mappreview
|
||||
style 5
|
||||
cinematic "idlogo.roq"
|
||||
rect 0 0 640 480
|
||||
backcolor 1 1 1 .25
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name idcredit
|
||||
group grpidcredit
|
||||
rect 0 50 620 20
|
||||
style 1
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textstyle 6
|
||||
textscale .4
|
||||
text "id Software is:"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name programming
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 80 640 30
|
||||
textalign 1
|
||||
textstyle 6
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "PROGRAMMING: John Carmack, Robert Duffy, Jim Dose'"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name artist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 110 640 30
|
||||
textstyle 6
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "ART: Adrian Carmack, Kevin Cloud, Kenneth Scott, Seneca Menard, Fred Nilsson "
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 140 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "LEVEL DESIGN: Tim Willits, Christian Antkow, Paul Jaquays"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gameDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 170 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "GAME DESIGN: Graeme Devine"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ceo
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 200 640 30
|
||||
textstyle 6
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "CEO: Todd Hollenshead"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name bizDev
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 230 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "BUSINESS DEVELOPMENT: Marty Stratton"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idMom
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 260 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "OFFICE MANAGER AND ID MOM: Donna Jackson"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name devAssist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 290 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "DEVELOPMENT ASSISTANCE: Eric Webb"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name progAssist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 340 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "BOT AI & PROGRAMMING ASSISTANCE: Jan Paul van Waveren"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name outcreditbttn
|
||||
group grpidcredit
|
||||
rect 255 400 130 26
|
||||
type 1
|
||||
text "Additional Credit"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .25
|
||||
textalignx 65
|
||||
textaligny 20
|
||||
visible 0
|
||||
backcolor .37 .1 .1 1
|
||||
forecolor 1 1 1 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grpidcredit ;
|
||||
show grpoutcredit }
|
||||
mouseEnter { setitemcolor outcreditbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor outcreditbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 255 400 130 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 243 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 384 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// OUTSIDE CREDIT //
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
rect 0 50 620 20
|
||||
style 1
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textstyle 6
|
||||
textscale .4
|
||||
text "Additional Assistance"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style 1
|
||||
rect 75 100 620 15
|
||||
textalign 0
|
||||
textstyle 3
|
||||
textalignx 5
|
||||
textaligny 10
|
||||
textscale .25
|
||||
wrapped
|
||||
text"Additional Map Work by Ka'ai Cluney\r"
|
||||
"Additional Progamming by John Cash\r"
|
||||
"Character Models and Animation by Paul Steed\r"
|
||||
"Additional Model Work by Beau Anderson\r"
|
||||
"Motion Capture by Pyros Pictures, House of Moves, and LocoMotion Studios\r\r\r"
|
||||
"Sound Design by Soundelux Showorks\r"
|
||||
"Music by Sonic Mayhem (www.sonicmayhem.com)\r"
|
||||
"Music by Front Line Assembly\r\r\r"
|
||||
"Manual by William W. Connors\r"
|
||||
"Manual & Package Design by Focus2\r"
|
||||
"Portions of Team Arena based in part on the work of the Independent JPEG Group\r"
|
||||
"Font rendering performed by FreeType ( www.freetype.org )"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpoutcredit
|
||||
type 1
|
||||
rect 260 400 120 26
|
||||
text "id Credit"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .25
|
||||
textalignx 60
|
||||
textaligny 20
|
||||
visible 0
|
||||
backcolor .37 .1 .1 1
|
||||
forecolor 1 1 1 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grpoutcredit ;
|
||||
show grpidcredit }
|
||||
mouseEnter { setitemcolor idcreditbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor idcreditbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 260 400 120 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 248 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 379 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close credit ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; show message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; hide message_back }
|
||||
action { close credit ; open main }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,255 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ DEFAULT MENU \\
|
||||
|
||||
menuDef {
|
||||
name "default_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
show grpdefault ;
|
||||
hide grpfinish }
|
||||
onEsc { close default_menu ; close setup_menu ; open main }
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpControlbutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "This will set your Controls,"
|
||||
rect 0 140 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "Graphics and game Options"
|
||||
rect 0 160 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "to their original defaults."
|
||||
rect 0 180 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "Are you sure?"
|
||||
rect 0 220 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "YES"
|
||||
group grpdefault
|
||||
type 1
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 135 250 70 26
|
||||
textalign 1
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
hide grpdefault ;
|
||||
show grpfinish ;
|
||||
uiScript resetDefaults }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 135 250 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 123 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 204 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "No"
|
||||
group grpdefault
|
||||
type 1
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 235 250 70 26
|
||||
textalign 1
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close default_menu ; open control_menu }
|
||||
mouseEnter { setitemcolor no backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor no backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 235 250 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 223 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 304 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name finish_message
|
||||
group grpfinish
|
||||
style 0
|
||||
text "Your settings are now set"
|
||||
rect 0 160 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name finish_message
|
||||
group grpfinish
|
||||
style 0
|
||||
text "to their original default values."
|
||||
rect 0 180 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,266 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Fight \\
|
||||
|
||||
menuDef {
|
||||
name "demo"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
fadeout fadebox ; uiScript LoadDemos ;
|
||||
hide lightning ;
|
||||
hide accept_alt ;
|
||||
show accept ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
onEsc { close demo ; open main }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelbar
|
||||
style 2
|
||||
text "TEAM ARENA DEMOS"
|
||||
rect 0 16 640 40
|
||||
textstyle 6
|
||||
textscale 0.416
|
||||
textalign 1 // center
|
||||
textalignx 320 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 27
|
||||
forecolor 1 1 1 1
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarenaimage
|
||||
style 3
|
||||
background "ui/assets/teamarenaimage.tga"
|
||||
rect 0 80 220 115
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name mappreview
|
||||
style 5
|
||||
cinematic "mpintro.roq"
|
||||
rect 20 195 200 150
|
||||
backcolor 1 1 1 .25
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name demolist
|
||||
rect 240 100 360 300
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_DEMOS
|
||||
textalign 3
|
||||
textaligny 14
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 1
|
||||
mouseEnter { fadein message_demos ; setitemcolor demolist bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_demos ; setitemcolor demolist bordercolor .5 .5 .5 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close demo ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close demo ; open main }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
style 3
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseEnter { show lightning ; hide accept ; show accept_alt ; show message_accept ; playlooped "sound/misc/loop_electricity_05.wav" }
|
||||
action { close demo }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept_alt
|
||||
style 3
|
||||
rect 572 422 54 54
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
action { close demo ; uiScript RunDemo }
|
||||
mouseExit { hide lightning ; hide accept_alt ; show accept ; hide message_accept ; playlooped "music/fla_mp03.wav" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 44 385 246 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 345 385 246 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_accept
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "View Demo"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_demos
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select Recorded Game To View"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,252 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ DEMO QUIT \\
|
||||
|
||||
menuDef {
|
||||
name "demo_quit"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onEsc { uiScript "quit" }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox }
|
||||
|
||||
|
||||
itemDef {
|
||||
name actionback
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 0 0 640 480
|
||||
type 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
uiScript "quit" }
|
||||
}
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
itemDef {
|
||||
name teamarenaart
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/teamarenaimage2.tga"
|
||||
rect 64 0 512 150
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name demo
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 160 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .5
|
||||
text ""
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name artist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 190 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "Thanks for playing the Quake III: Team Arena DEMO."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 220 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "For more information about Team Arena"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gameDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 250 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "check out the official Quake III website at"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ceo
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 280 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "www.quake3world.com."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name bizDev
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 310 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text ""
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idMom
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 340 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "Christmas 2000."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name devAssist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 380 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "Full Version of Quake III is Required."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
rect 255 420 130 26
|
||||
type 1
|
||||
text "Click to Exit"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .25
|
||||
textalignx 65
|
||||
textaligny 20
|
||||
visible 1
|
||||
decoration
|
||||
backcolor .37 .1 .1 1
|
||||
forecolor 1 1 1 1
|
||||
action { play "sound/misc/nomenu.wav" }
|
||||
mouseEnter { setitemcolor exitbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor exitbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 255 420 130 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 243 420 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 384 420 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name copyright
|
||||
text "Quake III: Team Arena Copyright 2000 Id Software, Inc. All rights reserved"
|
||||
style 0
|
||||
textscale .25
|
||||
rect 0 440 640 40
|
||||
textalign 1
|
||||
textaligny 32
|
||||
textalignx 320
|
||||
forecolor .75 0 0 .75
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,318 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ END OF GAME \\
|
||||
|
||||
menuDef {
|
||||
name "error_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 158 80 320 320
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onClose { uiScript clearError }
|
||||
onOpen { }
|
||||
onESC { close error_popmenu ; open main }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 320
|
||||
style 1
|
||||
backcolor .8 .66 .15 1
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 320
|
||||
style 3
|
||||
background "warning"
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 10
|
||||
style 1
|
||||
backcolor 0 0 0 .25
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 30 35 250 270
|
||||
style 1
|
||||
backcolor .5 .41 .09 1
|
||||
forecolor 0 0 0 1
|
||||
border 1
|
||||
bordercolor 0 0 0 1
|
||||
bordersize 5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 184 10 96 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 330 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 172 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name errorinfo
|
||||
rect 0 50 320 20
|
||||
text "Error:"
|
||||
textalign 1
|
||||
textstyle 6
|
||||
textscale .333
|
||||
textalignx 160
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name errorinfo
|
||||
rect 60 80 200 270
|
||||
type ITEM_TYPE_TEXT
|
||||
style 1
|
||||
textstyle 3
|
||||
autowrapped
|
||||
cvar "com_errorMessage"
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 100
|
||||
textaligny 23
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BUTTON //
|
||||
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
text "Exit"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 138 295 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close error_popmenu ;
|
||||
open main }
|
||||
mouseEnter { setitemcolor exit backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor exit backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 138 295 45 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 126 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 182 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,770 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Fight \\
|
||||
|
||||
menuDef {
|
||||
name "fight"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background uibackground4
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name fight
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 45 512 128
|
||||
visible 1
|
||||
background "fight"
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name leftgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradleft.tga"
|
||||
rect 64 249 256 102
|
||||
forecolor .75 0 0 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rightgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradright.tga"
|
||||
rect 320 249 256 102
|
||||
forecolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name leftvertgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/verticalgradient.tga"
|
||||
rect 16 249 128 102
|
||||
forecolor .75 0 0 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rightvertgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/verticalgradient.tga"
|
||||
rect 496 249 128 102
|
||||
forecolor 0 0 .75 0.5
|
||||
textscale 0.4
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
// GAMETYPE BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypebar
|
||||
style 2
|
||||
rect 0 5 640 40
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypefield
|
||||
style 0
|
||||
name tier
|
||||
ownerdraw UI_TIER
|
||||
rect 0 10 320 31
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 20
|
||||
textaligny 26
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
mouseEnter { fadein message_tier }
|
||||
mouseExit { fadeout message_tier }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gametypefield
|
||||
style 0
|
||||
ownerdraw UI_SKILL
|
||||
text "Skill:"
|
||||
rect 320 10 320 31
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 90
|
||||
textaligny 26
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
mouseEnter { fadein message_skill }
|
||||
mouseExit { fadeout message_skill }
|
||||
}
|
||||
|
||||
|
||||
// TEAM LOGO //
|
||||
|
||||
|
||||
itemDef {
|
||||
name playerlogo
|
||||
ownerdraw UI_PLAYERLOGO_METAL
|
||||
rect 28 250 100 100
|
||||
visible 1
|
||||
forecolor 1 .7 .7 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name opposinglogo
|
||||
ownerdraw UI_OPPONENTLOGO_METAL
|
||||
rect 488 250 100 100
|
||||
visible 1
|
||||
forecolor .7 .7 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// MAP INFO //
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 247 612 105
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name location
|
||||
text "VS"
|
||||
textscale 1
|
||||
rect 192 325 256 30
|
||||
textalign 1 // center
|
||||
textalignx 128 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 .5
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name level_info
|
||||
group grplevelinfo2
|
||||
ownerdraw UI_TIER_MAPNAME
|
||||
textscale .35
|
||||
rect 14 220 222 20
|
||||
textalign 0
|
||||
textalignx 3 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 18
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name level_info
|
||||
group grplevelinfo2
|
||||
ownerdraw UI_TIER_GAMETYPE
|
||||
textscale .35
|
||||
rect 236 220 122 20
|
||||
textalign 0
|
||||
textalignx 3 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 18
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name level_info
|
||||
group grplevelinfo2
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Captures "
|
||||
cvar "capturelimit"
|
||||
rect 358 220 122 20
|
||||
textalign 0
|
||||
textalignx 3
|
||||
textaligny 18
|
||||
textscale .35
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name level_info
|
||||
group grplevelinfo2
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Time "
|
||||
cvar "timelimit"
|
||||
rect 480 220 72 20
|
||||
textalign 0
|
||||
textalignx 3
|
||||
textaligny 18
|
||||
textscale .35
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name level_info
|
||||
group grplevelinfo2
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Frags "
|
||||
cvar "fraglimit"
|
||||
rect 552 220 72 20
|
||||
textalign 0
|
||||
textalignx 3
|
||||
textaligny 18
|
||||
textscale .35
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// TEAM NAME //
|
||||
|
||||
itemDef {
|
||||
name playerteamname
|
||||
ownerdraw UI_PLAYERLOGO_NAME
|
||||
rect 128 295 128 64
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name opposingteamname
|
||||
ownerdraw UI_OPPONENTLOGO_NAME
|
||||
rect 388 295 128 64
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// PLAYER STATS //
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 354 612 34
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name name
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 0
|
||||
text "Name:"
|
||||
cvar "name"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 0 363 128 30
|
||||
textalign 1 // center
|
||||
textalignx 64 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 17
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
text "Score:"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 246 363 128 30
|
||||
textalign 3 // center
|
||||
textalignx 16 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 17
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name wins
|
||||
text "Wins:"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 404 363 128 30
|
||||
textalign 1 // center
|
||||
textalignx 64 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 17
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
// AWARDS //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 390 612 38
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_accuracy
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 48 394 32 32
|
||||
background "ui/assets/medal_accuracy.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_assist
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 112 394 32 32
|
||||
background "ui/assets/medal_assist.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_accuracy
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 176 394 32 32
|
||||
background "ui/assets/medal_accuracy.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_defend
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 240 394 32 32
|
||||
background "ui/assets/medal_defend.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_excellent
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 304 394 32 32
|
||||
background "ui/assets/medal_excellent.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_frags
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 368 394 32 32
|
||||
background "ui/assets/medal_frags.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_gauntlet
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 432 394 32 32
|
||||
background "ui/assets/medal_gauntlet.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_impressive
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 496 394 32 32
|
||||
background "ui/assets/medal_impressive.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_victory
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 560 394 32 32
|
||||
background "ui/assets/medal_victory.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// SCREEN SHOT //
|
||||
|
||||
itemDef {
|
||||
name mapwindow
|
||||
rect 14 52 612 158
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
mouseenter { setitemcolor mapwindow bordercolor .7 0 0 1 ; fadein message_arena }
|
||||
mouseexit { setitemcolor mapwindow bordercolor .5 .5 .5 .5 ; fadeout message_arena }
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name screen1
|
||||
rect 19 57 198 148
|
||||
ownerdraw UI_TIERMAP1
|
||||
visible 1
|
||||
mouseenter { setitemcolor borderscreen1 backcolor .25 .25 .25 .25 }
|
||||
mouseexit { setitemcolor borderscreen1 backcolor 0 0 0 0 }
|
||||
action { setcvar ui_currentMap 0 ; setitemcolor grpborderscreen bordercolor .5 .5 .5 1 ; setitemcolor borderscreen1 bordercolor 1 0 0 1 }
|
||||
}
|
||||
|
||||
|
||||
itemdef {
|
||||
name screen2
|
||||
rect 221 57 198 148
|
||||
ownerdraw UI_TIERMAP2
|
||||
visible 1
|
||||
mouseenter { setitemcolor borderscreen2 backcolor .25 .25 .25 .25 }
|
||||
mouseexit { setitemcolor borderscreen2 backcolor 0 0 0 0 }
|
||||
action { setcvar ui_currentMap 1 ; setitemcolor grpborderscreen bordercolor .5 .5 .5 1 ; setitemcolor borderscreen2 bordercolor 1 0 0 1 }
|
||||
}
|
||||
|
||||
|
||||
itemdef {
|
||||
name screen3
|
||||
ownerdraw UI_TIERMAP3
|
||||
rect 423 57 198 148
|
||||
visible 1
|
||||
mouseenter { setitemcolor borderscreen3 backcolor .25 .25 .25 .25 }
|
||||
mouseexit { setitemcolor borderscreen3 backcolor 0 0 0 0 }
|
||||
action { setcvar ui_currentMap 2 ; setitemcolor grpborderscreen bordercolor .5 .5 .5 1 ; setitemcolor borderscreen3 bordercolor 1 0 0 1 }
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name borderscreen1
|
||||
group grpborderscreen
|
||||
rect 18 56 200 150
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
backcolor 0 0 0 0
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name borderscreen2
|
||||
group grpborderscreen
|
||||
rect 220 56 200 150
|
||||
style WINDOW_STYLE_FILLED
|
||||
decoration
|
||||
border 1
|
||||
backcolor 0 0 0 0
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
|
||||
}
|
||||
|
||||
|
||||
itemdef {
|
||||
name borderscreen3
|
||||
group grpborderscreen
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 0 0
|
||||
decoration
|
||||
rect 422 56 200 150
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close fight ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 16 424 50 50
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close fight ; open main }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
style 3
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseEnter { show lightning ; hide accept ; show accept_alt ; fadein message_accept }
|
||||
action { close fight ; uiScript SinglePlayerStart }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept_alt
|
||||
style 3
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
action { close fight ; uiScript SinglePlayerStart }
|
||||
mouseExit { hide lightning ; hide accept_alt ; show accept ; fadeout message_accept }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 46 385 246 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 345 385 246 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_accept
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Enter Arena"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_tier
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Choose Tier"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_skill
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Set Skill Level"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_arena
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Choose Your Arena"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,514 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Server Information Popup Menu \\
|
||||
|
||||
menuDef {
|
||||
name "findplayer_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 158 80 320 340
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onClose { }
|
||||
onOpen { uiScript FindPlayer ; setfocus namefield }
|
||||
onESC { close findplayer_popmenu ; open joinserver }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 310 330
|
||||
style 1
|
||||
backcolor 0 0 0 .5
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 320 340
|
||||
style 1
|
||||
backcolor 0 0 0 .25
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 320
|
||||
style 1
|
||||
backcolor .1 .1 .37 1
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 10
|
||||
style 1
|
||||
backcolor 0 0 0 .25
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 184 10 96 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 330 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 172 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name findplayer
|
||||
rect 0 20 320 20
|
||||
text "Find a Friend"
|
||||
textalign 1
|
||||
textstyle 3
|
||||
textscale .333
|
||||
textalignx 155
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 61 53 239 20
|
||||
style 1
|
||||
backcolor 0 0 0 .5
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name namefield
|
||||
group "playersettinggroup"
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 0
|
||||
text "Name:"
|
||||
cvar "ui_findplayer"
|
||||
maxChars 20
|
||||
rect 20 48 215 32
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 21
|
||||
textscale .3
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
action { ui_script FindPlayer }
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name serverNameList //LIST OF SERVER NAMES//
|
||||
rect 20 75 280 80
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 16
|
||||
textscale .225
|
||||
backcolor 0 0 0 1
|
||||
outlinecolor .1 .1 .7 .5
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_FINDPLAYER
|
||||
visible 1
|
||||
mouseenter { setitemcolor serverNamewindow bordercolor .7 0 0 1 }
|
||||
mouseexit { setitemcolor serverNamewindow bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name serverNamewindow
|
||||
rect 20 75 264 80
|
||||
style 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 0 0 0 0
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name serverInfoList //LIST OF SERVER STATUS INFORMATION//
|
||||
rect 20 175 280 110
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 16
|
||||
textscale .225
|
||||
backcolor 0 0 0 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_SERVERSTATUS
|
||||
notselectable
|
||||
visible 1
|
||||
columns 4 2 40 20
|
||||
40 40 10
|
||||
90 40 10
|
||||
135 40 20
|
||||
mouseenter { setitemcolor serverInfowindow bordercolor .7 0 0 1 }
|
||||
mouseexit { setitemcolor serverInfowindow bordercolor .5 .5 .5 1 }
|
||||
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name serverInfowindow
|
||||
rect 20 175 264 110
|
||||
style 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 0 0 0 0
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BUTTON //
|
||||
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
text "Exit"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 38 295 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action {play "sound/misc/nomenu.wav" ;
|
||||
close findplayer_popmenu ;
|
||||
open joinserver }
|
||||
mouseEnter { setitemcolor exit backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor exit backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 38 295 45 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 26 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 82 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name search
|
||||
text "Search"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 131 295 60 26
|
||||
textalign 1
|
||||
textalignx 30
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
ui_script FindPlayer }
|
||||
mouseEnter { setitemcolor search backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor search backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name search
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 131 295 60 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name search
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 119 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name search
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 190 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name join
|
||||
text "Join"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 238 295 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { ui_script FoundPlayerJoinServer }
|
||||
mouseEnter { setitemcolor join backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor join backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name join
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 238 295 45 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name join
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 226 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name join
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 282 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,660 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Help\\
|
||||
|
||||
menuDef {
|
||||
name "help_menu"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onEsc { close help_menu ; close powerup_menu ; close ordersHelp_menu ; open main }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
fadeout fadebox ;
|
||||
hide grphelptext ;
|
||||
show grpbttn ;
|
||||
show ctf ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
|
||||
|
||||
|
||||
// BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypebar
|
||||
style 2
|
||||
rect 0 16 640 40
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 ; fadein message_help }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 ; fadeout message_help }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "Gametypes"
|
||||
type 1
|
||||
rect 0 16 213 40
|
||||
textstyle 6
|
||||
textalign 1
|
||||
textalignx 106
|
||||
textaligny 31
|
||||
textscale .35
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grphelptext ;
|
||||
show grpbttn ;
|
||||
close powerup_menu ;
|
||||
close ordersHelp_menu ;
|
||||
show ctf }
|
||||
}
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
type 1
|
||||
text "Power-Ups"
|
||||
rect 213 16 213 40
|
||||
textstyle 6
|
||||
textalign 1
|
||||
textalignx 106
|
||||
textaligny 31
|
||||
textscale .35
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grphelptext ;
|
||||
hide grpbttn ;
|
||||
close powerup_menu ;
|
||||
close ordersHelp_menu ;
|
||||
open powerup_menu }
|
||||
}
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "Orders"
|
||||
textstyle 6
|
||||
type 1
|
||||
rect 426 16 213 40
|
||||
textalign 1
|
||||
textalignx 106
|
||||
textaligny 31
|
||||
textscale .35
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grphelptext ;
|
||||
hide grpbttn ;
|
||||
close powerup_menu ;
|
||||
close ordersHelp_menu ;
|
||||
open ordersHelp_menu }
|
||||
}
|
||||
|
||||
// GAMETYPES BUTTONS //
|
||||
|
||||
itemDef {
|
||||
name ctfbttn
|
||||
group grpbttn
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
text "Capture the Flag"
|
||||
rect 23 97 120 26
|
||||
textalign 1
|
||||
textalignx 60
|
||||
textaligny 20
|
||||
textscale .30
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { hide grphelptext ; show ctf ; play "sound/misc/kcaction.wav" }
|
||||
mouseEnter { setitemcolor ctfbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctfbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctfbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 23 97 120 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctfbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 11 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctfbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 142 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name oneflagbttn
|
||||
group grpbttn
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
text "One Flag"
|
||||
rect 183 97 120 26
|
||||
textalign 1
|
||||
textalignx 60
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { hide grphelptext ; show oneflag ; play "sound/misc/kcaction.wav" }
|
||||
mouseEnter { setitemcolor oneflagbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor oneflagbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name oneflagbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 183 97 120 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name oneflagbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 171 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name oneflagbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 302 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name overloadbttn
|
||||
group grpbttn
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
text "Overload"
|
||||
rect 343 97 120 26
|
||||
textalign 1
|
||||
textalignx 60
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { hide grphelptext ; show overload ; play "sound/misc/kcaction.wav" }
|
||||
mouseEnter { setitemcolor overloadbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor overloadbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name overloadbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 343 97 120 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name overloadbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 331 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name overloadbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 462 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name harvesterbttn
|
||||
type 1
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
text "Harvester"
|
||||
rect 503 97 120 26
|
||||
textalign 1
|
||||
textalignx 60
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { hide grphelptext ; show harvester ; play "sound/misc/kcaction.wav"}
|
||||
mouseEnter { setitemcolor harvesterbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor harvesterbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name harvesterbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 503 97 120 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name harvesterbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 491 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name harvesterbttn
|
||||
group grpbttn
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 622 97 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// HELP TEXT //
|
||||
|
||||
// CTF //
|
||||
|
||||
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Capture the Flag"
|
||||
rect 280 154 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
rect 280 184 500 20
|
||||
text "To score a team point (often called a capture), the team \r"
|
||||
"must invade the opposing team's base, run through (grab) \r"
|
||||
"the other team's flag, and carry it back to their own flag.\r"
|
||||
"For the capture to take place, the team's own flag must still \r"
|
||||
"be in the base. The flag carrier drops the flag when he or \r"
|
||||
"she is fragged. If the flag is not over void or death fog,\r"
|
||||
"it stays in play. A player picks up a dropped flag when he \r"
|
||||
"or she runs through it. This returns the player's own flag \r"
|
||||
"to base. If the player runs through the opposing team's flag,\r"
|
||||
"the player picks it up and runs with it."
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "ctf.RoQ"
|
||||
rect 10 154 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ONE FLAG CTF //
|
||||
|
||||
itemDef {
|
||||
name oneflag
|
||||
group grphelptext
|
||||
style 0
|
||||
text "One Flag Capture the Flag"
|
||||
rect 280 154 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
decoration
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name oneflag
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The team must run through or grab the white flag at the \r"
|
||||
"center of the arena and carry it to the opposing team's \r"
|
||||
"flag. A team point, called a capture, is scored each time \r"
|
||||
"a player successfully carries the flag to the opposing base. \r"
|
||||
"The flag carrier drops the flag when he or she is fragged. \r"
|
||||
"If the flag is not over a void or death fog, it stays in play \r"
|
||||
"and may be picked up by a player from either team. A flag \r"
|
||||
"dropped over a void or death fog returns to the center of \r"
|
||||
"the arena."
|
||||
rect 280 184 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name oneflag
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "oneflag.RoQ"
|
||||
rect 10 154 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 11
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// OVERLOAD //
|
||||
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Overload"
|
||||
rect 280 154 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "To score a team point, the players must invade \r"
|
||||
"their opponent's base and attack the skull portion of \r"
|
||||
"the goal obelisk until it explodes. It slowly turns red \r"
|
||||
"as the attacker chews through its 2500 points of damage. \r"
|
||||
"The skull constantly regenerates at a rate of 15 hit \r"
|
||||
"points a second."
|
||||
rect 280 184 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "overload.RoQ"
|
||||
rect 10 154 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// HARVESTER //
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Harvester"
|
||||
rect 280 154 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "To score team points, the team must frag opposing team \r"
|
||||
"members. Each time a player on either team is fragged, a \r"
|
||||
"crystal skull of their team color pops out of the skull \r"
|
||||
"generator in the center of the arena. Players harvest skulls \r"
|
||||
"of the opposing team's color by running through them. Skulls \r"
|
||||
"of their own team's color are removed from play in the same \r"
|
||||
"manner. Players must carry the skulls to the goal, a skull \r"
|
||||
"receptacle in the opposing team's base. When a player is \r"
|
||||
"fragged, any carried skulls are lost."
|
||||
rect 280 184 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "harvester.RoQ"
|
||||
rect 10 154 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close help_menu ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close help_menu ;
|
||||
close powerup_menu ;
|
||||
close ordersHelp_menu ;
|
||||
//play "sound/misc/tim_pump.wav" ;
|
||||
open main }
|
||||
}
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_help
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Select for Description"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,721 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Help\\
|
||||
|
||||
menuDef {
|
||||
name "help_menu"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .75 0 1
|
||||
outOfBoundsClick
|
||||
style 1
|
||||
border 1
|
||||
onopen { hide grphelptext ; show help }
|
||||
|
||||
|
||||
|
||||
// GAMETYPE BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypebar
|
||||
style 2
|
||||
rect 0 16 640 40
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 ; fadein message_help }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 ; fadeout message_help }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "CTF"
|
||||
rect 0 16 106 40
|
||||
textalign 1
|
||||
textalignx 53
|
||||
textaligny 31
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { hide grphelptext ; show ctf }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "One Flag"
|
||||
rect 106 16 128 40
|
||||
textalign 1
|
||||
textalignx 53
|
||||
textaligny 31
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { hide grphelptext ; show onectf }
|
||||
}
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "Overload"
|
||||
rect 212 16 106 40
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 31
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { hide grphelptext ; show overload }
|
||||
}
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "Harvester"
|
||||
rect 318 16 106 40
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 31
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { hide grphelptext ; show harvester }
|
||||
}
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "Power-Ups"
|
||||
rect 424 16 106 40
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 31
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { hide grphelptext ; open powerup_menu }
|
||||
}
|
||||
itemDef {
|
||||
name bar
|
||||
style 0
|
||||
text "Orders"
|
||||
rect 530 16 106 40
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 31
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
action { hide grphelptext ; open ordersHelp_menu }
|
||||
}
|
||||
|
||||
|
||||
// HELP TEXT //
|
||||
|
||||
// CTF //
|
||||
itemDef {
|
||||
name help
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text " For game rules, select one of the \r"
|
||||
" game types from the above menu bar, \r"
|
||||
" or select Power-ups for information \r"
|
||||
" about team power-ups and \r"
|
||||
" new useable items."
|
||||
rect 160 140 600 40
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 31
|
||||
textscale .3
|
||||
forecolor 1 .67 0 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Capture the Flag"
|
||||
rect 280 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 31
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
rect 280 124 500 20
|
||||
text "To score a team point (often called a capture), the team must invade the \r"
|
||||
"opposing team's base, run through (grab) the other team's flag, and carry \r"
|
||||
"it back to their own flag. For the capture to take place, the team's own \r"
|
||||
"flag must still be in the base. The flag carrier drops the flag when he or \r"
|
||||
"she is fragged. If the flag is not over void or death fog, it stays in play. \r"
|
||||
"A player picks up a dropped flag when he or she runs through it. \r"
|
||||
"This returns the player's own flag to base. If the player runs through \r"
|
||||
"the opposing team's flag, the player picks it up and runs with it."
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/ctf/team_base.tga"
|
||||
rect 80 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Team Base"
|
||||
rect 80 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/ctf/flag_carrier.tga"
|
||||
rect 248 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Flag Carrier"
|
||||
rect 248 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/ctf/scoring_with_flag.tga"
|
||||
rect 416 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ctf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Scoring with the Flag"
|
||||
rect 416 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// ONE FLAG CTF //
|
||||
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "One Flag Capture the Flag"
|
||||
rect 70 64 500 40
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 31
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
decoration
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The team must run through (grab) the white flag at the center of the \r"
|
||||
"arena and carry it to the opposing team's flag. A team point, called a \r"
|
||||
"capture, is scored each time a player successfully carries the flag \r"
|
||||
"to the opposing base. The flag carrier drops the flag when he or she \r"
|
||||
"is fragged. If the flag is not over a void or death fog, it stays in play \r"
|
||||
"and may be picked up by a player from either team. A flag dropped \r"
|
||||
"over a void or death fog returns to the center of the arena."
|
||||
rect 70 104 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/oneflag/white_flag.tga"
|
||||
rect 80 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 11
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "White Flag"
|
||||
rect 80 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/oneflag/flag_carrier.tga"
|
||||
rect 248 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Flag Carrier"
|
||||
rect 248 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/oneflag/scoring_with_flag.tga"
|
||||
rect 416 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name onectf
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Scoring with the Flag"
|
||||
rect 416 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// OVERLOAD //
|
||||
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Overload"
|
||||
rect 70 64 500 40
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 31
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "To score a team point, the players must invade their opponent's base \r"
|
||||
"and attack the skull portion of the goal obelisk until it explodes. \r"
|
||||
"As the skull takes damage, it slowly turns bright red. The skull \r"
|
||||
"constantly regenerates and slowly heals itself."
|
||||
rect 70 104 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/overload/obelisk.tga"
|
||||
rect 80 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Obelisk"
|
||||
rect 80 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/overload/damaged_obelisk.tga"
|
||||
rect 248 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Damaged Obelisk"
|
||||
rect 248 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/overload/exploded_obelisk_1.tga"
|
||||
rect 416 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name overload
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Exploded Obelisk"
|
||||
rect 416 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// HARVESTER //
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Harvester"
|
||||
rect 70 64 500 40
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 31
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "To score team points, the team must frag opposing team members. \r"
|
||||
"Each time a player on either team is fragged, a crystal skull of their \r"
|
||||
"team color pops out of the skull generator in the center of the arena. \r"
|
||||
"Players harvest skulls of the opposing team's color by running \r"
|
||||
"through them. Skulls of their own team's color are removed from play \r"
|
||||
"in the same manner. Players must carry the skulls to the goal, \r"
|
||||
"a skull receptacle in the opposing team's base. When a player is \r"
|
||||
"fragged, any carried skulls are lost."
|
||||
rect 70 104 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/harvester/skull_and_obelisk.tga"
|
||||
rect 80 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Skull Generator"
|
||||
rect 80 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/harvester/carrying_skulls.tga"
|
||||
rect 248 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Carrying Skulls"
|
||||
rect 248 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/harvester/scoring.tga"
|
||||
rect 416 270 128 128
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name harvester
|
||||
group grphelptext
|
||||
style 0
|
||||
text "Scoring with the Skulls"
|
||||
rect 416 405 128 30
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close help_menu ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 16 424 50 50
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close help_menu ; open main }
|
||||
}
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_help
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select for Description"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,803 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
// team menu
|
||||
//
|
||||
// defines from ui_shared.h
|
||||
|
||||
{
|
||||
assetGlobalDef {
|
||||
cursor "ui/assets/3_cursor2" // cursor
|
||||
gradientBar "ui/assets/gradientbar2.tga" // gradient bar
|
||||
fadeClamp 1.0 // sets the fadeup alpha
|
||||
fadeCycle 1 // how often fade happens in milliseconds
|
||||
fadeAmount 0.1 // amount to adjust alpha per cycle
|
||||
|
||||
shadowX 5 // x amount for shadow offset
|
||||
shadowY 5 // y amount for shadow offset
|
||||
shadowColor 0.1 0.1 0.1 0.25 // shadow color
|
||||
|
||||
font "fonts/font" 16 // font
|
||||
smallFont "fonts/smallfont" 12 // font
|
||||
bigFont "fonts/bigfont" 20 // font
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// POWERUP AREA //
|
||||
|
||||
menuDef {
|
||||
name "powerup area"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 570 220 50 100
|
||||
|
||||
itemDef {
|
||||
name "powerupArea"
|
||||
rect 0 0 40 40
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_AREA_POWERUP
|
||||
special 4 // spacing
|
||||
align HUD_VERTICAL
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// SELECTED PLAYER //
|
||||
|
||||
menuDef {
|
||||
name "SelectedPlayer"
|
||||
fullScreen MENU_FALSE
|
||||
visible 1
|
||||
rect 2 363 180 64
|
||||
ownerdrawflag CG_SHOW_ANYTEAMGAME
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 4 170 57
|
||||
style 4
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 4 172 60
|
||||
visible 1
|
||||
textscale .17
|
||||
textaligny 10
|
||||
textalignx 0
|
||||
forecolor 1 1 1 1
|
||||
ownerdrawflag CG_SHOW_TEAMINFO
|
||||
ownerdraw CG_TEAMINFO
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 4 3 32 32
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_HEAD
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 75 35 22 11
|
||||
visible 1
|
||||
style 1
|
||||
textscale .25
|
||||
decoration
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_HEALTH
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 50 48 22 11
|
||||
visible 1
|
||||
style 3
|
||||
decoration
|
||||
background "ui/assets/statusbar/selectedarmor.tga"
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_ARMOR
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 75 48 22 11
|
||||
visible 1
|
||||
textstyle 3
|
||||
style 1
|
||||
textscale .25
|
||||
decoration
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_ARMOR
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 35 3 35 15
|
||||
textscale 0.25
|
||||
textstyle 3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_NAME
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 35 15 45 15
|
||||
textstyle 3
|
||||
textscale 0.25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_LOCATION
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 7 40 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_STATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 30 40 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_POWERUP
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 100 33 24 24
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_WEAPON
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "statusscreen"
|
||||
visible 1
|
||||
style 3
|
||||
background "menuscreen2"
|
||||
rect 2 4 170 57
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "sback"
|
||||
rect 0 0 256 64
|
||||
visible 1
|
||||
style 3
|
||||
decoration
|
||||
background "ui/assets/selectedstatus.tga"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// PLAYER STATUS //
|
||||
|
||||
menuDef {
|
||||
name "playerStatus"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 0 416 128 64
|
||||
|
||||
itemDef {
|
||||
name "playerStatusRect"
|
||||
style 4
|
||||
rect 12 13 116 48
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 12 13 116 48
|
||||
style 3
|
||||
background hudalert_good
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playeritem"
|
||||
rect 27 25 22 22
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_ITEM
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "CTFPOWERUP"
|
||||
rect 54 25 22 22
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_CTF_POWERUP
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "flag"
|
||||
rect 85 15 40 40
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_HASFLAG
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "skulls"
|
||||
rect 72 10 48 34
|
||||
visible 1
|
||||
decoration
|
||||
textaligny 12
|
||||
textalignx 0
|
||||
textscale 0.333
|
||||
textstyle 3
|
||||
ownerdraw CG_HARVESTER_SKULLS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "statusscreen"
|
||||
visible 1
|
||||
style 3
|
||||
background "menuscreen2"
|
||||
rect 12 13 116 48
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// AMMO //
|
||||
|
||||
menuDef {
|
||||
name "Ammo"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 128 416 128 64
|
||||
|
||||
|
||||
itemDef {
|
||||
name "ammoRect"
|
||||
visible 1
|
||||
style 4
|
||||
rect 3 13 122 48
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "a"
|
||||
rect 85 25 30 30
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_AMMO_ICON2D
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "a"
|
||||
rect 10 43 63 12
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
textscale .75
|
||||
forecolor 1 1 1 1
|
||||
ownerdraw CG_PLAYER_AMMO_VALUE
|
||||
addColorRange -999 5 1 0 0 1
|
||||
addColorRange 6 999 1 .75 0 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "statusscreen"
|
||||
visible 1
|
||||
style 3
|
||||
background "menuscreen2"
|
||||
rect 3 13 122 48
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// PLAYER //
|
||||
|
||||
menuDef {
|
||||
name "Player"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 256 416 128 64
|
||||
|
||||
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 0 2 128 60
|
||||
style 4
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 0 2 128 60
|
||||
style 3
|
||||
background hudalert
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_HEALTHCRITICAL
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "healthok"
|
||||
rect 12 42 63 12
|
||||
visible 1
|
||||
decoration
|
||||
textstyle 3
|
||||
forecolor 1 1 1 1
|
||||
textscale .75
|
||||
ownerdraw CG_PLAYER_HEALTH
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "statusscreen"
|
||||
visible 1
|
||||
style 3
|
||||
background "menuscreen2"
|
||||
rect 0 2 128 60
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 70 10 45 45
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_HEAD
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ARMOR //
|
||||
|
||||
menuDef {
|
||||
name "Armor"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 384 416 128 64
|
||||
|
||||
|
||||
itemDef {
|
||||
name "armorRect"
|
||||
rect 0 13 125 48
|
||||
visible 1
|
||||
style 4
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "armor"
|
||||
rect 10 7 30 30
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_ARMOR_ICON2D
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "armor2"
|
||||
rect 55 43 63 12
|
||||
visible 1
|
||||
decoration
|
||||
textstyle 3
|
||||
textscale .75
|
||||
ownerdraw CG_PLAYER_ARMOR_VALUE
|
||||
addColorRange -999 25 .67 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 .75 .75 .75 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "statusscreen"
|
||||
visible 1
|
||||
style 3
|
||||
background "menuscreen2"
|
||||
rect 0 13 125 48
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// PLAYERSCORE //
|
||||
|
||||
menuDef {
|
||||
name "PlayerScore"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 512 416 128 64
|
||||
ownerdrawflag CG_SHOW_ANYTEAMGAME
|
||||
|
||||
|
||||
itemDef {
|
||||
name "playerScoreRect"
|
||||
visible 1
|
||||
rect 0 13 126 48
|
||||
style 4
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 0 13 63 48
|
||||
style 3
|
||||
background hudalert_blue
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 63 13 63 48
|
||||
style 3
|
||||
background hudalert_red
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 30 22 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/bluechip.tga"
|
||||
}
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 30 22 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
ownerdrawflag CG_SHOW_HARVESTER
|
||||
background "icons/skull_blue.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "blueflag"
|
||||
rect 30 22 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_CTF
|
||||
ownerdraw CG_BLUE_FLAGSTATUS
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "oneflagstatus"
|
||||
rect 30 40 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_ONEFLAG_STATUS
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "r"
|
||||
rect 35 21 30 15
|
||||
textstyle 3
|
||||
visible 1
|
||||
decoration
|
||||
forecolor .25 .25 1 1
|
||||
textscale 0.25
|
||||
ownerdraw CG_BLUE_SCORE
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 77 22 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 1
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/redchip.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 77 22 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 1
|
||||
decoration
|
||||
style 3
|
||||
ownerdrawflag CG_SHOW_HARVESTER
|
||||
background "icons/skull_red.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 77 22 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_CTF
|
||||
ownerdraw CG_RED_FLAGSTATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "r"
|
||||
rect 87 21 30 15
|
||||
textstyle 3
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.25
|
||||
ownerdraw CG_RED_SCORE
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "statusscreen"
|
||||
visible 1
|
||||
style 3
|
||||
background "menuscreen2"
|
||||
rect 0 13 126 48
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
type 4
|
||||
rect 8 36 40 12
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
ownerdraw CG_CAPFRAGLIMIT
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
style 0
|
||||
rect 60 43 65 12
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
ownerdraw CG_PLAYER_SCORE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// PLAYERSCORE //
|
||||
|
||||
menuDef {
|
||||
name "PlayerScore"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 512 416 128 64
|
||||
ownerdrawflag CG_SHOW_ANYNONTEAMGAME
|
||||
|
||||
itemDef {
|
||||
name "playerScoreRect"
|
||||
visible 1
|
||||
rect 0 13 126 48
|
||||
style 4
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "statusscreen"
|
||||
visible 1
|
||||
style 3
|
||||
background "menuscreen2"
|
||||
rect 0 13 126 48
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
rect 8 32 40 12
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
text "FragLimit:"
|
||||
ownerdraw CG_CAPFRAGLIMIT
|
||||
}
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
style 0
|
||||
rect 10 45 65 12
|
||||
visible 1
|
||||
textstyle 3
|
||||
text "1st:"
|
||||
ownerdraw CG_1STPLACE
|
||||
decoration
|
||||
forecolor .25 .25 1 1
|
||||
textscale .25
|
||||
}
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
style 0
|
||||
rect 70 45 65 12
|
||||
visible 1
|
||||
textstyle 3
|
||||
text "2nd:"
|
||||
ownerdraw CG_2NDPLACE
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale .25
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
style 0
|
||||
rect 10 58 40 0
|
||||
visible 1
|
||||
textstyle 3
|
||||
text "Score:"
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
ownerdraw CG_PLAYER_SCORE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// LOCATION //
|
||||
|
||||
menuDef {
|
||||
name "location"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 463 395 256 32
|
||||
ownerdrawflag CG_SHOW_ANYTEAMGAME
|
||||
|
||||
|
||||
itemDef {
|
||||
name "locationRect"
|
||||
visible MENU_TRUE
|
||||
rect 2 6 170 26
|
||||
style 4
|
||||
}
|
||||
itemDef {
|
||||
name "playerStatus"
|
||||
rect 16 10 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_STATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerlocation"
|
||||
rect 37 7 16 16
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
textscale .25
|
||||
ownerdraw CG_PLAYER_LOCATION
|
||||
}
|
||||
itemDef {
|
||||
name "lback"
|
||||
rect 0 0 256 32
|
||||
visible 1
|
||||
style 3
|
||||
decoration
|
||||
background "ui/assets/locationstatus.tga"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// STATUSBAR //
|
||||
|
||||
menuDef {
|
||||
name "statusbar"
|
||||
fullScreen 0
|
||||
visible 1
|
||||
rect 0 416 640 64
|
||||
|
||||
|
||||
itemDef {
|
||||
name "statusbar"
|
||||
rect 0 0 640 64
|
||||
style 3
|
||||
background "ui/assets/statusbar_full.tga"
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 1 1 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
menuDef {
|
||||
name "voiceMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 5 100 100
|
||||
|
||||
|
||||
itemDef {
|
||||
name "voiceMenuRect"
|
||||
style 4
|
||||
rect 2 2 50 50
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 2 50 50
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_VOICE_HEAD
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 2 50 50
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "menuscreen2"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "voiceWindow"
|
||||
visible 1
|
||||
style 3
|
||||
background "ui/assets/voice_window.tga"
|
||||
rect 0 0 54 54
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 55 50 12
|
||||
visible 1
|
||||
decoration
|
||||
textscale .25
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 12
|
||||
ownerdraw CG_VOICE_NAME
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
// hud menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/hud.menu" }
|
||||
loadMenu { "ui/score.menu" }
|
||||
loadMenu { "ui/teamscore.menu" }
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
// hud menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/min_hud.menu" }
|
||||
loadMenu { "ui/score.menu" }
|
||||
loadMenu { "ui/teamscore.menu" }
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,382 @@
|
|||
#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/assets/gradientbar2.tga" // gradient bar
|
||||
itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse )
|
||||
|
||||
fadeClamp 1.0 // sets the fadeup alpha
|
||||
fadeCycle 1 // how often fade happens in milliseconds
|
||||
fadeAmount 0.1 // amount to adjust alpha per cycle
|
||||
|
||||
shadowColor 0.1 0.1 0.1 0.25 // shadow color
|
||||
}
|
||||
|
||||
|
||||
\\ INGAME MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame"
|
||||
visible 0
|
||||
fullScreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .75 0 1
|
||||
disableColor .5 .5 .5 1
|
||||
|
||||
itemDef {
|
||||
name "ingameRect"
|
||||
visible 1
|
||||
rect 0 0 620 26
|
||||
style 0
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .75 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemdef
|
||||
{
|
||||
name about
|
||||
text "About"
|
||||
rect 5 0 53 30
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textalignx 27
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor .0 .17 .0 1
|
||||
visible 1
|
||||
action { open ingame_about }
|
||||
mouseEnter { setitemcolor about backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor about backcolor .0 .17 .0 1 }
|
||||
}
|
||||
itemdef
|
||||
{
|
||||
name aboutframe
|
||||
style 3
|
||||
rect 0 0 58 32
|
||||
background "ui/assets/ingameframea.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name join
|
||||
text "Join"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
cvarTest "ui_singleplayeractive"
|
||||
disableCvar { "1" }
|
||||
rect 58 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_join }
|
||||
mouseEnter { setitemcolor join backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor join backcolor 0 .17 0 1 }
|
||||
}
|
||||
|
||||
itemdef
|
||||
{
|
||||
name joinframe
|
||||
style 3
|
||||
rect 58 0 58 32
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
text "Orders"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 116 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
cvarTest "g_gametype"
|
||||
disableCvar { "0" ; "1" ; "2" ; "3" ; "8" }
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
action { open ingame_orders }
|
||||
mouseEnter { setitemcolor orders backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor orders backcolor 0 .17 0 1 }
|
||||
}
|
||||
|
||||
itemdef
|
||||
{
|
||||
name ordersframe
|
||||
style 3
|
||||
rect 116 0 58 32
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name addBot
|
||||
text "Add Bot"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 174 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
cvarTest "ui_singleplayeractive"
|
||||
disableCvar { "1" }
|
||||
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_addbot }
|
||||
mouseEnter { setitemcolor addBot backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor addBot backcolor 0 .17 0 1 }
|
||||
}
|
||||
itemdef
|
||||
{
|
||||
name addBotframe
|
||||
style 3
|
||||
rect 174 0 58 32
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name player
|
||||
text "Player"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 232 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_player }
|
||||
mouseEnter { setitemcolor player backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor player backcolor 0 .17 0 1 }
|
||||
}
|
||||
itemdef
|
||||
{
|
||||
name playerframe
|
||||
style 3
|
||||
rect 232 0 58 32
|
||||
textalign 1
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name controls
|
||||
text "Controls"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 290 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_controls }
|
||||
mouseEnter { setitemcolor controls backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor controls backcolor 0 .17 0 1 }
|
||||
}
|
||||
|
||||
itemdef
|
||||
{
|
||||
name controlsframe
|
||||
style 3
|
||||
rect 290 0 58 32
|
||||
textalign 1
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
text "Options"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 348 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_options }
|
||||
mouseEnter { setitemcolor options backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor options backcolor 0 .17 0 1 }
|
||||
}
|
||||
|
||||
itemdef
|
||||
{
|
||||
name optionsframe
|
||||
style 3
|
||||
rect 348 0 58 32
|
||||
textalign 1
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name system
|
||||
text "System"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 406 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_system }
|
||||
mouseEnter { setitemcolor system backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor system backcolor 0 .17 0 1 }
|
||||
}
|
||||
|
||||
itemdef
|
||||
{
|
||||
name systemframe
|
||||
style 3
|
||||
rect 406 0 58 32
|
||||
textalign 1
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name vote
|
||||
text "Vote"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
cvarTest "ui_singleplayeractive"
|
||||
disableCvar { "1" }
|
||||
|
||||
rect 464 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_vote }
|
||||
mouseEnter { setitemcolor vote backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor vote backcolor 0 .17 0 1 }
|
||||
}
|
||||
itemdef
|
||||
{
|
||||
name voteframe
|
||||
style 3
|
||||
rect 464 0 58 32
|
||||
textalign 1
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name callvote
|
||||
text "CallVote"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
cvarTest "ui_singleplayeractive"
|
||||
disableCvar { "1" }
|
||||
|
||||
rect 522 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_callvote }
|
||||
mouseEnter { setitemcolor callvote backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor callvote backcolor 0 .17 0 1 }
|
||||
}
|
||||
itemdef
|
||||
{
|
||||
name callvoteframe
|
||||
style 3
|
||||
rect 522 0 58 32
|
||||
textalign 1
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name leave
|
||||
text "Exit"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 580 0 58 30
|
||||
textalign 1
|
||||
textalignx 29
|
||||
textaligny 22
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .17 0 1
|
||||
visible 1
|
||||
action { open ingame_leave }
|
||||
mouseEnter { setitemcolor leave backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor leave backcolor 0 .17 0 1 }
|
||||
}
|
||||
|
||||
itemdef
|
||||
{
|
||||
name leave
|
||||
style 3
|
||||
rect 580 0 58 32
|
||||
textalign 1
|
||||
background "ui/assets/ingameframe.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
// menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/ingame.menu" }
|
||||
loadMenu { "ui/ingame_vote.menu" }
|
||||
loadMenu { "ui/ingame_about.menu" }
|
||||
loadMenu { "ui/ingame_controls.menu" }
|
||||
loadMenu { "ui/ingame_join.menu" }
|
||||
loadMenu { "ui/ingame_options.menu" }
|
||||
loadMenu { "ui/ingame_system.menu" }
|
||||
loadMenu { "ui/ingame_leave.menu" }
|
||||
loadMenu { "ui/ingame_player.menu" }
|
||||
loadMenu { "ui/ingame_addbot.menu" }
|
||||
loadMenu { "ui/ingame_callvote.menu" }
|
||||
loadMenu { "ui/ingame_orders.menu" }
|
||||
}
|
|
@ -0,0 +1,400 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ INGAME ABOUT BOX \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_about"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 0 30 256 295
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 256 280
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 16 128
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 3 0 65 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 67 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 131 10 96 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 138 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 202 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 233 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 212 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 212 233 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 289 66 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 289 96 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 260 74 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 260 138 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 260 202 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 25 256 20
|
||||
name gametypefield
|
||||
type 4
|
||||
style 0
|
||||
text "Map Name:"
|
||||
cvar mapname
|
||||
maxPaintChars 12
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 40 256 20
|
||||
style 0
|
||||
//type 4
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
text "GameType:"
|
||||
type ITEM_TYPE_MULTI
|
||||
cvar "G_GAMETYPE"
|
||||
cvarFloatList { "Free For All" 0 "Tournament" 1 "Free For All" 2 "Team Deathmatch" 3 "Capture the Flag" 4 "One Flag CTF" 5 "Overload" 6 "Harvester" 7 "Team Tournament" 8 }
|
||||
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
backcolor 0 0 .75 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 70 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Capture Limit:"
|
||||
cvarTest "G_GAMETYPE"
|
||||
hideCvar { "0" ; "1" ; "2" ; "3" }
|
||||
maxPaintChars 12
|
||||
cvar capturelimit
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 70 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Frag Limit:"
|
||||
cvarTest "G_GAMETYPE"
|
||||
showCvar { "0" ; "1" ; "2" ; "3" }
|
||||
maxPaintChars 12
|
||||
cvar fraglimit
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 85 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Time Limit:"
|
||||
maxPaintChars 12
|
||||
cvar timelimit
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 20 100 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Red Team:"
|
||||
maxPaintChars 12
|
||||
cvar g_redTeam
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 108
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name about
|
||||
rect 20 115 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Blue Team:"
|
||||
maxPaintChars 12
|
||||
cvar g_blueTeam
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 108
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 140 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Protocol:"
|
||||
cvar protocol
|
||||
maxPaintChars 12
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 155 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Max Clients:"
|
||||
cvar sv_maxclients
|
||||
maxPaintChars 12
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 170 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Host Name:"
|
||||
cvar sv_hostname
|
||||
maxPaintChars 12
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 205 256 20
|
||||
type 11
|
||||
style 0
|
||||
text "Password Required:"
|
||||
cvar g_needpass
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 220 256 20
|
||||
type 11
|
||||
style 0
|
||||
text "DM Flags:"
|
||||
cvar g_dmflags
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 235 256 20
|
||||
type 11
|
||||
style 0
|
||||
text "Bot/Min Players:"
|
||||
cvar bot_minplayers
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name about
|
||||
rect 0 265 256 20
|
||||
type 4
|
||||
style 0
|
||||
text "Version:"
|
||||
cvar version
|
||||
maxPaintChars 32
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 128
|
||||
textaligny 12
|
||||
textalign 1
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,162 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ ADDBOT MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_addbot"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 106 30 192 123
|
||||
disableColor .5 .5 .5 1
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 172 108
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 0 65 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 129 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 129 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 120 66 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypefield
|
||||
style 0
|
||||
text "Name:"
|
||||
ownerdraw UI_BOTNAME
|
||||
rect 0 20 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 86
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gametypefield
|
||||
style 0
|
||||
text "Team:"
|
||||
ownerdraw UI_REDBLUE
|
||||
rect 0 40 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 86
|
||||
textaligny 18
|
||||
textscale .25
|
||||
cvarTest "g_gametype"
|
||||
disableCvar { "0" ; "1" }
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gametypefield
|
||||
style 0
|
||||
text "Skill:"
|
||||
ownerdraw UI_BOTSKILL
|
||||
rect 0 60 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 86
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name ok
|
||||
text "Add Bot"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 65 95 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { uiScript addBot ; uiScript closeingame }
|
||||
mouseEnter { setitemcolor ok backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ok backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,491 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CALL VOTE MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_callvote"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 347 30 290 190
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { hide grpcallVote ; show misc ; uiScript loadArenas }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 270 175
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 226 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 168 0 64 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 128 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 226 128 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 274 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 184 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 184 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// BUTTONS //
|
||||
itemDef {
|
||||
name ctr_misc
|
||||
text "Misc"
|
||||
textscale .25
|
||||
group grpbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 20 25 45 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpCallVote ; show misc }
|
||||
mouseEnter { setitemcolor ctr_misc backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_misc backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_gametype
|
||||
text "Type"
|
||||
textscale .25
|
||||
group grpbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 71 25 45 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpCallVote ; show type }
|
||||
mouseEnter { setitemcolor ctr_gametype backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_gametype backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_kickplayer
|
||||
text "Kick"
|
||||
textscale .25
|
||||
group grpbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 122 25 45 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpCallVote ; show kick }
|
||||
mouseEnter { setitemcolor ctr_kickplayer backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_kickplayer backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_changemap
|
||||
text "Map"
|
||||
textscale .25
|
||||
group grpbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 173 25 45 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpCallVote ; show map }
|
||||
mouseEnter { setitemcolor ctr_changemap backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_changemap backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_changeleader
|
||||
text "Leader"
|
||||
textscale .25
|
||||
group grpbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 225 25 45 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpCallVote ; show leader }
|
||||
mouseEnter { setitemcolor ctr_changeleader backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_changeleader backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
// MISC //
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
text "Restart Map"
|
||||
group grpCallVote
|
||||
textscale .25
|
||||
rect 0 70 290 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 145
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { exec "cmd callvote map_restart" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpCallVote
|
||||
text "Next Map"
|
||||
textscale .25
|
||||
rect 0 90 290 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 145
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { exec "cmd callvote nextmap" ; uiScript closeingame }
|
||||
}
|
||||
itemDef {
|
||||
name misc
|
||||
group grpCallVote
|
||||
text "Do Warmup"
|
||||
textscale .25
|
||||
rect 0 110 290 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 145
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { exec "cmd callvote g_doWarmup 1" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Game Type //
|
||||
|
||||
itemDef {
|
||||
name type
|
||||
group grpCallVote
|
||||
text "Gametype:"
|
||||
style 0
|
||||
textscale .25
|
||||
ownerdraw UI_NETGAMETYPE
|
||||
rect 60 90 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name type
|
||||
text "OK"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpCallVote
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 123 160 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { uiScript voteGame ; uiScript closeingame }
|
||||
mouseEnter { setcolor backcolor .1 .37 .1 1 }
|
||||
mouseExit { setcolor backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
// KICK PLAYER //
|
||||
|
||||
itemDef {
|
||||
name kick
|
||||
group grpCallVote
|
||||
text "Kick Player:"
|
||||
textscale .25
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name kick
|
||||
group grpCallVote
|
||||
rect 20 70 250 85
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_PLAYER_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor kick bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor kick bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name kick
|
||||
text "OK"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpCallVote
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 123 160 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { uiScript voteKick ; uiScript closeingame }
|
||||
mouseEnter { setcolor backcolor .1 .37 .1 1 }
|
||||
mouseExit { setcolor backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
// NEW MAP //
|
||||
|
||||
itemDef {
|
||||
name map
|
||||
group grpCallVote
|
||||
text "New Map:"
|
||||
ownerdraw UI_ALLMAPS_SELECTION
|
||||
textscale .25
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name map
|
||||
group grpCallVote
|
||||
rect 20 70 250 85
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_ALLMAPS
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor map bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor map bordercolor .5 .5 .5 .5 }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name map
|
||||
text "OK"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpCallVote
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 123 160 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { uiScript voteMap ; uiScript closeingame }
|
||||
mouseEnter { setcolor backcolor .1 .37 .1 1 }
|
||||
mouseExit { setcolor backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
// CHANGE LEADER //
|
||||
|
||||
itemDef {
|
||||
name leader
|
||||
group grpCallVote
|
||||
text "New Leader:"
|
||||
textscale .25
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name leader
|
||||
group grpCallVote
|
||||
rect 20 70 250 85
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TEAM_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor leader bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor leader bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name leader
|
||||
text "OK"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpCallVote
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 123 160 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { uiScript voteLeader ; uiScript closeingame }
|
||||
mouseEnter { setcolor backcolor .1 .37 .1 1 }
|
||||
mouseExit { setcolor backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,192 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CALL VOTE MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_callvote"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 374 30 255 350
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
onOpen { uiScript loadArenas }
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 255 350
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .75 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name maprestart
|
||||
text "Map Restart:"
|
||||
type 11
|
||||
textscale .25
|
||||
cvar "map_restart"
|
||||
rect 20 10 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name maprestart
|
||||
text "Next Map:"
|
||||
type 11
|
||||
textscale .25
|
||||
cvar "nextmap"
|
||||
rect 20 30 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name maprestart
|
||||
text "Do Warmup:"
|
||||
type 11
|
||||
textscale .25
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gametype
|
||||
text "Gametype:"
|
||||
style 0
|
||||
textscale .25
|
||||
ownerdraw UI_NETGAMETYPE
|
||||
rect 20 70 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 92 255 120
|
||||
style 0
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name maprestart
|
||||
text "Kick Player:"
|
||||
textscale .25
|
||||
rect 20 95 110 20
|
||||
//ownerdraw UI_ALLMAPS_SELECTION
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name playerlist
|
||||
rect 20 115 225 85
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 1
|
||||
mouseEnter { fadein message_arena ; setitemcolor playerlist bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor playerlist bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name maprestart
|
||||
text "New Map:"
|
||||
ownerdraw UI_ALLMAPS_SELECTION
|
||||
textscale .25
|
||||
rect 20 215 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name maplist
|
||||
rect 20 235 225 85
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_MAPS
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 1
|
||||
mouseEnter { fadein message_arena ; setitemcolor maplist bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor maplist bordercolor .5 .5 .5 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name ok
|
||||
text "OK"
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 325 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { close ingame_callvote ; close ingame ; open ingame }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,144 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
|
||||
{
|
||||
\\ INGAME_JOIN MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_join"
|
||||
visible 1
|
||||
fullScreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 23 30 128 128
|
||||
focusColor 1 .75 0 1
|
||||
|
||||
|
||||
itemDef {
|
||||
name team
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 10 15 108 113
|
||||
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 30 0 65 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name team
|
||||
text "Team RED"
|
||||
type 1
|
||||
style 2
|
||||
rect 0 20 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "cmd team red" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name team
|
||||
text "Team BLUE"
|
||||
type 1
|
||||
style 2
|
||||
rect 0 40 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "cmd team blue" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name team
|
||||
text "Auto TEAM"
|
||||
type 1
|
||||
style 2
|
||||
rect 0 60 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "cmd team free" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name team
|
||||
text "Spectate"
|
||||
type 1
|
||||
style 2
|
||||
rect 0 80 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "cmd team s" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,344 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
|
||||
{
|
||||
\\ INGAME_LEAVE MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_leave"
|
||||
visible 1
|
||||
fullScreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 511 30 128 125
|
||||
focusColor 1 .75 0 1
|
||||
onOpen { show grpMenu ; hide grpConfirm }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name leave
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 10 15 108 110
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 112 10 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 0 63 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name leave
|
||||
text "Main Menu"
|
||||
group grpMenu
|
||||
style 2
|
||||
rect 0 30 128 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpMenu ; show leaveConfirm }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name leave
|
||||
group grpMenu
|
||||
text "Restart"
|
||||
style 2
|
||||
type 1
|
||||
rect 0 50 128 20
|
||||
textalign 1
|
||||
textalignx 65
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpMenu ; show restartConfirm }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name leave
|
||||
group grpMenu
|
||||
type 1
|
||||
text "Quit"
|
||||
style 2
|
||||
rect 0 70 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpMenu ; show quitConfirm }
|
||||
}
|
||||
|
||||
|
||||
// CONFIRMS //
|
||||
|
||||
|
||||
itemDef {
|
||||
name leaveConfirm
|
||||
text "Exit to"
|
||||
group grpConfirm
|
||||
style 2
|
||||
rect 0 33 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name leaveConfirm
|
||||
text "Main Menu?"
|
||||
group grpConfirm
|
||||
style 2
|
||||
rect 0 50 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name leaveConfirm
|
||||
text "Yes"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 18 80 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { uiScript leave }
|
||||
mouseEnter { setitemcolor ok backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ok backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name leaveConfirm
|
||||
text "No"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 70 80 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpConfirm ; show grpMenu }
|
||||
mouseEnter { setitemcolor ok backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ok backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name restartConfirm
|
||||
text "Want to"
|
||||
group grpConfirm
|
||||
style 2
|
||||
rect 0 33 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name restartConfirm
|
||||
text "Restart Map?"
|
||||
group grpConfirm
|
||||
style 2
|
||||
rect 0 50 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name restartConfirm
|
||||
text "Yes"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 18 80 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { exec "map_restart" ; close ingame_leave ; close ingame }
|
||||
mouseEnter { setitemcolor ok backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ok backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name restartConfirm
|
||||
text "No"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 70 80 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpConfirm ; show grpMenu }
|
||||
mouseEnter { setitemcolor ok backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ok backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name quitConfirm
|
||||
text "Want to"
|
||||
group grpConfirm
|
||||
style 2
|
||||
rect 0 33 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name quitConfirm
|
||||
text "Quit Game?"
|
||||
group grpConfirm
|
||||
style 2
|
||||
rect 0 50 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name quitConfirm
|
||||
text "Yes"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 18 80 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { uiScript quit }
|
||||
mouseEnter { setitemcolor ok backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ok backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name quitConfirm
|
||||
text "No"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 70 80 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpConfirm ; show grpMenu }
|
||||
mouseEnter { setitemcolor ok backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ok backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,469 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_options"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 265 30 210 375
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
disableColor .5 .5 .5 0
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 200 360
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 32 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 144 10 32 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 157 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 74 0 73 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 314 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 157 314 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 84
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 148 16 84
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 232 16 84
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 205 64 16 84
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 205 148 16 84
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 205 232 16 84
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 370 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 370 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Simple Items:"
|
||||
cvar "cg_simpleItems"
|
||||
rect 0 20 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Marks On Walls:"
|
||||
cvar "cg_marks"
|
||||
rect 0 37 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Show Floating Scores:"
|
||||
cvar "cg_scorePlums"
|
||||
rect 0 54 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Ejecting Brass:"
|
||||
cvar "cg_brassTime"
|
||||
cvarFloatList { "High" 2500 "Med" 1250 "Off" 0 }
|
||||
rect 0 71 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Dynamic Lights:"
|
||||
cvar "r_dynamiclight"
|
||||
rect 0 88 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Identify Target:"
|
||||
cvar "cg_drawCrosshairNames"
|
||||
rect 0 105 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Draw Gun:"
|
||||
cvar "cg_drawGun"
|
||||
rect 0 122 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Low Quality Sky:"
|
||||
cvar "r_fastsky"
|
||||
rect 0 139 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Sync Every Frame:"
|
||||
cvar "weapon 5"
|
||||
rect 0 156 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Force Player Models:"
|
||||
cvar "cg_forceModel"
|
||||
rect 0 173 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Draw Team Overlay:"
|
||||
cvar "cg_drawTeamOverlay"
|
||||
rect 0 190 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Auto Download:"
|
||||
cvar "cl_allowDownload"
|
||||
rect 0 207 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Show Time:"
|
||||
cvar "cg_drawTimer"
|
||||
rect 0 224 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Voices Off:"
|
||||
cvar "cg_NoVoiceChats"
|
||||
rect 0 241 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Taunts Off:"
|
||||
cvar "cg_noTaunt"
|
||||
rect 0 258 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Voice Text Off:"
|
||||
cvar "cg_noVoiceText"
|
||||
rect 0 275 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Team Chats Only:"
|
||||
cvar "cg_teamChatsOnly"
|
||||
rect 0 292 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Statusbar:"
|
||||
cvar "cg_hudfiles"
|
||||
cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
|
||||
rect 0 309 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "loadhud" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "In Game Videos:"
|
||||
cvar "r_inGameVideo"
|
||||
rect 0 326 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 143
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
text "Crosshair:"
|
||||
ownerdraw UI_CROSSHAIR
|
||||
rect 143 343 20 17
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,481 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_orders"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 45 30 200 240
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
disableColor .5 .5 .5 1
|
||||
onopen { hide grpicon ; show attack }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 180 225
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 136 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 0 72 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 177 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 136 177 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 184 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 184 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 233 96 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "Name:"
|
||||
style 0
|
||||
ownerdraw UI_SELECTEDPLAYER
|
||||
// As cycle through playerlist selected player in HUD cycles //
|
||||
rect 10 20 200 20
|
||||
textalign 0
|
||||
textalignx 10
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
// COMMAND ICONS //
|
||||
|
||||
itemDef {
|
||||
name attack
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/assault.tga"
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name defend
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/defend.tga"
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name patrol
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/patrol.tga"
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name follow
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/follow.tga"
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name camp
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/camp.tga"
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name leader
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/team_leader.tga"
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name retrieve
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/retrieve.tga"
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name escort
|
||||
group grpicon
|
||||
style 3
|
||||
rect 84 45 32 32
|
||||
background "ui/assets/statusbar/escort.tga"
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// GIVE ORDERS TO OTHERS //
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "Attack Enemy Base"
|
||||
rect 0 80 200 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show attack }
|
||||
action {
|
||||
uiScript voiceOrders "cmd vtell %d offense; +button7; wait; -button7"
|
||||
uiScript voiceOrdersTeam "cmd vsay_team offense; +button7; wait; -button7"
|
||||
}
|
||||
ownerdrawflag UI_SHOW_LEADER
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type 1
|
||||
text "Defend Our Base"
|
||||
rect 0 100 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show defend }
|
||||
action {
|
||||
uiScript voiceOrders "cmd vtell %d defend; +button8; wait; -button8"
|
||||
uiScript voiceOrdersTeam "cmd vsay_team defend; +button8; wait; -button8"
|
||||
}
|
||||
ownerdrawflag UI_SHOW_LEADER
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type 1
|
||||
text "Patrol"
|
||||
rect 0 120 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show patrol }
|
||||
action {
|
||||
uiScript voiceOrders "cmd vtell %d patrol; +button9; wait; -button9"
|
||||
uiScript voiceOrdersTeam "cmd vsay_team patrol; +button9; wait; -button9"
|
||||
}
|
||||
ownerdrawflag UI_SHOW_LEADER
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type 1
|
||||
text "Follow Me"
|
||||
rect 0 140 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show follow }
|
||||
action {
|
||||
uiScript voiceOrders "cmd vtell %d followme; +button10; wait; -button10"
|
||||
uiScript voiceOrdersTeam "cmd vsay_team followme; +button10; wait; -button10"
|
||||
}
|
||||
ownerdrawflag UI_SHOW_LEADER
|
||||
}
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "Camp Here"
|
||||
type 1
|
||||
rect 0 160 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show camp }
|
||||
action {
|
||||
uiScript voiceOrders "cmd vtell %d camp"
|
||||
uiScript voiceOrdersTeam "cmd vsay_team camp"
|
||||
}
|
||||
ownerdrawflag UI_SHOW_LEADER
|
||||
}
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type 1
|
||||
text "Escort the Carrier"
|
||||
rect 0 180 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
cvarTest "g_gametype"
|
||||
hideCvar { "6" ; "7" }
|
||||
mouseenter { hide grpicon ; show escort }
|
||||
action {
|
||||
uiScript voiceOrders "cmd vtell %d followflagcarrier"
|
||||
uiScript voiceOrdersTeam "cmd vsay_team followflagcarrier"
|
||||
}
|
||||
ownerdrawflag UI_SHOW_LEADER
|
||||
}
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type 1
|
||||
text "Retrieve Our Flag"
|
||||
rect 0 200 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
cvarTest "g_gametype"
|
||||
hideCvar { "5" ; "6" ; "7" }
|
||||
mouseenter { hide grpicon ; show retrieve }
|
||||
action {
|
||||
uiScript voiceOrders "cmd vtell %d returnflag"
|
||||
uiScript voiceOrdersTeam "cmd vsay_team returnflag"
|
||||
}
|
||||
ownerdrawflag UI_SHOW_LEADER
|
||||
}
|
||||
|
||||
|
||||
// CHANGE YOUR STATUS //
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "I'M ATTACKING"
|
||||
rect 0 80 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
type 1
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show attack }
|
||||
action { exec "teamtask 1 ; cmd vsay_team onoffense" ; uiScript closeingame }
|
||||
ownerdrawflag UI_SHOW_NOTLEADER
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "I'M DEFENDING"
|
||||
type 1
|
||||
rect 0 100 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show defend }
|
||||
action { exec "teamtask 2 ; cmd vsay_team ondefense" ; uiScript closeingame }
|
||||
ownerdrawflag UI_SHOW_NOTLEADER
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type 1
|
||||
text "I'M PATROLLING"
|
||||
rect 0 120 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show patrol }
|
||||
action { exec "teamtask 3 ; cmd vsay_team onpatrol" ; uiScript closeingame }
|
||||
ownerdrawflag UI_SHOW_NOTLEADER
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "I'M FOLLOWING"
|
||||
type 1
|
||||
rect 0 140 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show follow }
|
||||
action { exec "teamtask 4 ; cmd vsay_team onfollow" ; uiScript closeingame }
|
||||
ownerdrawflag UI_SHOW_NOTLEADER
|
||||
}
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "I'M CAMPING"
|
||||
rect 0 160 200 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show camp }
|
||||
action { exec "teamtask 7 ; cmd vsay_team oncamp" ; uiScript closeingame }
|
||||
ownerdrawflag UI_SHOW_NOTLEADER
|
||||
}
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "I'M ESCORTING"
|
||||
type 1
|
||||
rect 0 180 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
cvarTest "g_gametype"
|
||||
hideCvar { "6" ; "7" }
|
||||
visible 1
|
||||
mouseenter { hide grpicon ; show retrieve }
|
||||
action { exec "teamtask 6 ; cmd vsay_team onfollowcarrier" ; uiScript closeingame }
|
||||
ownerdrawflag UI_SHOW_NOTLEADER
|
||||
}
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
text "I'M RETRIEVING"
|
||||
type 1
|
||||
rect 0 200 200 20
|
||||
textalign 1
|
||||
textalignx 100
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
cvarTest "g_gametype"
|
||||
hideCvar { "5" ; "6" ; "7" }
|
||||
mouseenter { hide grpicon ; show escort }
|
||||
action { exec "teamtask 5 ; cmd vsay_team onreturnflag" ; uiScript closeingame }
|
||||
ownerdrawflag UI_SHOW_NOTLEADER
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,199 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_orders"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 45 30 200 240
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 200 240
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .75 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Name:"
|
||||
cvar "+weapprev"
|
||||
rect 0 5 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Follow:"
|
||||
cvar "weapnext"
|
||||
rect 0 25 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Go To:"
|
||||
cvar "cg_autoswitch"
|
||||
rect 0 45 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Get:"
|
||||
cvar "weapon 1"
|
||||
rect 0 65 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Patrol From:"
|
||||
cvar "weapon 2"
|
||||
rect 0 85 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Patrol To:"
|
||||
cvar "weapon 3"
|
||||
rect 0 105 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Camp Near:"
|
||||
cvar "weapon 4"
|
||||
rect 0 125 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Defend:"
|
||||
cvar "weapon 5"
|
||||
rect 0 145 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Attack:"
|
||||
cvar "weapon 6"
|
||||
rect 0 165 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name orders
|
||||
group grporders
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Leader:"
|
||||
cvar "Weapon 7"
|
||||
rect 0 185 200 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 80
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name ok
|
||||
text "OK"
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 75 215 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { close ingame_orders ; close ingame ; open ingame }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,259 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_player"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 125 30 290 170
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { uiScript update "ui_GetName" }
|
||||
onClose { uiScript update "ui_SetName" }
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 270 155
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 168 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 226 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 104 0 64 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 108 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 226 108 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 274 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 164 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 164 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name namefield
|
||||
group "playersettinggroup"
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 0
|
||||
text "Name:"
|
||||
cvar "ui_Name"
|
||||
maxchars 26
|
||||
rect 20 25 256 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 18
|
||||
textscale .25
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name handicapfield
|
||||
group "playersettinggroup"
|
||||
style 0
|
||||
text "Handicap:"
|
||||
ownerdraw UI_HANDICAP
|
||||
rect 20 45 256 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 18
|
||||
textscale .25
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name effectentry
|
||||
group "playersettinggroup"
|
||||
text "Effect:"
|
||||
type 1
|
||||
style 0
|
||||
rect 20 65 256 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 18
|
||||
textscale .25
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
mouseEnterText { setitemcolor effectentry forecolor 1 .75 0 1 ; setfocus effectfield ; show message_effect }
|
||||
mouseExitText { setitemcolor playersettinggroup forecolor 1 1 1 1 ; hide message_effect }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name effectfield
|
||||
group "playersettinggroup"
|
||||
style 0
|
||||
ownerdraw UI_EFFECTS
|
||||
rect 20 65 256 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 50
|
||||
textaligny 25
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name headlist
|
||||
rect 15 100 260 50
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 32
|
||||
elementheight 32
|
||||
elementtype LISTBOX_IMAGE
|
||||
feeder FEEDER_HEADS
|
||||
horizontalscroll
|
||||
backcolor 0 0 0 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
cvarTest "g_gametype"
|
||||
showCvar { "3" ; "4" ; "5" ; "6" ; "7" ; "8" }
|
||||
mouseenter { setitemcolor headlist bordercolor 1 0 0 1 }
|
||||
mouseexit { setitemcolor headlist bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name headlist
|
||||
rect 15 100 260 50
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 32
|
||||
elementheight 32
|
||||
elementtype LISTBOX_IMAGE
|
||||
feeder FEEDER_Q3HEADS
|
||||
horizontalscroll
|
||||
backcolor 0 0 0 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
cvarTest "g_gametype"
|
||||
showCvar { "0" ; "1" }
|
||||
mouseenter { setitemcolor headlist bordercolor 1 0 0 1 }
|
||||
mouseexit { setitemcolor headlist bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,452 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ score_menu \\
|
||||
|
||||
menuDef {
|
||||
name "teamscore_menu"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background uibackground4
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name leftteambar
|
||||
rect 14 102 306 35
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rightteambar
|
||||
rect 320 102 306 35
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name leftteamheadings
|
||||
text "Status Name Score Time Ping"
|
||||
textscale .25
|
||||
style 0
|
||||
rect 25 102 128 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 23
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name leftgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradleft.tga"
|
||||
rect 14 140 306 222
|
||||
forecolor .75 0 0 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name leftgrad
|
||||
rect 16 142 302 218
|
||||
orecolor .75 .75 .75 .75
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_REDTEAM_LIST
|
||||
columns 5 2 20 20 60 75 75 165 20 20 205 20 20 235 20 20
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name rightgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradright.tga"
|
||||
rect 320 140 296 222
|
||||
forecolor 0 0 .75 0.5
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .28
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_BLUETEAM_LIST
|
||||
columns 5 2 20 20 60 75 75 165 20 20 205 20 20 235 20 20
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rightteamheadings
|
||||
text "Status Name Score Time Ping"
|
||||
textscale .25
|
||||
style 0
|
||||
rect 336 102 128 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 23
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 141 612 221
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .75
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// GAMETYPE BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypebar
|
||||
style 2
|
||||
rect 0 16 640 35
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 1 1 1 1
|
||||
bordersize 1
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
text " "
|
||||
ownerdraw CG_GAME_STATUS
|
||||
textscale .5
|
||||
style 0
|
||||
rect 320 16 210 25
|
||||
textalignx 0
|
||||
textaligny 21
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
text ""
|
||||
ownerdraw CG_KILLER
|
||||
textscale .4
|
||||
style 0
|
||||
rect 320 40 210 40
|
||||
textalignx 0
|
||||
textaligny 24
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// PLAYER STATS //
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 364 612 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 0 0 0 0
|
||||
backcolor 0 0 0 .25
|
||||
//outlinecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name name
|
||||
text "Name:"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 0 363 128 30
|
||||
textalign 1 // center
|
||||
textalignx 64 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
text "Score:"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 246 363 128 30
|
||||
textalign 3 // center
|
||||
textalignx 16 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name wins
|
||||
text "Wins:"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 404 363 128 30
|
||||
textalign 1 // center
|
||||
textalignx 64 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
// AWARDS //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 390 612 38
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_accuracy
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 48 394 32 32
|
||||
background "ui/assets/medal_accuracy.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_assist
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 112 394 32 32
|
||||
background "ui/assets/medal_assist.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_accuracy
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 176 394 32 32
|
||||
background "ui/assets/medal_accuracy.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_defend
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 240 394 32 32
|
||||
background "ui/assets/medal_defend.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_excellent
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 304 394 32 32
|
||||
background "ui/assets/medal_excellent.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_frags
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 368 394 32 32
|
||||
background "ui/assets/medal_frags.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_gauntlet
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 432 394 32 32
|
||||
background "ui/assets/medal_gauntlet.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_impressive
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 496 394 32 32
|
||||
background "ui/assets/medal_impressive.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_victory
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 560 394 32 32
|
||||
background "ui/assets/medal_victory.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TEAM LOGO //
|
||||
|
||||
|
||||
itemDef {
|
||||
name playerlogo
|
||||
ownerdraw UI_PLAYERLOGO
|
||||
rect 71 157 180 180
|
||||
visible 1
|
||||
forecolor .5 0 0 .5
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
ownerdraw UI_OPPONENTLOGO
|
||||
name opposinglogo
|
||||
rect 397 157 180 180
|
||||
visible 1
|
||||
forecolor 0 0 .5 .5
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name playerlogo
|
||||
ownerdraw UI_PLAYERLOGO_METAL
|
||||
rect 14 6 96 96
|
||||
visible 1
|
||||
forecolor 1 .7 .7 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name opposinglogo
|
||||
ownerdraw UI_OPPONENTLOGO_METAL
|
||||
rect 530 6 96 96
|
||||
visible 1
|
||||
forecolor .7 .7 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// TEAM NAME //
|
||||
|
||||
itemDef {
|
||||
name playerteamname
|
||||
ownerdraw UI_PLAYERLOGO_NAME
|
||||
rect 120 54 120 60
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name opposingteamname
|
||||
ownerdraw UI_OPPONENTLOGO_NAME
|
||||
rect 392 54 120 60
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SERVER INFO MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_serverinfo"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 352 30 256 300
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 256 300
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .75 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name serverinfo
|
||||
group serverinfo
|
||||
rect 0 100 256 256
|
||||
text "Server Information"
|
||||
textalign 1
|
||||
textscale .25
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ok
|
||||
text "OK"
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 275 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { close ingame_serverinfo ; close ingame ; open ingame }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,619 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SYSTEM MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_system"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 298 30 276 325
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { hide grpsystem ; show graphics }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 256 310
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 167 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 213 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 103 0 64 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 264 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 213 264 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 192 16 74
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 261 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 261 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 261 192 16 74
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 320 74 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 138 320 74 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_graphics
|
||||
text "Graphics"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 30 25 65 20
|
||||
textalign 1
|
||||
textalignx 32
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpSystem ; show graphics }
|
||||
mouseEnter { setitemcolor ctr_graphics backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_graphics backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Quality:"
|
||||
cvar "ui_glCustom"
|
||||
cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 }
|
||||
rect 0 50 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript update "ui_glCustom" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
text "GL Driver:"
|
||||
cvar "r_gldriver"
|
||||
//cvarFloatList { }
|
||||
rect 0 70 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "GL Extensions:"
|
||||
cvar "r_allowExtensions"
|
||||
rect 0 90 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Video Mode:"
|
||||
cvar "r_mode"
|
||||
cvarFloatList { "320x240" 0 "400x300" 1 "512x384" 2 "640x480" 3 "800x600" 4 "960x720" 5 "1024x768" 6 "1152x864" 7 "1280x1024" 8 "1600x1200" 9 "2048x1536" 10 "856x480 wide screen" 11 }
|
||||
rect 0 110 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Color Depth:"
|
||||
cvar "r_colorbits"
|
||||
cvarFloatList { "Default" 0 "16 bit" 16 "32 bit" 32 }
|
||||
rect 0 130 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom ; uiScript update "r_colorbits" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Fullscreen:"
|
||||
cvar "r_fullscreen"
|
||||
rect 0 150 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Lighting:"
|
||||
cvar "r_vertexlight"
|
||||
cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1 }
|
||||
rect 0 170 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Geometric Detail:"
|
||||
cvar "r_lodbias"
|
||||
cvarFloatList { "High" 0 "Medium" 1 "Low" 2 }
|
||||
rect 0 190 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom ; uiScript update "r_lodbias" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Texture Detail:"
|
||||
cvar "r_picmip"
|
||||
cvarFloatList { "Low" 2 "Normal" 1 "High" 0 }
|
||||
rect 0 210 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Texture Quality:"
|
||||
cvar "r_texturebits"
|
||||
cvarFloatList { "Default" 0 "16 bit" 16 "32 bit" 32 }
|
||||
rect 0 230 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Texture Filter:"
|
||||
cvar "r_texturemode"
|
||||
cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR" }
|
||||
rect 0 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Compress Textures:"
|
||||
cvar "r_ext_compressed_textures "
|
||||
rect 0 270 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 133
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
|
||||
//here
|
||||
|
||||
itemDef {
|
||||
name ctr_driver
|
||||
text "Driver Info"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 105 25 65 20
|
||||
textalign 1
|
||||
textalignx 32
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpSystem ; show driver }
|
||||
mouseEnter { setitemcolor ctr_driver backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_driver backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name driver
|
||||
group grpSystem
|
||||
rect 15 55 230 230
|
||||
ownerdraw UI_GLINFO
|
||||
textalign 1
|
||||
textscale .15
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_other
|
||||
text "Other"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 180 25 65 20
|
||||
textalign 1
|
||||
textalignx 32
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpSystem ; show other }
|
||||
mouseEnter { setitemcolor ctr_other backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ctr_other backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
style 1
|
||||
text "Display"
|
||||
rect 0 45 128 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Brightness:"
|
||||
cvarfloat "r_gamma" 1 .5 2
|
||||
rect 0 65 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Screen Size:"
|
||||
cvarfloat "cg_viewsize" 100 30 100
|
||||
//cvarFloatList { }
|
||||
rect 0 85 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
style 1
|
||||
text "Sound"
|
||||
rect 0 125 128 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Effects Volume:"
|
||||
cvarfloat "s_volume" 0.7 0 1
|
||||
rect 0 145 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Music Volume:"
|
||||
cvarfloat "s_musicvolume" 0.25 0 1
|
||||
rect 0 165 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Sound Quality:"
|
||||
cvar "s_khz"
|
||||
cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 }
|
||||
rect 0 185 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Doppler Sound:"
|
||||
cvar "s_doppler"
|
||||
rect 0 205 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
style 1
|
||||
text "Network"
|
||||
rect 0 245 128 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Net Data Rate:"
|
||||
cvar "rate"
|
||||
cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000 }
|
||||
rect 0 265 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
text "Apply"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpsystem
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 101 295 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 0
|
||||
action { exec "vid_restart" }
|
||||
mouseEnter { setcolor backcolor .1 .37 .1 1 }
|
||||
mouseExit { setcolor backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,141 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SERVER INFO MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_vote"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 430 30 128 125
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 108 110
|
||||
style 1
|
||||
backcolor 0 .1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 30 0 65 16
|
||||
style 3
|
||||
background "ui/assets/ingameconnection.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 64 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "Yes"
|
||||
type 1
|
||||
textscale .25
|
||||
rect 0 30 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 10
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "vote yes" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "No"
|
||||
type 1
|
||||
textscale .25
|
||||
rect 0 50 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 10
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "vote no" ; uiScript closeingame }
|
||||
}
|
||||
itemDef {
|
||||
name yes
|
||||
text "TeamYes"
|
||||
type 1
|
||||
ownerdrawflag UI_SHOW_ANYTEAMGAME
|
||||
textscale .25
|
||||
rect 0 70 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 10
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "teamvote yes" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "TeamNo"
|
||||
type 1
|
||||
ownerdrawflag UI_SHOW_ANYTEAMGAME
|
||||
textscale .25
|
||||
rect 0 90 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 10
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "teamvote no" ; uiScript closeingame }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SERVER INFO MENU \\
|
||||
|
||||
menuDef {
|
||||
name "ingame_vote"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 387 30 210 64
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 210 64
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .75 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "Vote Yes"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 20 20 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "cmd vote yes" ; close ingame_vote }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "Vote No"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 115 20 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { exec "cmd vote no" ; close ingame_vote }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,143 @@
|
|||
// Copyright (C) 1999-2000 Id Software, Inc.
|
||||
//
|
||||
#ifndef __KEYCODES_H__
|
||||
#define __KEYCODES_H__
|
||||
|
||||
//
|
||||
// these are the key numbers that should be passed to KeyEvent
|
||||
//
|
||||
|
||||
// normal keys should be passed as lowercased ascii
|
||||
|
||||
typedef enum {
|
||||
K_TAB = 9,
|
||||
K_ENTER = 13,
|
||||
K_ESCAPE = 27,
|
||||
K_SPACE = 32,
|
||||
|
||||
K_BACKSPACE = 127,
|
||||
|
||||
K_COMMAND = 128,
|
||||
K_CAPSLOCK,
|
||||
K_POWER,
|
||||
K_PAUSE,
|
||||
|
||||
K_UPARROW,
|
||||
K_DOWNARROW,
|
||||
K_LEFTARROW,
|
||||
K_RIGHTARROW,
|
||||
|
||||
K_ALT,
|
||||
K_CTRL,
|
||||
K_SHIFT,
|
||||
K_INS,
|
||||
K_DEL,
|
||||
K_PGDN,
|
||||
K_PGUP,
|
||||
K_HOME,
|
||||
K_END,
|
||||
|
||||
K_F1,
|
||||
K_F2,
|
||||
K_F3,
|
||||
K_F4,
|
||||
K_F5,
|
||||
K_F6,
|
||||
K_F7,
|
||||
K_F8,
|
||||
K_F9,
|
||||
K_F10,
|
||||
K_F11,
|
||||
K_F12,
|
||||
K_F13,
|
||||
K_F14,
|
||||
K_F15,
|
||||
|
||||
K_KP_HOME,
|
||||
K_KP_UPARROW,
|
||||
K_KP_PGUP,
|
||||
K_KP_LEFTARROW,
|
||||
K_KP_5,
|
||||
K_KP_RIGHTARROW,
|
||||
K_KP_END,
|
||||
K_KP_DOWNARROW,
|
||||
K_KP_PGDN,
|
||||
K_KP_ENTER,
|
||||
K_KP_INS,
|
||||
K_KP_DEL,
|
||||
K_KP_SLASH,
|
||||
K_KP_MINUS,
|
||||
K_KP_PLUS,
|
||||
K_KP_NUMLOCK,
|
||||
K_KP_STAR,
|
||||
K_KP_EQUALS,
|
||||
|
||||
K_MOUSE1,
|
||||
K_MOUSE2,
|
||||
K_MOUSE3,
|
||||
K_MOUSE4,
|
||||
K_MOUSE5,
|
||||
|
||||
K_MWHEELDOWN,
|
||||
K_MWHEELUP,
|
||||
|
||||
K_JOY1,
|
||||
K_JOY2,
|
||||
K_JOY3,
|
||||
K_JOY4,
|
||||
K_JOY5,
|
||||
K_JOY6,
|
||||
K_JOY7,
|
||||
K_JOY8,
|
||||
K_JOY9,
|
||||
K_JOY10,
|
||||
K_JOY11,
|
||||
K_JOY12,
|
||||
K_JOY13,
|
||||
K_JOY14,
|
||||
K_JOY15,
|
||||
K_JOY16,
|
||||
K_JOY17,
|
||||
K_JOY18,
|
||||
K_JOY19,
|
||||
K_JOY20,
|
||||
K_JOY21,
|
||||
K_JOY22,
|
||||
K_JOY23,
|
||||
K_JOY24,
|
||||
K_JOY25,
|
||||
K_JOY26,
|
||||
K_JOY27,
|
||||
K_JOY28,
|
||||
K_JOY29,
|
||||
K_JOY30,
|
||||
K_JOY31,
|
||||
K_JOY32,
|
||||
|
||||
K_AUX1,
|
||||
K_AUX2,
|
||||
K_AUX3,
|
||||
K_AUX4,
|
||||
K_AUX5,
|
||||
K_AUX6,
|
||||
K_AUX7,
|
||||
K_AUX8,
|
||||
K_AUX9,
|
||||
K_AUX10,
|
||||
K_AUX11,
|
||||
K_AUX12,
|
||||
K_AUX13,
|
||||
K_AUX14,
|
||||
K_AUX15,
|
||||
K_AUX16,
|
||||
|
||||
K_LAST_KEY // this had better be <256!
|
||||
} keyNum_t;
|
||||
|
||||
|
||||
// The menu code needs to get both key and char events, but
|
||||
// to avoid duplicating the paths, the char events are just
|
||||
// distinguished by or'ing in K_CHAR_FLAG (ugly)
|
||||
#define K_CHAR_FLAG 1024
|
||||
|
||||
#endif
|
|
@ -0,0 +1,559 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
assetGlobalDef {
|
||||
font "fonts/font" 16 // font
|
||||
smallFont "fonts/smallfont" 12 // font
|
||||
bigFont "fonts/bigfont" 20 // font
|
||||
cursor "gfx/rq3_ta_hud/3_cursor2" // cursor
|
||||
gradientBar "gfx/rq3_ta_hud/gradientbar.tga" // gradient bar
|
||||
itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse )
|
||||
|
||||
fadeClamp 1.0 // sets the fadeup alpha
|
||||
fadeCycle 1 // how often fade happens in milliseconds
|
||||
fadeAmount 0.1 // amount to adjust alpha per cycle
|
||||
|
||||
shadowColor 0.1 0.1 0.1 0.25 // shadow color
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
menuDef {
|
||||
name "main"
|
||||
background "menuback_a" // Spinning Circle Background
|
||||
fullScreen MENU_TRUE
|
||||
rect 0 0 640 480 // Size and position of the menu
|
||||
visible MENU_TRUE // Visible on open
|
||||
focusColor 1 .75 0 1 // Menu focus color for text and items
|
||||
|
||||
|
||||
onOpen {
|
||||
setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
playlooped "music/sonic1.wav" ;
|
||||
fadeout fadebox ;
|
||||
transition cinematic 390 198 250 1 390 163 250 155 20 12 ;
|
||||
transition menuback_d 0 198 250 1 0 163 255 155 20 12 ;
|
||||
transition menuback_b 0 198 640 1 0 163 640 155 20 12 ;
|
||||
transition teamArenaBar 80 55 520 1 80 40 520 30 20 10 ;
|
||||
transition singlebar 0 95 640 1 0 80 640 30 20 10 ;
|
||||
transition optionbar 0 375 640 1 0 360 640 30 20 10 ;
|
||||
transition quitbar 0 419 640 1 0 404 640 30 20 10 ;
|
||||
play "sound/misc/tim_pump.wav" ;
|
||||
uiScript stopRefresh ;
|
||||
}
|
||||
|
||||
onESC { open quit_popmenu }
|
||||
|
||||
|
||||
|
||||
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 menuback_e // Flashing and rotating light
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
background "menuback_e"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_b // Transparent Blue Effect
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
visible 1
|
||||
background "menuback_b"
|
||||
bordercolor 0.5 0.5 0.5 .7
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//itemDef {
|
||||
// name cinematic
|
||||
// style 5 // Style for cinematic
|
||||
// cinematic "mpintro.roq"
|
||||
// rect 390 163 250 155
|
||||
// backcolor 1 1 1 .25
|
||||
// decoration
|
||||
// visible 1
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_d // Team arena text
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 255 155
|
||||
background "menuback_d"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name windowscreen // Vertical Line Image
|
||||
rect 0 0 640 240
|
||||
style 3
|
||||
background levelshotdetail
|
||||
forecolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name windowscreen // Vertical Line Image
|
||||
rect 0 240 640 240
|
||||
style 3
|
||||
background levelshotdetail
|
||||
forecolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_c // Center medal image
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 205 123 235 235
|
||||
background "menuback_c"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// GAMETYPE //
|
||||
|
||||
itemDef {
|
||||
name teamArenaBar
|
||||
style 2
|
||||
rect 80 40 520 30
|
||||
backcolor 0 0 .75 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
mouseEnter { hide gametype ; show teamarena ; setcolor backcolor .75 0 0 .25 }
|
||||
mouseExit { show gametype ; hide teamarena ; setcolor backcolor 0 0 .75 .25 }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametype
|
||||
type 1
|
||||
text "TEAM ARENA"
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 0 40 640 30
|
||||
forecolor 1 1 1 1
|
||||
textalignx 320
|
||||
textaligny 24
|
||||
textalign 1
|
||||
textscale .416
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
type 1
|
||||
text "Quake3"
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 120 40 80 30
|
||||
textscale .333
|
||||
textalign 1
|
||||
textalignx 40
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
open quake3_popmenu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
text "Rules"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 200 40 80 30
|
||||
textscale .333
|
||||
textalignx 40
|
||||
textaligny 22
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open help_menu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
text "Credits"
|
||||
type 1
|
||||
textstyle 6
|
||||
textscale .333
|
||||
style 0
|
||||
rect 280 40 80 30
|
||||
textalignx 40
|
||||
textaligny 22
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open credit }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
text "Mods"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
textscale .333
|
||||
rect 360 40 80 30
|
||||
textalignx 40
|
||||
textaligny 22
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open mod }
|
||||
}
|
||||
itemDef {
|
||||
name teamarena
|
||||
text "Cinematics"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
textscale .333
|
||||
rect 440 40 80 30
|
||||
textalignx 40
|
||||
textaligny 22
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open cinematicMenu }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// SINGLEPLAYER //
|
||||
|
||||
itemDef {
|
||||
name singlebar
|
||||
style 2
|
||||
rect 0 80 640 30
|
||||
backcolor 0 0 .75 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .25 ; hide play ; show playselection }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .25 ; show play ; hide playselection }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name play
|
||||
text "PLAY"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 0 80 640 30
|
||||
textalign 1
|
||||
textscale .416
|
||||
textalignx 320
|
||||
textaligny 24
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name playselection
|
||||
text "SinglePlayer"
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 170 80 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open Skirmish }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name playselection
|
||||
text "MultiPlayer"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 270 80 100 30
|
||||
textalign 1 // center
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open joinserver }
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name playselection
|
||||
text "StartServer"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 370 80 100 30
|
||||
textalign 1 // center
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open createserver }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// OPTIONS //
|
||||
itemDef {
|
||||
name optionbar
|
||||
style 2
|
||||
rect 0 360 640 30
|
||||
backcolor 0 0 1 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .25 ; hide options ; show optionselection }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .25 ; show options ; hide optionselection }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
text "OPTIONS"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 0 360 640 30
|
||||
textalignx 320
|
||||
textaligny 24
|
||||
textscale .416
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name optionselection
|
||||
text "Player"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 170 360 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open player_menu }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name optionselection
|
||||
text "Setup"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 270 360 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open setup_menu ;
|
||||
open control_menu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name optionselection
|
||||
text "Demos"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 370 360 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close main ;
|
||||
open demo }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// QUIT //
|
||||
|
||||
itemDef {
|
||||
name quitbar
|
||||
style 2
|
||||
rect 0 404 640 30
|
||||
backcolor 0 0 1 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name quit
|
||||
text "QUIT"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 0 404 640 30
|
||||
textalignx 320
|
||||
textaligny 24
|
||||
textscale .416
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
open quit_popmenu }
|
||||
mouseEnter { setitemcolor quitbar backcolor .75 0 0 .25 }
|
||||
mouseExit { setitemcolor quitbar backcolor 0 0 .75 .25 }
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
// DEMO ONLY OPTION //
|
||||
|
||||
itemDef {
|
||||
name copyright
|
||||
// demo_only
|
||||
text "Demo Version Only. Content Warning: Contains Depictions of Violence."
|
||||
style 0
|
||||
textscale .25
|
||||
rect 0 425 640 40
|
||||
textalign 1
|
||||
textaligny 32
|
||||
textalignx 320
|
||||
forecolor 1 .75 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name copyright
|
||||
text "Quake III: Team Arena Copyright 2000 Id Software, Inc. All rights reserved"
|
||||
style 0
|
||||
textscale .25
|
||||
rect 0 440 640 40
|
||||
textalign 1
|
||||
textaligny 32
|
||||
textalignx 320
|
||||
forecolor .75 0 0 .75
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name fadebox // Box for fading in menus
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,686 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
assetGlobalDef {
|
||||
font "fonts/impact.ttf" 16 // font
|
||||
smallFont "fonts/impact.ttf" 12 // font
|
||||
bigFont "fonts/impact.ttf" 20 // font
|
||||
cursor "menu/art/3_cursor3" // cursor
|
||||
gradientBar "ui/assets/gradientbar2.tga" // gradient bar
|
||||
//menuEnterSound "sound/misc/menu1.wav" // sound for menu loading
|
||||
//menuExitSound "sound/misc/menu3.wav" // sound for menu exiting
|
||||
itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse )
|
||||
//menuBuzzSound "sound/misc/menu4.wav" // sound for menu buzzing
|
||||
|
||||
fadeClamp 1.0 // sets the fadeup alpha
|
||||
fadeCycle 1 // how often fade happens in milliseconds
|
||||
fadeAmount 0.1 // amount to adjust alpha per cycle
|
||||
|
||||
//shadowX 5 // x amount for shadow offset
|
||||
//shadowY 5 // y amount for shadow offset
|
||||
shadowColor 0.1 0.1 0.1 0.25 // shadow color
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
menuDef {
|
||||
name "main"
|
||||
background "menuback_a"
|
||||
fullScreen MENU_TRUE
|
||||
rect 0 0 640 480
|
||||
visible MENU_TRUE
|
||||
focusColor 1 .75 0 1
|
||||
soundLoop "music/fla_mp03.wav"
|
||||
onESC { open quit_popmenu }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_e
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
background "menuback_e"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_b
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
visible 1
|
||||
background "menuback_b"
|
||||
bordercolor 0.5 0.5 0.5 .7
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name cinematic
|
||||
style 5
|
||||
cinematic "mpintro.roq"
|
||||
rect 390 163 250 155
|
||||
backcolor 1 1 1 .25
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_d
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 255 155
|
||||
background "menuback_d"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_c
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 205 123 235 235
|
||||
background "menuback_c"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name selection
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 205 123 235 235
|
||||
background "ui/assets/mainpop.tga"
|
||||
forecolor 1 1 1 .75
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name selection
|
||||
rect 252 170 144 144
|
||||
style 3
|
||||
background "centerconsole2"
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// GAMETYPE //
|
||||
|
||||
itemDef {
|
||||
name gametypebar
|
||||
style 2
|
||||
rect 80 40 520 30
|
||||
backcolor 0 0 .75 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
mouseEnter { hide gametype ; show teamarena ; setcolor backcolor .75 0 0 .25 ; show selection }
|
||||
mouseExit { show gametype ; hide teamarena ; setcolor backcolor 0 0 .75 .25 ; hide selection ; hide grpMessage }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametype
|
||||
type 1
|
||||
text "TEAM ARENA"
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 0 40 640 30
|
||||
forecolor 1 1 1 1
|
||||
textalignx 320
|
||||
textaligny 23
|
||||
textalign 1
|
||||
textscale .416
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
type 1
|
||||
text "Quake3"
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 200 40 60 30
|
||||
textscale .333
|
||||
textalign 1
|
||||
textalignx 30
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_quake }
|
||||
mouseexit { fadeout message_quake }
|
||||
action { open quake3_popmenu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
text "Rules"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 260 40 60 30
|
||||
textscale .333
|
||||
textalignx 30
|
||||
textaligny 22
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_help }
|
||||
mouseexit { fadeout message_help }
|
||||
action { close main ; open help_menu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
text "Credits"
|
||||
type 1
|
||||
textstyle 6
|
||||
textscale .333
|
||||
style 0
|
||||
rect 320 40 60 30
|
||||
textalignx 30
|
||||
textaligny 22
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_credits }
|
||||
mouseexit { fadeout message_credits }
|
||||
action { close main ; open credit }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name teamarena
|
||||
text "Mods"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
textscale .333
|
||||
rect 380 40 60 30
|
||||
textalignx 30
|
||||
textaligny 22
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_mods }
|
||||
mouseexit { fadeout message_mods }
|
||||
action { close main ; open mod }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// SINGLEPLAYER //
|
||||
|
||||
itemDef {
|
||||
name singlebar
|
||||
style 2
|
||||
rect 0 80 640 30
|
||||
backcolor 0 0 .75 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .25 ; hide play ; show playselection ; show selection }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .25 ; show play ; hide playselection ; hide selection ; hide grpMessage }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name play
|
||||
text "PLAY"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 0 80 640 30
|
||||
textalign 1
|
||||
textscale .416
|
||||
textalignx 320
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name playselection
|
||||
text "SinglePlayer"
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 170 80 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_singleplayer }
|
||||
mouseexit { fadeout message_singleplayer }
|
||||
action { close main ; open Skirmish }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name playselection
|
||||
text "MultiPlayer"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 270 80 100 30
|
||||
textalign 1 // center
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_multiplayer }
|
||||
mouseexit { fadeout message_multiplayer }
|
||||
action { close main ; open joinserver }
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name playselection
|
||||
text "StartServer"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 370 80 100 30
|
||||
textalign 1 // center
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_startserver }
|
||||
mouseexit { fadeout message_startserver }
|
||||
action { close main ; open createserver }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// OPTIONS //
|
||||
itemDef {
|
||||
name optionbar
|
||||
style 2
|
||||
rect 0 360 640 30
|
||||
backcolor 0 0 1 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .25 ; hide options ; show optionselection ; show selection }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .25 ; show options ; hide optionselection ; hide selection ; hide grpMessage }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
text "OPTIONS"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 0 360 640 30
|
||||
textalignx 320
|
||||
textaligny 23
|
||||
textscale .416
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { fadein message_options }
|
||||
mouseexit { fadeout message_options }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name optionselection
|
||||
text "Player"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 170 360 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_player }
|
||||
mouseexit { fadeout message_player }
|
||||
action { close main ; open player_menu }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name optionselection
|
||||
text "Setup"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 270 360 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_setup }
|
||||
mouseexit { fadeout message_setup }
|
||||
action { close main ; open setup_menu ; open control_menu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name optionselection
|
||||
text "Demos"
|
||||
type 1
|
||||
style 0
|
||||
textstyle 6
|
||||
rect 370 360 100 30
|
||||
textalignx 50
|
||||
textaligny 22
|
||||
textscale .333
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
mouseenter { fadein message_demos }
|
||||
mouseexit { fadeout message_demos }
|
||||
action { close main ; open demo }
|
||||
}
|
||||
|
||||
// QUIT //
|
||||
|
||||
itemDef {
|
||||
name quitbar
|
||||
style 2
|
||||
rect 0 404 640 30
|
||||
backcolor 0 0 1 .25
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
bordersize 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name quit
|
||||
text "QUIT"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 0 404 640 30
|
||||
textalignx 320
|
||||
textaligny 23
|
||||
textscale .416
|
||||
textalign 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { open quit_popmenu }
|
||||
mouseEnter { setitemcolor quitbar backcolor .75 0 0 .25 ; show selection ; show message_quit }
|
||||
mouseExit { setitemcolor quitbar backcolor 0 0 .75 .25 ; hide selection ; fadeout message_quit ; hide grpMessage }
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name copyright
|
||||
text "Quake III Copyright 2000 id software, inc. All rights reserved"
|
||||
style 0
|
||||
textscale .25
|
||||
rect 0 440 640 40
|
||||
textalign 1
|
||||
textaligny 32
|
||||
textalignx 320
|
||||
forecolor .75 0 0 .75
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_quake
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 265 210 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text "Play the Original \r"
|
||||
"Quake III Game."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_help
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 261 195 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " Rules for \r"
|
||||
"New Gametytpes,\r"
|
||||
" Powerups, and\r"
|
||||
" Team Orders."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_credits
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 272 220 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " About Us."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_mods
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 256 210 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " Modifications of\r"
|
||||
"Quake III by other \r"
|
||||
" Developers."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_singleplayer
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 260 205 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " Challenge Your\r"
|
||||
"Skills Against the\r"
|
||||
" Computer."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_multiplayer
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 265 205 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text "Join other Team \r"
|
||||
"Arena Games on\r"
|
||||
" LAN or Internet."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_startserver
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 272 205 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " Start a Game\r"
|
||||
" Server for\r"
|
||||
"Others to Join."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_player
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 275 205 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " Select Your\r"
|
||||
"Player Model\r"
|
||||
" and Clan."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_setup
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 257 205 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " Set Controls,\r"
|
||||
"Game Options, and \r"
|
||||
" System Settings."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_demos
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 258 210 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " View Recorded\r"
|
||||
"Team Arena Game."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_quit
|
||||
group grpMessage
|
||||
style 0
|
||||
rect 258 225 235 20
|
||||
textalign 0
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
wrapped
|
||||
textscale .333
|
||||
text " Get to Work!"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,287 @@
|
|||
|
||||
#define ITEM_TYPE_TEXT 0 // simple text
|
||||
#define ITEM_TYPE_BUTTON 1 // button, basically text with a border
|
||||
#define ITEM_TYPE_RADIOBUTTON 2 // toggle button, may be grouped
|
||||
#define ITEM_TYPE_CHECKBOX 3 // check box
|
||||
#define ITEM_TYPE_EDITFIELD 4 // editable text, associated with a cvar
|
||||
#define ITEM_TYPE_COMBO 5 // drop down list
|
||||
#define ITEM_TYPE_LISTBOX 6 // scrollable list
|
||||
#define ITEM_TYPE_MODEL 7 // model
|
||||
#define ITEM_TYPE_OWNERDRAW 8 // owner draw, name specs what it is
|
||||
#define ITEM_TYPE_NUMERICFIELD 9 // editable text, associated with a cvar
|
||||
#define ITEM_TYPE_SLIDER 10 // mouse speed, volume, etc.
|
||||
#define ITEM_TYPE_YESNO 11 // yes no cvar setting
|
||||
#define ITEM_TYPE_MULTI 12 // multiple list setting, enumerated
|
||||
#define ITEM_TYPE_BIND 13 // multiple list setting, enumerated
|
||||
|
||||
#define ITEM_ALIGN_LEFT 0 // left alignment
|
||||
#define ITEM_ALIGN_CENTER 1 // center alignment
|
||||
#define ITEM_ALIGN_RIGHT 2 // right alignment
|
||||
|
||||
#define ITEM_TEXTSTYLE_NORMAL 0 // normal text
|
||||
#define ITEM_TEXTSTYLE_BLINK 1 // fast blinking
|
||||
#define ITEM_TEXTSTYLE_PULSE 2 // slow pulsing
|
||||
#define ITEM_TEXTSTYLE_SHADOWED 3 // drop shadow ( need a color for this )
|
||||
#define ITEM_TEXTSTYLE_OUTLINED 4 // drop shadow ( need a color for this )
|
||||
#define ITEM_TEXTSTYLE_OUTLINESHADOWED 5 // drop shadow ( need a color for this )
|
||||
#define ITEM_TEXTSTYLE_SHADOWEDMORE 6 // drop shadow ( need a color for this )
|
||||
|
||||
#define WINDOW_BORDER_NONE 0 // no border
|
||||
#define WINDOW_BORDER_FULL 1 // full border based on border color ( single pixel )
|
||||
#define WINDOW_BORDER_HORZ 2 // horizontal borders only
|
||||
#define WINDOW_BORDER_VERT 3 // vertical borders only
|
||||
#define WINDOW_BORDER_KCGRADIENT 4 // horizontal border using the gradient bars
|
||||
|
||||
#define WINDOW_STYLE_EMPTY 0 // no background
|
||||
#define WINDOW_STYLE_FILLED 1 // filled with background color
|
||||
#define WINDOW_STYLE_GRADIENT 2 // gradient bar based on background color
|
||||
#define WINDOW_STYLE_SHADER 3 // gradient bar based on background color
|
||||
#define WINDOW_STYLE_TEAMCOLOR 4 // team color
|
||||
#define WINDOW_STYLE_CINEMATIC 5 // cinematic
|
||||
|
||||
#define MENU_TRUE 1 // uh.. true
|
||||
#define MENU_FALSE 0 // and false
|
||||
|
||||
#define HUD_VERTICAL 0x00
|
||||
#define HUD_HORIZONTAL 0x01
|
||||
|
||||
// list box element types
|
||||
#define LISTBOX_TEXT 0x00
|
||||
#define LISTBOX_IMAGE 0x01
|
||||
|
||||
// list feeders
|
||||
#define FEEDER_HEADS 0x00 // model heads
|
||||
#define FEEDER_MAPS 0x01 // text maps based on game type
|
||||
#define FEEDER_SERVERS 0x02 // servers
|
||||
#define FEEDER_CLANS 0x03 // clan names
|
||||
#define FEEDER_ALLMAPS 0x04 // all maps available, in graphic format
|
||||
#define FEEDER_REDTEAM_LIST 0x05 // red team members
|
||||
#define FEEDER_BLUETEAM_LIST 0x06 // blue team members
|
||||
#define FEEDER_PLAYER_LIST 0x07 // players
|
||||
#define FEEDER_TEAM_LIST 0x08 // team members for team voting
|
||||
#define FEEDER_MODS 0x09 // team members for team voting
|
||||
#define FEEDER_DEMOS 0x0a // team members for team voting
|
||||
#define FEEDER_SCOREBOARD 0x0b // team members for team voting
|
||||
#define FEEDER_Q3HEADS 0x0c // model heads
|
||||
#define FEEDER_SERVERSTATUS 0x0d // server status
|
||||
#define FEEDER_FINDPLAYER 0x0e // find player
|
||||
#define FEEDER_CINEMATICS 0x0f // cinematics
|
||||
|
||||
// display flags
|
||||
#define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001
|
||||
#define CG_SHOW_RED_TEAM_HAS_BLUEFLAG 0x00000002
|
||||
#define CG_SHOW_ANYTEAMGAME 0x00000004
|
||||
#define CG_SHOW_HARVESTER 0x00000008
|
||||
#define CG_SHOW_ONEFLAG 0x00000010
|
||||
#define CG_SHOW_CTF 0x00000020
|
||||
#define CG_SHOW_OBELISK 0x00000040
|
||||
#define CG_SHOW_HEALTHCRITICAL 0x00000080
|
||||
#define CG_SHOW_SINGLEPLAYER 0x00000100
|
||||
#define CG_SHOW_TOURNAMENT 0x00000200
|
||||
#define CG_SHOW_DURINGINCOMINGVOICE 0x00000400
|
||||
#define CG_SHOW_IF_PLAYER_HAS_FLAG 0x00000800
|
||||
#define CG_SHOW_LANPLAYONLY 0x00001000
|
||||
#define CG_SHOW_MINED 0x00002000
|
||||
#define CG_SHOW_HEALTHOK 0x00004000
|
||||
#define CG_SHOW_TEAMINFO 0x00008000
|
||||
#define CG_SHOW_NOTEAMINFO 0x00010000
|
||||
#define CG_SHOW_OTHERTEAMHASFLAG 0x00020000
|
||||
#define CG_SHOW_YOURTEAMHASENEMYFLAG 0x00040000
|
||||
#define CG_SHOW_ANYNONTEAMGAME 0x00080000
|
||||
#define CG_SHOW_2DONLY 0x10000000
|
||||
|
||||
|
||||
#define UI_SHOW_LEADER 0x00000001
|
||||
#define UI_SHOW_NOTLEADER 0x00000002
|
||||
#define UI_SHOW_FAVORITESERVERS 0x00000004
|
||||
#define UI_SHOW_ANYNONTEAMGAME 0x00000008
|
||||
#define UI_SHOW_ANYTEAMGAME 0x00000010
|
||||
#define UI_SHOW_NEWHIGHSCORE 0x00000020
|
||||
#define UI_SHOW_DEMOAVAILABLE 0x00000040
|
||||
#define UI_SHOW_NEWBESTTIME 0x00000080
|
||||
#define UI_SHOW_FFA 0x00000100
|
||||
#define UI_SHOW_NOTFFA 0x00000200
|
||||
#define UI_SHOW_NETANYNONTEAMGAME 0x00000400
|
||||
#define UI_SHOW_NETANYTEAMGAME 0x00000800
|
||||
#define UI_SHOW_NOTFAVORITESERVERS 0x00001000
|
||||
|
||||
|
||||
|
||||
|
||||
// owner draw types
|
||||
// ideally these should be done outside of this file but
|
||||
// this makes it much easier for the macro expansion to
|
||||
// convert them for the designers ( from the .menu files )
|
||||
#define CG_OWNERDRAW_BASE 1
|
||||
#define CG_PLAYER_ARMOR_ICON 1
|
||||
#define CG_PLAYER_ARMOR_VALUE 2
|
||||
#define CG_PLAYER_HEAD 3
|
||||
#define CG_PLAYER_HEALTH 4
|
||||
#define CG_PLAYER_AMMO_ICON 5
|
||||
#define CG_PLAYER_AMMO_VALUE 6
|
||||
#define CG_SELECTEDPLAYER_HEAD 7
|
||||
#define CG_SELECTEDPLAYER_NAME 8
|
||||
#define CG_SELECTEDPLAYER_LOCATION 9
|
||||
#define CG_SELECTEDPLAYER_STATUS 10
|
||||
#define CG_SELECTEDPLAYER_WEAPON 11
|
||||
#define CG_SELECTEDPLAYER_POWERUP 12
|
||||
|
||||
#define CG_FLAGCARRIER_HEAD 13
|
||||
#define CG_FLAGCARRIER_NAME 14
|
||||
#define CG_FLAGCARRIER_LOCATION 15
|
||||
#define CG_FLAGCARRIER_STATUS 16
|
||||
#define CG_FLAGCARRIER_WEAPON 17
|
||||
#define CG_FLAGCARRIER_POWERUP 18
|
||||
|
||||
#define CG_PLAYER_ITEM 19
|
||||
#define CG_PLAYER_SCORE 20
|
||||
|
||||
#define CG_BLUE_FLAGHEAD 21
|
||||
#define CG_BLUE_FLAGSTATUS 22
|
||||
#define CG_BLUE_FLAGNAME 23
|
||||
#define CG_RED_FLAGHEAD 24
|
||||
#define CG_RED_FLAGSTATUS 25
|
||||
#define CG_RED_FLAGNAME 26
|
||||
|
||||
#define CG_BLUE_SCORE 27
|
||||
#define CG_RED_SCORE 28
|
||||
#define CG_RED_NAME 29
|
||||
#define CG_BLUE_NAME 30
|
||||
#define CG_HARVESTER_SKULLS 31 // only shows in harvester
|
||||
#define CG_ONEFLAG_STATUS 32 // only shows in one flag
|
||||
#define CG_PLAYER_LOCATION 33
|
||||
#define CG_TEAM_COLOR 34
|
||||
#define CG_CTF_POWERUP 35
|
||||
|
||||
#define CG_AREA_POWERUP 36
|
||||
#define CG_AREA_LAGOMETER 37 // painted with old system
|
||||
#define CG_PLAYER_HASFLAG 38
|
||||
#define CG_GAME_TYPE 39 // not done
|
||||
|
||||
#define CG_SELECTEDPLAYER_ARMOR 40
|
||||
#define CG_SELECTEDPLAYER_HEALTH 41
|
||||
#define CG_PLAYER_STATUS 42
|
||||
#define CG_FRAGGED_MSG 43 // painted with old system
|
||||
#define CG_PROXMINED_MSG 44 // painted with old system
|
||||
#define CG_AREA_FPSINFO 45 // painted with old system
|
||||
#define CG_AREA_SYSTEMCHAT 46 // painted with old system
|
||||
#define CG_AREA_TEAMCHAT 47 // painted with old system
|
||||
#define CG_AREA_CHAT 48 // painted with old system
|
||||
#define CG_GAME_STATUS 49
|
||||
#define CG_KILLER 50
|
||||
#define CG_PLAYER_ARMOR_ICON2D 51
|
||||
#define CG_PLAYER_AMMO_ICON2D 52
|
||||
#define CG_ACCURACY 53
|
||||
#define CG_ASSISTS 54
|
||||
#define CG_DEFEND 55
|
||||
#define CG_EXCELLENT 56
|
||||
#define CG_IMPRESSIVE 57
|
||||
#define CG_PERFECT 58
|
||||
#define CG_GAUNTLET 59
|
||||
#define CG_SPECTATORS 60
|
||||
#define CG_TEAMINFO 61
|
||||
#define CG_VOICE_HEAD 62
|
||||
#define CG_VOICE_NAME 63
|
||||
#define CG_PLAYER_HASFLAG2D 64
|
||||
#define CG_HARVESTER_SKULLS2D 65 // only shows in harvester
|
||||
#define CG_CAPFRAGLIMIT 66
|
||||
#define CG_1STPLACE 67
|
||||
#define CG_2NDPLACE 68
|
||||
#define CG_CAPTURES 69
|
||||
|
||||
|
||||
|
||||
|
||||
#define UI_OWNERDRAW_BASE 200
|
||||
#define UI_HANDICAP 200
|
||||
#define UI_EFFECTS 201
|
||||
#define UI_PLAYERMODEL 202
|
||||
#define UI_CLANNAME 203
|
||||
#define UI_CLANLOGO 204
|
||||
#define UI_GAMETYPE 205
|
||||
#define UI_MAPPREVIEW 206
|
||||
#define UI_SKILL 207
|
||||
#define UI_BLUETEAMNAME 208
|
||||
#define UI_REDTEAMNAME 209
|
||||
#define UI_BLUETEAM1 210
|
||||
#define UI_BLUETEAM2 211
|
||||
#define UI_BLUETEAM3 212
|
||||
#define UI_BLUETEAM4 213
|
||||
#define UI_BLUETEAM5 214
|
||||
#define UI_REDTEAM1 215
|
||||
#define UI_REDTEAM2 216
|
||||
#define UI_REDTEAM3 217
|
||||
#define UI_REDTEAM4 218
|
||||
#define UI_REDTEAM5 219
|
||||
#define UI_NETSOURCE 220
|
||||
#define UI_NETMAPPREVIEW 221
|
||||
#define UI_NETFILTER 222
|
||||
#define UI_TIER 223
|
||||
#define UI_OPPONENTMODEL 224
|
||||
#define UI_TIERMAP1 225
|
||||
#define UI_TIERMAP2 226
|
||||
#define UI_TIERMAP3 227
|
||||
#define UI_PLAYERLOGO 228
|
||||
#define UI_OPPONENTLOGO 229
|
||||
#define UI_PLAYERLOGO_METAL 230
|
||||
#define UI_OPPONENTLOGO_METAL 231
|
||||
#define UI_PLAYERLOGO_NAME 232
|
||||
#define UI_OPPONENTLOGO_NAME 233
|
||||
#define UI_TIER_MAPNAME 234
|
||||
#define UI_TIER_GAMETYPE 235
|
||||
#define UI_ALLMAPS_SELECTION 236
|
||||
#define UI_OPPONENT_NAME 237
|
||||
#define UI_VOTE_KICK 238
|
||||
#define UI_BOTNAME 239
|
||||
#define UI_BOTSKILL 240
|
||||
#define UI_REDBLUE 241
|
||||
#define UI_CROSSHAIR 242
|
||||
#define UI_SELECTEDPLAYER 243
|
||||
#define UI_MAPCINEMATIC 244
|
||||
#define UI_NETGAMETYPE 245
|
||||
#define UI_NETMAPCINEMATIC 246
|
||||
#define UI_SERVERREFRESHDATE 247
|
||||
#define UI_SERVERMOTD 248
|
||||
#define UI_GLINFO 249
|
||||
#define UI_KEYBINDSTATUS 250
|
||||
#define UI_CLANCINEMATIC 251
|
||||
#define UI_MAP_TIMETOBEAT 252
|
||||
#define UI_JOINGAMETYPE 253
|
||||
#define UI_PREVIEWCINEMATIC 254
|
||||
#define UI_STARTMAPCINEMATIC 255
|
||||
#define UI_MAPS_SELECTION 256
|
||||
|
||||
#define VOICECHAT_GETFLAG "getflag" // command someone to get the flag
|
||||
#define VOICECHAT_OFFENSE "offense" // command someone to go on offense
|
||||
#define VOICECHAT_DEFEND "defend" // command someone to go on defense
|
||||
#define VOICECHAT_DEFENDFLAG "defendflag" // command someone to defend the flag
|
||||
#define VOICECHAT_PATROL "patrol" // command someone to go on patrol (roam)
|
||||
#define VOICECHAT_CAMP "camp" // command someone to camp (we don't have sounds for this one)
|
||||
#define VOICECHAT_FOLLOWME "followme" // command someone to follow you
|
||||
#define VOICECHAT_RETURNFLAG "returnflag" // command someone to return our flag
|
||||
#define VOICECHAT_FOLLOWFLAGCARRIER "followflagcarrier" // command someone to follow the flag carrier
|
||||
#define VOICECHAT_YES "yes" // yes, affirmative, etc.
|
||||
#define VOICECHAT_NO "no" // no, negative, etc.
|
||||
#define VOICECHAT_ONGETFLAG "ongetflag" // I'm getting the flag
|
||||
#define VOICECHAT_ONOFFENSE "onoffense" // I'm on offense
|
||||
#define VOICECHAT_ONDEFENSE "ondefense" // I'm on defense
|
||||
#define VOICECHAT_ONPATROL "onpatrol" // I'm on patrol (roaming)
|
||||
#define VOICECHAT_ONCAMPING "oncamp" // I'm camping somewhere
|
||||
#define VOICECHAT_ONFOLLOW "onfollow" // I'm following
|
||||
#define VOICECHAT_ONFOLLOWCARRIER "onfollowcarrier" // I'm following the flag carrier
|
||||
#define VOICECHAT_ONRETURNFLAG "onreturnflag" // I'm returning our flag
|
||||
#define VOICECHAT_INPOSITION "inposition" // I'm in position
|
||||
#define VOICECHAT_IHAVEFLAG "ihaveflag" // I have the flag
|
||||
#define VOICECHAT_BASEATTACK "baseattack" // the base is under attack
|
||||
#define VOICECHAT_ENEMYHASFLAG "enemyhasflag" // the enemy has our flag (CTF)
|
||||
#define VOICECHAT_STARTLEADER "startleader" // I'm the leader
|
||||
#define VOICECHAT_STOPLEADER "stopleader" // I resign leadership
|
||||
#define VOICECHAT_TRASH "trash" // lots of trash talk
|
||||
#define VOICECHAT_WHOISLEADER "whoisleader" // who is the team leader
|
||||
#define VOICECHAT_WANTONDEFENSE "wantondefense" // I want to be on defense
|
||||
#define VOICECHAT_WANTONOFFENSE "wantonoffense" // I want to be on offense
|
||||
#define VOICECHAT_KILLINSULT "kill_insult" // I just killed you
|
||||
#define VOICECHAT_TAUNT "taunt" // I want to taunt you
|
||||
#define VOICECHAT_DEATHINSULT "death_insult" // you just killed me
|
||||
#define VOICECHAT_KILLGAUNTLET "kill_gauntlet" // I just killed you with the gauntlet
|
||||
#define VOICECHAT_PRAISE "praise" // you did something good
|
|
@ -0,0 +1,37 @@
|
|||
// menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/main.menu" }
|
||||
loadMenu { "ui/joinserver.menu" }
|
||||
loadMenu { "ui/player.menu" }
|
||||
loadMenu { "ui/setup.menu" }
|
||||
loadMenu { "ui/fight.menu" }
|
||||
loadMenu { "ui/skirmish.menu" }
|
||||
loadMenu { "ui/createserver.menu" }
|
||||
loadMenu { "ui/controls.menu" }
|
||||
loadMenu { "ui/cdkey.menu" }
|
||||
loadMenu { "ui/system.menu" }
|
||||
loadMenu { "ui/options.menu" }
|
||||
loadMenu { "ui/help.menu" }
|
||||
loadMenu { "ui/ordershelp.menu" }
|
||||
loadMenu { "ui/mod.menu" }
|
||||
loadMenu { "ui/demo.menu" }
|
||||
loadMenu { "ui/cinematicmenu.menu" }
|
||||
loadMenu { "ui/credit.menu" }
|
||||
loadMenu { "ui/demo_quit.menu" }
|
||||
loadMenu { "ui/connect.menu" }
|
||||
loadMenu { "ui/powerup.menu" }
|
||||
loadMenu { "ui/password.menu" }
|
||||
loadMenu { "ui/quake3.menu" }
|
||||
loadMenu { "ui/quit.menu" }
|
||||
loadMenu { "ui/vid_restart.menu" }
|
||||
loadMenu { "ui/default.menu" }
|
||||
loadMenu { "ui/addfilter.menu" }
|
||||
loadMenu { "ui/error.menu" }
|
||||
loadMenu { "ui/serverinfo.menu" }
|
||||
loadMenu { "ui/findplayer.menu" }
|
||||
loadMenu { "ui/endofgame.menu" }
|
||||
loadMenu { "ui/quitcredit.menu" }
|
||||
loadMenu { "ui/resetscore.menu" }
|
||||
loadMenu { "ui/createfavorite.menu" }
|
||||
}
|
|
@ -0,0 +1,674 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
// team menu
|
||||
//
|
||||
// defines from ui_shared.h
|
||||
|
||||
{
|
||||
assetGlobalDef {
|
||||
cursor "ui/assets/3_cursor2" // cursor
|
||||
gradientBar "ui/assets/gradientbar2.tga" // gradient bar
|
||||
fadeClamp 1.0 // sets the fadeup alpha
|
||||
fadeCycle 1 // how often fade happens in milliseconds
|
||||
fadeAmount 0.1 // amount to adjust alpha per cycle
|
||||
|
||||
shadowX 5 // x amount for shadow offset
|
||||
shadowY 5 // y amount for shadow offset
|
||||
shadowColor 0.1 0.1 0.1 0.25 // shadow color
|
||||
|
||||
font "fonts/impact.ttf" 16 // font
|
||||
smallFont "fonts/impact.ttf" 12 // font
|
||||
bigFont "fonts/impact.ttf" 20 // font
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// SELECTED PLAYER //
|
||||
|
||||
menuDef {
|
||||
name "SelectedPlayer"
|
||||
fullScreen MENU_FALSE
|
||||
visible 1
|
||||
rect 0 390 222 64
|
||||
ownerdrawflag CG_SHOW_ANYTEAMGAME
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 0 0 222 64
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_TEAMINFO
|
||||
}
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 0 40 222 24
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 0 4 221 64
|
||||
visible 1
|
||||
textscale .2
|
||||
textaligny 10
|
||||
textalignx 0
|
||||
forecolor 1 1 1 1
|
||||
ownerdrawflag CG_SHOW_TEAMINFO
|
||||
ownerdraw CG_TEAMINFO
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 41 20 20
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_HEAD
|
||||
}
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 21 44 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_STATUS
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 41 43 35 15
|
||||
textscale 0.2125
|
||||
textstyle 3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_NAME
|
||||
}
|
||||
|
||||
/*
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 90 43 45 15
|
||||
textscale 0.2125
|
||||
textstyle 3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_NOTEAMINFO
|
||||
ownerdraw CG_SELECTEDPLAYER_LOCATION
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// PLAYER STATUS //
|
||||
|
||||
menuDef {
|
||||
name "playerStatus"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 142 455 80 24
|
||||
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 1 1 78 22
|
||||
style 3
|
||||
background hudalert_good
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerStatusRect"
|
||||
style 4
|
||||
rect 0 0 80 24
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "playeritem"
|
||||
rect 5 4 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_ITEM
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "CTFPOWERUP"
|
||||
rect 25 4 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_CTF_POWERUP
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "flag"
|
||||
rect 45 4 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_HASFLAG2D
|
||||
ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG
|
||||
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "skulls"
|
||||
rect 39 -14 40 32
|
||||
textaligny 4
|
||||
textalignx 0
|
||||
visible 1
|
||||
textscale .25
|
||||
decoration
|
||||
textstyle 3
|
||||
ownerdraw CG_HARVESTER_SKULLS2D
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// POWERUP AREA //
|
||||
|
||||
menuDef {
|
||||
name "powerup area"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 0 455 141 24
|
||||
|
||||
|
||||
itemDef {
|
||||
name "powerRect"
|
||||
visible 1
|
||||
style 4
|
||||
rect 0 0 35 24
|
||||
}
|
||||
itemDef {
|
||||
name "powerRect"
|
||||
visible 1
|
||||
style 4
|
||||
rect 70 0 35 24
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "powerRect"
|
||||
visible 1
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
rect 0 0 141 24
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name "powerupArea"
|
||||
rect 2 3 18 18
|
||||
textscale .25
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_AREA_POWERUP
|
||||
special 18 // spacing
|
||||
align HUD_HORIZONTAL
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// AMMO //
|
||||
|
||||
menuDef {
|
||||
name "Ammo"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 223 455 64 24
|
||||
|
||||
|
||||
itemDef {
|
||||
name "ammoRect"
|
||||
visible 1
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
rect 0 0 64 24
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "a"
|
||||
rect 30 1 24 19
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
ownerdraw CG_PLAYER_AMMO_VALUE
|
||||
addColorRange -999 5 1 0 0 1
|
||||
addColorRange 6 999 1 .75 0 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "a"
|
||||
rect 5 2 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_AMMO_ICON2D
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// PLAYER //
|
||||
|
||||
menuDef {
|
||||
name "Player"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 288 455 64 24
|
||||
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 1 1 62 23
|
||||
style 3
|
||||
background hudalert
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_HEALTHCRITICAL
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "playerRect"
|
||||
rect 0 0 64 24
|
||||
style 4
|
||||
visible 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "healthok"
|
||||
rect 30 1 24 19
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .333
|
||||
ownerdraw CG_PLAYER_HEALTH
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 1 22 22
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_HEAD
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ARMOR //
|
||||
|
||||
menuDef {
|
||||
name "Armor"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 353 455 64 24
|
||||
|
||||
|
||||
itemDef {
|
||||
name "armorRect"
|
||||
rect 0 0 64 24
|
||||
visible 1
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "armor"
|
||||
rect 5 -8 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_ARMOR_ICON2D
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "armor2"
|
||||
textstyle 3
|
||||
rect 30 1 24 19
|
||||
visible 1
|
||||
decoration
|
||||
textscale .333
|
||||
ownerdraw CG_PLAYER_ARMOR_VALUE
|
||||
addColorRange -999 25 .67 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 .75 .75 .75 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// TEAMSCORE //
|
||||
|
||||
menuDef {
|
||||
name "teamScore"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 418 455 150 24
|
||||
ownerdrawflag CG_SHOW_ANYTEAMGAME
|
||||
|
||||
itemDef {
|
||||
name "teamRect"
|
||||
rect 53 1 47 22
|
||||
style 3
|
||||
background hudalert_blue
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "teamRect"
|
||||
rect 100 1 50 22
|
||||
style 3
|
||||
background hudalert_red
|
||||
visible 1
|
||||
ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "teamScoreRect"
|
||||
visible 1
|
||||
rect 0 0 150 24
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
style 4
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 55 5 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/bluechip.tga"
|
||||
}
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 55 5 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
ownerdrawflag CG_SHOW_HARVESTER
|
||||
background "icons/skull_blue.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "blueflag"
|
||||
rect 55 5 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_CTF
|
||||
ownerdraw CG_BLUE_FLAGSTATUS
|
||||
}
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
rect 5 18 40 12
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
text ""
|
||||
ownerdraw CG_CAPFRAGLIMIT
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "oneflagstatus"
|
||||
rect 34 5 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_ONEFLAG_STATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "r"
|
||||
rect 71 6 18 12
|
||||
textstyle 3
|
||||
visible 1
|
||||
decoration
|
||||
forecolor .25 .25 1 1
|
||||
textscale 0.25
|
||||
ownerdraw CG_BLUE_SCORE
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 110 5 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 1
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/redchip.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 110 5 16 16
|
||||
visible 1
|
||||
bordercolor 1 1 1 1
|
||||
decoration
|
||||
style 3
|
||||
ownerdrawflag CG_SHOW_HARVESTER
|
||||
background "icons/skull_red.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 110 5 16 16
|
||||
visible 1
|
||||
decoration
|
||||
ownerdrawflag CG_SHOW_CTF
|
||||
ownerdraw CG_RED_FLAGSTATUS
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "r"
|
||||
rect 126 6 18 12
|
||||
textstyle 3
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.25
|
||||
ownerdraw CG_RED_SCORE
|
||||
}
|
||||
}
|
||||
|
||||
// TEAMSCORE //
|
||||
|
||||
menuDef {
|
||||
name "teamScore"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 418 455 150 24
|
||||
ownerdrawflag CG_SHOW_ANYNONTEAMGAME
|
||||
|
||||
|
||||
itemDef {
|
||||
name "teamScoreRect"
|
||||
visible 1
|
||||
rect 0 0 150 24
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
style 4
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
rect 8 18 40 0
|
||||
visible 1
|
||||
textstyle 3
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
text ""
|
||||
ownerdraw CG_CAPFRAGLIMIT
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name "r"
|
||||
rect 40 18 18 12
|
||||
textstyle 3
|
||||
text "1st:"
|
||||
visible 1
|
||||
decoration
|
||||
forecolor .25 .25 1 1
|
||||
textscale 0.25
|
||||
ownerdraw CG_1STPLACE
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "r"
|
||||
rect 105 18 18 12
|
||||
textstyle 3
|
||||
text "2nd:"
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.25
|
||||
ownerdraw CG_2NDPLACE
|
||||
}
|
||||
}
|
||||
|
||||
// PLAYERSCORE //
|
||||
|
||||
menuDef {
|
||||
name "playerScore"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 569 455 70 24
|
||||
|
||||
itemDef {
|
||||
name "playerScoreRect"
|
||||
visible 1
|
||||
rect 0 0 70 24
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
style 4
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "playerScore"
|
||||
rect 4 6 75 12
|
||||
textstyle 3
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
ownerdraw CG_PLAYER_SCORE
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
menuDef {
|
||||
name "voiceMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 5 100 100
|
||||
|
||||
|
||||
itemDef {
|
||||
name "voiceMenuRect"
|
||||
style 4
|
||||
rect 2 2 50 50
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 2 50 50
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_VOICE_HEAD
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 55 50 12
|
||||
visible 1
|
||||
decoration
|
||||
textscale .25
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 12
|
||||
ownerdraw CG_VOICE_NAME
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,303 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ MOD \\
|
||||
|
||||
menuDef {
|
||||
name "mod"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onEsc { close mod ; open main }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
fadeout fadebox ;
|
||||
uiScript loadMods ;
|
||||
hide lightning ;
|
||||
hide accept_alt ;
|
||||
show accept ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelbar
|
||||
text "TEAM ARENA MODS"
|
||||
textstyle 6
|
||||
style 2
|
||||
rect 0 16 640 40
|
||||
textscale 0.416
|
||||
textalign 1 // center
|
||||
textalignx 320 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 27
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarenaimage
|
||||
style 3
|
||||
background "ui/assets/teamarenaimage.tga"
|
||||
rect 0 80 220 115
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name mappreview
|
||||
style 5
|
||||
cinematic "mpintro.roq"
|
||||
rect 20 195 200 150
|
||||
backcolor 1 1 1 .25
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
/*
|
||||
|
||||
// DEMO ONLY //
|
||||
itemDef {
|
||||
name demo_only
|
||||
style 0
|
||||
rect 240 250 360 20
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 180
|
||||
textaligny 25
|
||||
textscale .333
|
||||
text "This Option is Not Available in Demo."
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name modlist
|
||||
rect 240 100 360 300
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_MODS
|
||||
textalign 3
|
||||
textaligny 14
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 1
|
||||
doubleClick { uiScript RunMod }
|
||||
mouseEnter { fadein message_mod ; setitemcolor modlist bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_mod ; setitemcolor modlist bordercolor .5 .5 .5 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close mod ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close mod ; open main }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
style 3
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseEnter { show lightning ; hide accept ; show accept_alt ; show message_accept ; playlooped "sound/misc/loop_electricity_05.wav" }
|
||||
action { close mod ; uiScript RunMod }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept_alt
|
||||
style 3
|
||||
rect 572 422 54 54
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
action { close mod ; uiScript RunMod }
|
||||
mouseExit { hide lightning ; hide accept_alt ; show accept ; hide message_accept ; playlooped "music/fla_mp03.wav" }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 46 385 250 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 341 385 250 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_accept
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Play Mod"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_mod
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Select Mod Name to Play"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
SCC = This is a Source Code Control file
|
||||
|
||||
[ui.dsp]
|
||||
SCC_Aux_Path = "\\Purgatory\Purgatory\idSourceControl"
|
||||
SCC_Project_Name = "$/MissionPack/code/ui", RLGAAAAA
|
|
@ -0,0 +1,67 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ NEW LEAGUE POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "newleague_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 190 200 255 75
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 255 75
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// ENTER NEW LEAGUE NAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name newleague
|
||||
group grpsettings
|
||||
text "Name:"
|
||||
style 0
|
||||
textscale .3
|
||||
ITEM_TYPE_EDITFIELD
|
||||
rect 20 20 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name type
|
||||
text "OK"
|
||||
textscale .25
|
||||
group grpsettings
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 50 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { close newLeague_popmenu ; close createserver ; open createserver }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,351 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "options_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox }
|
||||
onEsc { close options_menu ; close setup_menu ; open main }
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpControlbutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Simple Items:"
|
||||
cvar "cg_simpleItems"
|
||||
rect 99 15 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Marks On Walls:"
|
||||
cvar "cg_marks"
|
||||
rect 99 35 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Show Floating Scores:"
|
||||
cvar "cg_scorePlums"
|
||||
rect 99 55 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
text "Ejecting Brass:"
|
||||
type ITEM_TYPE_MULTI
|
||||
cvar "cg_brassTime"
|
||||
cvarFloatList { "High" 2500 "Med" 1250 "Off" 0 }
|
||||
rect 99 75 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Dynamic Lights:"
|
||||
cvar "r_dynamiclight"
|
||||
rect 99 95 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Identify Target:"
|
||||
cvar "cg_drawCrosshairNames"
|
||||
rect 99 115 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Draw Gun:"
|
||||
cvar "cg_drawGun"
|
||||
rect 99 135 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Low Quality Sky:"
|
||||
cvar "r_fastsky"
|
||||
rect 99 155 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Sync Every Frame:"
|
||||
cvar "weapon 5"
|
||||
rect 99 175 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Force Player Models:"
|
||||
cvar "cg_forceModel"
|
||||
rect 99 195 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Draw Team Overlay:"
|
||||
cvar "cg_drawTeamOverlay"
|
||||
rect 99 215 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Auto Download:"
|
||||
cvar "cl_allowDownload"
|
||||
rect 99 235 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Show Time:"
|
||||
cvar "cg_drawTimer"
|
||||
rect 99 255 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Voices Off:"
|
||||
cvar "cg_NoVoiceChats"
|
||||
rect 99 275 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Taunts Off:"
|
||||
cvar "cg_noTaunt"
|
||||
rect 99 295 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Voice Text Off:"
|
||||
cvar "cg_noVoiceText"
|
||||
rect 99 315 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Team Chats Only:"
|
||||
cvar "cg_teamChatsOnly"
|
||||
rect 99 335 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_YESNO
|
||||
text "In Game Video:"
|
||||
cvar "r_inGameVideo"
|
||||
rect 99 355 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Statusbar:"
|
||||
cvar "cg_hudfiles"
|
||||
cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
|
||||
rect 99 375 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
text "Crosshair:"
|
||||
rect 227 395 20 20
|
||||
ownerdraw UI_CROSSHAIR
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,147 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ PASSWORD POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "password_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 204 122 235 235
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC { close password_popmenu ; open joinserver }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 235 235
|
||||
style 3
|
||||
background "ui/assets/mainpop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 47 47 144 144
|
||||
style 3
|
||||
background "centerconsole2"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// PASSWORD //
|
||||
|
||||
itemDef {
|
||||
name password
|
||||
text "Password"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 1 87 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name password
|
||||
text "Password"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 0 86 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name passwordEntry
|
||||
style 1
|
||||
text ":"
|
||||
maxchars 15
|
||||
textscale .25
|
||||
TYPE 4
|
||||
cvar "password"
|
||||
rect 50 106 130 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
mouseenter { setitemcolor passwordEntry backcolor 0 0 0 .75 }
|
||||
mouseexit { setitemcolor passwordEntry backcolor 0 0 0 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "Ok"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 103 140 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close password_popmenu ; open joinserver }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 103 140 30 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 97 140 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 132 140 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,612 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ PLATER SELECTION MENU \\
|
||||
|
||||
menuDef {
|
||||
name "player_menu"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
style 1
|
||||
focusColor 1 .75 0 1
|
||||
|
||||
onOpen { play "sound/misc/kcswish.wav" ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
uiScript update "ui_GetName" ;
|
||||
transition menuback_g 0 0 640 480 195 120 255 202 20 10 ;
|
||||
transition clancinematic 107 82 426 316 238 153 170 133 20 10 ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
onClose { uiScript update "ui_SetName" }
|
||||
onEsc { close player_menu ; open main }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypebar
|
||||
style 2
|
||||
rect 0 5 640 40
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 .5
|
||||
visible 1
|
||||
decoration
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name arenatype
|
||||
type ITEM_TYPE_MULTI
|
||||
cvar "ui_q3model"
|
||||
cvarFloatList { "Team Arena" 0 "Quake III" 1 }
|
||||
text "Model Type:"
|
||||
textstyle 6
|
||||
rect 0 10 320 31
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 20
|
||||
textaligny 26
|
||||
textscale .35
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseEnter { show message_type }
|
||||
mouseExit { hide message_type }
|
||||
action { play "sound/misc/kcaction.wav" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name quakeimage
|
||||
style WINDOW_STYLE_SHADER
|
||||
group grpquaketype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "1" }
|
||||
background "ui/assets/playerpatriot.tga"
|
||||
rect 60 24 128 256
|
||||
forecolor .25 .25 .25 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name quakeimage
|
||||
group grpquaketype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "1" }
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/playerpi.tga"
|
||||
rect 100 24 128 256
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name quakeimage
|
||||
group grpquaketype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "1" }
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/playerklesk.tga"
|
||||
rect 440 24 128 256
|
||||
forecolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name quakeimage
|
||||
group grpquaketype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "1" }
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/playerbiker.tga"
|
||||
rect 384 24 128 256
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name clanlogo1
|
||||
style WINDOW_STYLE_SHADER
|
||||
group grparenatype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "0" }
|
||||
background "ui/assets/pagans.tga"
|
||||
rect 0 150 128 128
|
||||
forecolor .5 .5 .5 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name clanlogo1
|
||||
group grparenatype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "0" }
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/crusaders.tga"
|
||||
rect 128 150 128 128
|
||||
forecolor .5 .5 .5 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name clanlogo1
|
||||
group grparenatype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "0" }
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/stroggs.tga"
|
||||
rect 384 150 128 128
|
||||
forecolor .5 .5 .5 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name clanlogo1
|
||||
group grparenatype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "0" }
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/intruders.tga"
|
||||
rect 512 150 128 128
|
||||
forecolor .5 .5 .5 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 238 153 170 133
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name playerbar
|
||||
style 2
|
||||
rect 0 130 640 170
|
||||
backcolor 0 0 .75 0
|
||||
forecolor 1 1 1 1
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 .75
|
||||
bordersize 2
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 50 620 60
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 112 205 216
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 217 112 205 216
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 424 112 206 216
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name modelselection
|
||||
ownerdraw UI_PLAYERMODEL
|
||||
rect 424 80 260 260
|
||||
style 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name namefield
|
||||
group "playersettinggroup"
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 0
|
||||
text "Name:"
|
||||
cvar "ui_Name"
|
||||
textstyle 6
|
||||
maxChars 32
|
||||
rect 0 70 215 32
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 20
|
||||
textaligny 21
|
||||
textscale .333
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
mouseEnter { show message_name }
|
||||
mouseExit { hide message_name }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name handicapfield
|
||||
group "playersettinggroup"
|
||||
style 0
|
||||
text "Handicap:"
|
||||
ownerdraw UI_HANDICAP
|
||||
textstyle 6
|
||||
rect 0 175 215 32
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 20
|
||||
textaligny 21
|
||||
textscale .333
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
mouseEnter { show message_handicap }
|
||||
mouseExit { hide message_handicap }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name effectfield
|
||||
group "playersettinggroup"
|
||||
style 0
|
||||
text "Effect:"
|
||||
ownerdraw UI_EFFECTS
|
||||
rect 0 205 215 32
|
||||
textstyle 6
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 20
|
||||
textaligny 21
|
||||
textscale .333
|
||||
outlinecolor 1 .5 .5 .5
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 1
|
||||
mouseEnter { show message_effect }
|
||||
mouseExit { hide message_effect }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name clanfield
|
||||
group grparenatype
|
||||
ownerdraw UI_CLANNAME
|
||||
text "Clan:"
|
||||
textstyle 6
|
||||
rect 20 235 215 31
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 21
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "0" }
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" }
|
||||
mouseEnter { show message_clan }
|
||||
mouseExit { hide message_clan }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name headlist
|
||||
rect 10 330 620 80
|
||||
group grparenatype
|
||||
cvarTest "ui_q3model"
|
||||
hideCvar { "1" }
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 61.75
|
||||
elementheight 61.75
|
||||
elementtype LISTBOX_IMAGE
|
||||
feeder FEEDER_HEADS
|
||||
horizontalscroll
|
||||
border 1
|
||||
bordersize 1
|
||||
backcolor 0 0 0 .25
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setitemcolor headlist bordercolor .7 0 0 1 ; show message_model }
|
||||
mouseexit { setitemcolor headlist bordercolor .5 .5 .5 .5 ; hide message_model }
|
||||
}
|
||||
itemDef {
|
||||
name headlist
|
||||
rect 10 330 620 80
|
||||
group grpquaketype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "1" }
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 61.75
|
||||
elementheight 61.75
|
||||
elementtype LISTBOX_IMAGE
|
||||
feeder FEEDER_Q3HEADS
|
||||
horizontalscroll
|
||||
border 1
|
||||
bordersize 1
|
||||
backcolor 0 0 0 .25
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setitemcolor headlist bordercolor .7 0 0 1 ; show message_model }
|
||||
mouseexit { setitemcolor headlist bordercolor .5 .5 .5 .5 ; hide message_model}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close player_menu ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; show message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; hide message_back }
|
||||
action { close player_menu ; open main }
|
||||
}
|
||||
|
||||
// MESSAGES //
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Return to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_name
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Enter Player Name"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_handicap
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Click to Change Handicap"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_effect
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Select Bar to Change Effect Color"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_clan
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Click to Cycle Clan Selection"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_type
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Click to View Team Arena or Quake III Models"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_model
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Click to Change Player Model"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name clancinematic
|
||||
rect 238 157 170 133
|
||||
group grparenatype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "0" }
|
||||
ownerdraw UI_CLANCINEMATIC
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name clancinematic
|
||||
group grpquaketype
|
||||
cvarTest "ui_q3model"
|
||||
showCVar { "1" }
|
||||
style 3
|
||||
background "ui/assets/q3imagepage.tga"
|
||||
rect 238 157 170 133
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name clancinematic
|
||||
style 3
|
||||
background "menuscreen"
|
||||
rect 238 153 170 133
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name menuback_g
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 195 120 255 202
|
||||
background "menuback_g"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,768 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ powerup \\
|
||||
|
||||
menuDef {
|
||||
name "powerup_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 0 90 640 340
|
||||
focusColor 1 .67 0 1
|
||||
border 1
|
||||
style 1
|
||||
onEsc { close help_menu ; close powerup_menu ; close ordersHelp_menu ; open main }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
hide grphelptext ;
|
||||
show scouttext ;
|
||||
hide grpiconalt }
|
||||
|
||||
// SCOUT //
|
||||
|
||||
itemDef {
|
||||
name scoutIcon
|
||||
group grpScout
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 32 2 32 32
|
||||
visible 1
|
||||
type ITEM_TYPE_BUTTON
|
||||
background "icons/scout.tga"
|
||||
}
|
||||
itemDef {
|
||||
name scoutIconAlt
|
||||
group grpIconAlt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 30 0 34 34
|
||||
visible 1
|
||||
type ITEM_TYPE_BUTTON
|
||||
background "icons/scout.tga"
|
||||
}
|
||||
itemDef {
|
||||
name scout
|
||||
group grpScout
|
||||
rect 15 37 70 26
|
||||
text "Scout"
|
||||
type 1
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grphelptext ; show scouttext ; exec "play sound/items/cl_scout.wav" }
|
||||
mouseEnter { setitemcolor scout backcolor .1 .37 .1 1 ; hide scoutIcon ; show scoutIconAlt }
|
||||
mouseExit { setitemcolor scout backcolor .37 .1 .1 1 ; hide scoutIconAlt ; show scoutIcon }
|
||||
}
|
||||
itemDef {
|
||||
name scout
|
||||
group grpScout
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 15 37 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name scout
|
||||
group grpScout
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 8 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name scout
|
||||
group grpScout
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 84 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// GUARD //
|
||||
|
||||
itemDef {
|
||||
name guardIcon
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 128 2 32 32
|
||||
visible 1
|
||||
background "icons/guard.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name guardIconAlt
|
||||
group grpIconAlt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 126 0 34 34
|
||||
visible 1
|
||||
background "icons/guard.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name guard
|
||||
rect 111 37 70 26
|
||||
type 1
|
||||
text "Guard"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grphelptext ; show guardtext ; exec "play sound/items/cl_guard.wav" }
|
||||
mouseEnter { setitemcolor guard backcolor .1 .37 .1 1 ; hide guardIcon ; show guardIconAlt }
|
||||
mouseExit { setitemcolor guard backcolor .37 .1 .1 1 ; hide guardIconAlt ; show guardIcon }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name guard
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 111 37 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name guard
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 104 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name guard
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 180 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// DOUBLER //
|
||||
|
||||
itemDef {
|
||||
name doublerIcon
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 222 2 32 32
|
||||
visible 1
|
||||
background "icons/doubler.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name doublerIconAlt
|
||||
group grpIconAlt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 220 0 34 34
|
||||
visible 1
|
||||
background "icons/doubler.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name doubler
|
||||
rect 207 37 70 26
|
||||
type 1
|
||||
text "Doubler"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show doublertext ; exec "play sound/items/cl_doubler.wav" }
|
||||
mouseEnter { setitemcolor doubler backcolor .1 .37 .1 1 ; hide doublerIcon ; show doublerIconAlt }
|
||||
mouseExit { setitemcolor doubler backcolor .37 .1 .1 1 ; hide doublerIconAlt ; show doublerIcon }
|
||||
}
|
||||
itemDef {
|
||||
name doubler
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 207 37 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name doubler
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 200 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name doubler
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 276 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// AMMO_REGEN //
|
||||
|
||||
itemDef {
|
||||
name ammo_regenIcon
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 331 2 32 32
|
||||
visible 1
|
||||
background "icons/ammo_regen.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regenIconAlt
|
||||
group grpIconAlt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 329 0 34 34
|
||||
visible 1
|
||||
background "icons/ammo_regen.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
rect 302 37 87 26
|
||||
type 1
|
||||
text "Ammo-Regen"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 43
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show ammo_regentext ; exec "play sound/items/cl_ammoregen.wav" }
|
||||
mouseEnter { setitemcolor ammo_regen backcolor .1 .37 .1 1 ; hide ammo_regenIcon ; show ammo_regenIconAlt }
|
||||
mouseExit { setitemcolor ammo_regen backcolor .37 .1 .1 1 ; hide ammo_regenIconAlt ; show ammo_regenIcon }
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 302 37 87 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 295 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 388 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// KAMIKAZE //
|
||||
|
||||
itemDef {
|
||||
name kamikazeIcon
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 439 2 32 32
|
||||
visible 1
|
||||
background "icons/kamikaze.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name kamikazeIconAlt
|
||||
group grpIconAlt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 437 0 34 34
|
||||
visible 1
|
||||
background "icons/kamikaze.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name kamikaze
|
||||
rect 415 37 87 26
|
||||
type 1
|
||||
text "Kamikaze"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 43
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show kamikazetext ; exec "play sound/items/kamikaze_full.wav" }
|
||||
mouseEnter { setitemcolor kamikaze backcolor .1 .37 .1 1 ; hide kamikazeIcon ; show kamikazeIconAlt }
|
||||
mouseExit { setitemcolor kamikaze backcolor .37 .1 .1 1 ; hide kamikazeIconAlt ; show kamikazeIcon }
|
||||
}
|
||||
itemDef {
|
||||
name kamikaze
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 415 37 87 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name kamikaze
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 408 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name kamikaze
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 501 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// INVULNERABILITY //
|
||||
|
||||
itemDef {
|
||||
name invulnerabilityIcon
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 561 2 32 32
|
||||
visible 1
|
||||
background "icons/invulnerability.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name invulnerabilityIconAlt
|
||||
group grpIconAlt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 559 0 34 34
|
||||
visible 1
|
||||
background "icons/invulnerability.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name invulnerability
|
||||
rect 526 37 102 26
|
||||
type 1
|
||||
text "Invulnerability"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .29
|
||||
textalignx 49
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show invulnerabilitytext ; exec "play sound/items/invul_activate.wav" }
|
||||
mouseEnter { setitemcolor invulnerability backcolor .1 .37 .1 1 ; hide invulnerabilityIcon ; show invulnerabilityIconAlt }
|
||||
mouseExit { setitemcolor invulnerability backcolor .37 .1 .1 1 ; hide invulnerabilityIconAlt ; show invulnerabilityIcon }
|
||||
}
|
||||
itemDef {
|
||||
name invulnerability
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 526 37 102 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name invulnerability
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 519 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name invulnerability
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 626 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// SCOUT //
|
||||
itemDef {
|
||||
name scouttext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Scout : Team Power-Up"
|
||||
rect 280 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name scouttext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Scout power-up drastically increases the player's rate \r"
|
||||
"of movement and attack. It also prevents the player from \r"
|
||||
"wearing any armor and discards any armor points that the \r"
|
||||
"player may already have. As with the other persistent team \r"
|
||||
"power-ups, the player keeps the Scout until he or she \r"
|
||||
"is fragged. "
|
||||
rect 280 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name scouttext
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "scout.RoQ"
|
||||
rect 10 94 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// Guard //
|
||||
itemDef {
|
||||
name guardtext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Guard : Team Power-Up"
|
||||
rect 280 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name guardtext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Guard power-up gives the player an instant health \r"
|
||||
"and armor boost up to 200 points. The player's health \r"
|
||||
"points will regenerate to keep them at 200 points. The \r"
|
||||
"player may replenish lost armor points back up to 200 \r"
|
||||
"points. As with the other persistent team power-ups, \r"
|
||||
"the player keeps the Guard until he or she is fragged."
|
||||
rect 280 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name guardtext
|
||||
group grphelptext
|
||||
style WINDOW_STYLE_CINEMATIC
|
||||
cinematic "guard.RoQ"
|
||||
rect 10 94 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Doubler //
|
||||
itemDef {
|
||||
name doublertext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Doubler : Team Power-Up"
|
||||
rect 280 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name doublertext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Doubler power-up doubles the amount of damage done \r"
|
||||
"by each hit the player scores. The doubling effect is also \r"
|
||||
"modified further by the damage boosting effects of the Quad \r"
|
||||
"Damage. As with the other persistent team power-ups, the \r"
|
||||
"player keeps the Doubler until he or she is fragged."
|
||||
rect 280 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name doublertext
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "doubler.RoQ"
|
||||
rect 10 94 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// Ammo-Regen //
|
||||
itemDef {
|
||||
name ammo_regentext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Ammo-Regen : Team Power-Up"
|
||||
rect 280 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regentext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Ammo-Regen power-up slowly replenishes the \r"
|
||||
"ammunition used by each weapon in the player's \r"
|
||||
"possession up to a full basic load (the amount that \r"
|
||||
"comes with the weapon). The player can shoot faster \r"
|
||||
"than the ammo can regenerate. The Ammo-Regen also \r"
|
||||
"significantly increases the player's rate of fire for \r"
|
||||
"all attack types. As with the other persistent team \r"
|
||||
"power-ups, the player keeps the Ammo-Regen until he or \r"
|
||||
"she is fragged."
|
||||
rect 280 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regentext
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "ammo_regen.RoQ"
|
||||
rect 10 94 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// Kamikaze //
|
||||
itemDef {
|
||||
name kamikazetext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Kamikaze : Useable Item"
|
||||
rect 280 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name kamikazetext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "When carried by a player, the Kamikaze appears as \r"
|
||||
"skulls swirling about the body. Pressing the Use Item \r"
|
||||
"key activates the bomb, fragging the player and severely \r"
|
||||
"punishing all others within the range of the explosion. \r"
|
||||
"The blast's powerful shockwave shakes the entire arena."
|
||||
rect 280 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name kamikazetext
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "kamikaze.RoQ"
|
||||
rect 10 94 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// Invulnerability //
|
||||
itemDef {
|
||||
name invulnerabilitytext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Invulnerability : Useable Item"
|
||||
rect 280 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name invulnerabilitytext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "When activated, the Invulnerability power-up freezes the \r"
|
||||
"player in place and surrounds him or her with a mostly \r"
|
||||
"impenetrable, crackling shield of magenta energy. Mostly \r"
|
||||
"impenetrable, because the player can fire out and prox \r"
|
||||
"mines can be lobbed in."
|
||||
rect 280 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name invulnerabilitytext
|
||||
group grphelptext
|
||||
style 5
|
||||
cinematic "invulnerability.RoQ"
|
||||
rect 10 94 256 192
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,694 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ powerup \\
|
||||
|
||||
menuDef {
|
||||
name "powerup_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 0 90 640 340
|
||||
focusColor 1 .67 0 1
|
||||
border 1
|
||||
outOfBoundsClick
|
||||
style 1
|
||||
onopen { hide grphelptext ; show scouttext }
|
||||
|
||||
// SCOUT //
|
||||
|
||||
itemDef {
|
||||
name scout
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 32 0 32 32
|
||||
visible 1
|
||||
type ITEM_TYPE_BUTTON
|
||||
background "icons/scout.tga"
|
||||
}
|
||||
itemDef {
|
||||
name scout
|
||||
rect 15 37 70 26
|
||||
text "Scout"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grphelptext ; show scouttext }
|
||||
mouseEnter { setitemcolor scout backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor scout backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name scout
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 15 37 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name scout
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 8 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name scout
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 84 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// GUARD //
|
||||
|
||||
itemDef {
|
||||
name guard
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 128 0 32 32
|
||||
visible 1
|
||||
background "icons/guard.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name guard
|
||||
style 0
|
||||
rect 111 37 70 26
|
||||
text "Guard"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grphelptext ; show guardtext }
|
||||
mouseEnter { setitemcolor guard backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor guard backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name guard
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 111 37 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name guard
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 104 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name guard
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 180 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// DOUBLER //
|
||||
|
||||
itemDef {
|
||||
name doubler
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 222 0 32 32
|
||||
visible 1
|
||||
background "icons/doubler.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name doubler
|
||||
style 0
|
||||
rect 207 37 70 26
|
||||
text "Doubler"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show doublertext }
|
||||
mouseEnter { setitemcolor doubler backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor doubler backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name doubler
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 207 37 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name doubler
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 200 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name doubler
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 276 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// AMMO_REGEN //
|
||||
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 331 0 32 32
|
||||
visible 1
|
||||
background "icons/ammo_regen.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
style 0
|
||||
rect 302 37 87 26
|
||||
text "Ammo-Regen"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 43
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show ammo_regentext }
|
||||
mouseEnter { setitemcolor ammo_regen backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor ammo_regen backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 302 37 87 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 295 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ammo_regen
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 388 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// KAMIKAZE //
|
||||
|
||||
itemDef {
|
||||
name kamikaze
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 439 0 32 32
|
||||
visible 1
|
||||
background "icons/kamikaze.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name kamikaze
|
||||
style 0
|
||||
rect 415 37 87 26
|
||||
text "Kamikaze"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 43
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show kamikazetext }
|
||||
mouseEnter { setitemcolor kamikaze backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor kamikaze backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name kamikaze
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 415 37 87 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name kamikaze
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 408 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name kamikaze
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 501 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// INVULNERABILITY //
|
||||
|
||||
itemDef {
|
||||
name invulnerability
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 561 0 32 32
|
||||
visible 1
|
||||
background "icons/invulnerability.tga"
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name invulnerability
|
||||
style 0
|
||||
rect 526 37 102 26
|
||||
text "Invulnerability"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .3
|
||||
textalignx 47
|
||||
textaligny 20
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
action { hide grphelptext ; show invulnerabilitytext }
|
||||
mouseEnter { setitemcolor invulnerability backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor invulnerability backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name invulnerability
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 526 37 102 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name invulnerability
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 519 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name invulnerability
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 626 37 8 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// SCOUT //
|
||||
itemDef {
|
||||
name scouttext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Scout : Team Power-Up"
|
||||
rect 180 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name scouttext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Scout power-up drastically increases the player's rate \r"
|
||||
"of movement and attack. It also prevents the player from \r"
|
||||
"wearing any armor and discards any armor points that the \r"
|
||||
"player may already have. As with the other persistent team \r"
|
||||
"power-ups, the player keeps the Scout until he or she \r"
|
||||
"is fragged. "
|
||||
rect 180 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name scouttext
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/powerups/scout.tga"
|
||||
rect 30 94 128 96
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// Guard //
|
||||
itemDef {
|
||||
name guardtext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Guard : Team Power-Up"
|
||||
rect 180 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name guardtext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Guard power-up gives the player an instant health \r"
|
||||
"and armor boost up to 200 points. The player's health \r"
|
||||
"points will regenerate to keep them at 200 points. The \r"
|
||||
"player may replenish lost armor points back up to 200 \r"
|
||||
"points. As with the other persistent team power-ups, \r"
|
||||
"the player keeps the Guard until he or she is fragged."
|
||||
rect 180 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name guardtext
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/powerups/guard.tga"
|
||||
rect 30 94 128 96
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Doubler //
|
||||
itemDef {
|
||||
name doublertext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Doubler : Team Power-Up"
|
||||
rect 180 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name doublertext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Doubler power-up doubles the amount of damage done \r"
|
||||
"by each hit the player scores. The doubling effect is also \r"
|
||||
"modified further by the damage boosting effects of the Quad \r"
|
||||
"Damage. As with the other persistent team power-ups, the \r"
|
||||
"player keeps the Doubler until he or she is fragged."
|
||||
rect 180 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name doublertext
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/powerups/doubler.tga"
|
||||
rect 30 94 128 96
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// Ammo-Regen //
|
||||
itemDef {
|
||||
name ammo_regentext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Ammo-Regen : Team Power-Up"
|
||||
rect 180 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regentext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "The Ammo-Regen power-up slowly replenishes the ammunition \r"
|
||||
"used by each weapon in the player's possession up to a full \r"
|
||||
"basic load (the amount that comes with the weapon). The player \r"
|
||||
"can shoot faster than the ammo can regenerate. The Ammo-Regen \r"
|
||||
"also significantly increases the player's rate of fire for all \r"
|
||||
"attack types. As with the other persistent team power-ups, the\r"
|
||||
" playerkeeps the Ammo-Regen until he or she is fragged."
|
||||
rect 180 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name ammo_regentext
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/powerups/ammo.tga"
|
||||
rect 30 94 128 96
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// Kamikaze //
|
||||
itemDef {
|
||||
name kamikazetext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Kamikaze : Useable Item"
|
||||
rect 180 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name kamikazetext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "When carried by a player, the Kamikaze appears as \r"
|
||||
"skulls swirling about the body. Pressing the Use Item \r"
|
||||
"key activates the bomb, fragging the player and severely \r"
|
||||
"punishing all others within the range of the explosion. \r"
|
||||
"The blast's powerful shockwave shakes the entire arena."
|
||||
rect 180 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name kamikazetext
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/powerups/kamikaze.tga"
|
||||
rect 30 94 128 96
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// Invulnerability //
|
||||
itemDef {
|
||||
name invulnerabilitytext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "Invulnerability : Useable Item"
|
||||
rect 180 94 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name invulnerabilitytext
|
||||
group grphelptext
|
||||
style 0
|
||||
wrapped
|
||||
text "When activated, the Invulnerability power-up freezes the \r"
|
||||
"player in place and surrounds him or her with a mostly \r"
|
||||
"impenetrable, crackling shield of magenta energy. Mostly \r"
|
||||
"impenetrable, because the player can fire out and prox \r"
|
||||
"mines can be lobbed in."
|
||||
rect 180 124 500 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
border 0
|
||||
bordercolor 0 0 0 0
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name invulnerabilitytext
|
||||
group grphelptext
|
||||
style 3
|
||||
background "ui/assets/helpscreens/powerups/invulnerable.tga"
|
||||
rect 30 94 128 96
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,222 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ QUAKE3 POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "quake3_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 204 122 235 235
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC { close quake3_popmenu ; open main }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 235 235
|
||||
style 3
|
||||
background "ui/assets/mainpop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 47 47 144 144
|
||||
style 3
|
||||
background "centerconsole2"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
/*
|
||||
// DEMO ONLY OPTION //
|
||||
|
||||
itemDef {
|
||||
name demo_only
|
||||
text "Not Available."
|
||||
style 0
|
||||
textscale .3
|
||||
textstyle 3
|
||||
rect 1 90 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name demo_only
|
||||
text "in DEMO."
|
||||
style 0
|
||||
textscale .3
|
||||
textstyle 3
|
||||
rect 1 110 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name demo_only
|
||||
text "Press ESC key."
|
||||
style 0
|
||||
textscale .3
|
||||
textstyle 3
|
||||
rect 0 135 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
// Quake 3 //
|
||||
|
||||
itemDef {
|
||||
name confirm
|
||||
text "Launch Quake3?"
|
||||
style 0
|
||||
textscale .3
|
||||
rect 1 91 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
decoration
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name confirm
|
||||
text "Launch Quake3?"
|
||||
style 0
|
||||
textscale .3
|
||||
rect 0 90 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "YES"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 75 120 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
uiScript "Quake3" }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 75 120 30 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 69 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 104 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "NO"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 128 120 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close quake3_popmenu ; open main }
|
||||
mouseEnter { setitemcolor no backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor no backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name no
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 128 120 30 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 122 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 157 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ QUIT POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "quit_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
//rect 217 200 210 85
|
||||
rect 204 122 235 235
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC { close quit_popmenu ; open main }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 235 235
|
||||
style 3
|
||||
background "ui/assets/mainpop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 47 47 144 144
|
||||
style 3
|
||||
background "centerconsole2"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// QUIT //
|
||||
|
||||
itemDef {
|
||||
name confirm
|
||||
text "Quit Team Arena?"
|
||||
style 0
|
||||
textscale .3
|
||||
textstyle 3
|
||||
rect 0 90 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "YES"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 75 120 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav";
|
||||
close main ;
|
||||
close quit_popmenu ;
|
||||
open quitCredit }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 75 120 30 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 69 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 104 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "NO"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 128 120 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close quit_popmenu ; open main }
|
||||
mouseEnter { setitemcolor no backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor no backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name no
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 128 120 30 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 122 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 157 120 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,258 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ QUIT CREDIT \\
|
||||
|
||||
menuDef {
|
||||
name "quitCredit"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onEsc { uiScript "quit" }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
show grpidcredit }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name demo_only
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 0 0 640 480
|
||||
type 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close quitCredit ;
|
||||
uiScript "quit" }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
itemDef {
|
||||
name teamarenaart
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/teamarenaimage2.tga"
|
||||
rect 64 0 512 150
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name programming
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 160 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "PROGRAMMING: John Carmack, Robert Duffy, Jim Dose'"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name artist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 190 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "ART: Adrian Carmack, Kevin Cloud, Kenneth Scott, Seneca Menard, Fred Nilsson "
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 220 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "LEVEL DESIGN: Tim Willits, Christian Antkow, Paul Jaquays"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gameDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 250 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "GAME DESIGN: Graeme Devine"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ceo
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 280 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "CEO: Todd Hollenshead"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name bizDev
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 310 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "BUSINESS DEVELOPMENT: Marty Stratton"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idMom
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 340 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "OFFICE MANAGER AND ID MOM: Donna Jackson"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name devAssist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 370 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .35
|
||||
text "DEVELOPMENT ASSISTANCE: Eric Webb"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
rect 255 420 130 26
|
||||
type 1
|
||||
text "Click to Exit"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .25
|
||||
textalignx 65
|
||||
textaligny 20
|
||||
visible 0
|
||||
decoration
|
||||
backcolor .37 .1 .1 1
|
||||
forecolor 1 1 1 1
|
||||
action { play "sound/misc/nomenu.wav" }
|
||||
mouseEnter { setitemcolor exitbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor exitbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 255 420 130 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 243 420 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exitbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 384 420 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name copyright
|
||||
text "Quake III: Team Arena Copyright 2000 Id Software, Inc. All rights reserved"
|
||||
style 0
|
||||
textscale .25
|
||||
rect 0 440 640 40
|
||||
textalign 1
|
||||
textaligny 32
|
||||
textalignx 320
|
||||
forecolor .75 0 0 .75
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,93 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ RANKINGS MENU \\
|
||||
|
||||
menuDef {
|
||||
name "rankings_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpControlbutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name rankings
|
||||
group grprankings
|
||||
type 4
|
||||
text "Name:"
|
||||
rect 99 80 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rankings
|
||||
group rankings
|
||||
type 4
|
||||
text "Password:"
|
||||
rect 99 110 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type 4
|
||||
text "Verify Password:"
|
||||
rect 99 140 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name options
|
||||
group grpOptions
|
||||
type 4
|
||||
text "Email (Optional):"
|
||||
rect 99 170 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,223 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ RESET SCORE MENU \\
|
||||
|
||||
menuDef {
|
||||
name "resetscore_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
show grpdefault ;
|
||||
hide grpfinish }
|
||||
onEsc { close resetscore_menu ; close setup_menu ; open main }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpControlbutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "This will set all of your map scores"
|
||||
rect 0 140 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "and completion times to zero."
|
||||
rect 0 160 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "Are you sure?"
|
||||
rect 0 220 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "YES"
|
||||
group grpdefault
|
||||
type 1
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 135 250 70 26
|
||||
textalign 1
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
uiScript resetScores ;
|
||||
show grpfinish ;
|
||||
hide grpdefault }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 135 250 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 123 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 204 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "No"
|
||||
group grpdefault
|
||||
type 1
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 235 250 70 26
|
||||
textalign 1
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close resetscore_menu ; open control_menu }
|
||||
mouseEnter { setitemcolor no backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor no backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 235 250 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 223 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 304 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name finish_message
|
||||
group grpfinish
|
||||
style 0
|
||||
text "Your values are now set to zero."
|
||||
rect 0 160 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,452 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ score_menu \\
|
||||
|
||||
menuDef {
|
||||
name "score_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .75 0 1
|
||||
style 0
|
||||
border 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name scorebar
|
||||
rect 14 28 610 35
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
text " "
|
||||
ownerdraw CG_GAME_STATUS
|
||||
textscale .4
|
||||
style 0
|
||||
rect 0 20 640 35
|
||||
textalignx 320
|
||||
textaligny 0
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
ownerdraw CG_KILLER
|
||||
textscale .4
|
||||
style 0
|
||||
rect 0 2 640 25
|
||||
textalignx 320
|
||||
textaligny 0
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// TEAM BARS //
|
||||
|
||||
itemDef {
|
||||
name teambar
|
||||
rect 14 65 610 25
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// PLAYER LIST BORDER //
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 89 610 291
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 605 90 1 290
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TEAM HEADINGS //
|
||||
|
||||
itemDef {
|
||||
name teamheadings
|
||||
text "Skill"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 25 65 30 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name columnWindow
|
||||
rect 14 65 61 315
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamheadings
|
||||
text "Status"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 85 65 64 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name columnWindow
|
||||
rect 75 65 89 315
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamheadings
|
||||
text "Name"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 170 65 64 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name columnWindow
|
||||
rect 164 65 216 315
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamheadings
|
||||
text "Score"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 385 65 64 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name columnWindow
|
||||
rect 380 65 105 315
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamheadings
|
||||
text "Time"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 490 65 64 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name columnWindow
|
||||
rect 485 65 70 315
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamheadings
|
||||
text "Ping"
|
||||
textscale .35
|
||||
style 0
|
||||
rect 560 65 64 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 22
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name columnWindow
|
||||
rect 555 65 70 315
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// LIST //
|
||||
|
||||
itemDef {
|
||||
name playerlist
|
||||
rect 14 90 610 290
|
||||
forecolor .75 .75 .75 1
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 592
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_SCOREBOARD
|
||||
notselectable
|
||||
columns 7 5 20 20 5 20 20 65 50 50 150 100 40 365 20 20 463 20 20 532 20 20
|
||||
}
|
||||
|
||||
|
||||
|
||||
// PLAYER INFO //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 384 612 65
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 250 384 1 65
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gametype
|
||||
ownerdraw CG_GAME_TYPE
|
||||
text ""
|
||||
textalign 0
|
||||
textscale .25
|
||||
rect 30 382 50 17
|
||||
forecolor 1 1 1 1
|
||||
textaligny 10
|
||||
textalignx 0
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemdef {
|
||||
name playerscore
|
||||
type 4
|
||||
text "Fraglimit:"
|
||||
rect 30 405 40 10
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
visible 1
|
||||
textalign 0
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
cvar "fraglimit"
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemdef {
|
||||
name playerscore
|
||||
text "Score:"
|
||||
rect 30 420 40 10
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
visible 1
|
||||
textalign 0
|
||||
forecolor 1 1 1 1
|
||||
textscale .25
|
||||
ownerdraw CG_PLAYER_SCORE
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemdef {
|
||||
name playername
|
||||
text "Use Score Scroll Keys"
|
||||
rect 30 435 256 20
|
||||
forecolor 1 .75 0 1
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
visible 1
|
||||
textalign 0
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
|
||||
// AWARDS //
|
||||
|
||||
|
||||
itemdef {
|
||||
name medal_accuracy
|
||||
ownerdraw CG_ACCURACY
|
||||
rect 276 388 32 32
|
||||
background "ui/assets/medal_accuracy.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
|
||||
itemdef {
|
||||
name medal_excellent
|
||||
ownerdraw CG_EXCELLENT
|
||||
rect 376 388 32 32
|
||||
background "ui/assets/medal_excellent.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_gauntlet
|
||||
ownerdraw CG_GAUNTLET
|
||||
rect 476 388 32 32
|
||||
background "ui/assets/medal_gauntlet.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_impressive
|
||||
ownerdraw CG_IMPRESSIVE
|
||||
rect 576 388 32 32
|
||||
background "ui/assets/medal_impressive.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,417 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ score_menu \\
|
||||
|
||||
menuDef {
|
||||
name "score_results"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .75 0 1
|
||||
style 0
|
||||
border 1
|
||||
|
||||
|
||||
// TEAM BARS //
|
||||
|
||||
itemDef {
|
||||
name leftteambar
|
||||
rect 14 112 307 25
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor 1 1 1 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rightteambar
|
||||
rect 320 112 306 25
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor 1 1 1 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// TEAM HEADINGS //
|
||||
|
||||
itemDef {
|
||||
name leftteamheadings
|
||||
text "Status Name Score Time Ping"
|
||||
textscale .25
|
||||
style 0
|
||||
rect 25 112 128 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 18
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name rightteamheadings
|
||||
text "Status Name Score Time Ping"
|
||||
textscale .25
|
||||
style 0
|
||||
rect 336 112 128 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 18
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// GRADIENT BACKGROUNDS //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 320 142 1 220
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 300 142 1 220
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 606 142 1 220
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name leftgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradleft.tga"
|
||||
rect 14 142 306 222
|
||||
forecolor .75 0 0 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name rightgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradleft.tga"
|
||||
rect 320 142 306 222
|
||||
forecolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name playerlogo
|
||||
style 3
|
||||
background "ui/assets/stroggs.tga"
|
||||
rect 71 157 180 180
|
||||
visible 1
|
||||
forecolor .5 0 0 .5
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name opponentlogo
|
||||
style 3
|
||||
background "ui/assets/pagans.tga"
|
||||
rect 397 157 180 180
|
||||
visible 1
|
||||
forecolor 0 0 .5 .5
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// LIST //
|
||||
|
||||
itemDef {
|
||||
name leftlist
|
||||
rect 14 142 306 222
|
||||
forecolor .75 .75 .75 1
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_REDTEAM_LIST
|
||||
columns 6 2 12 18 20 78 75 183 20 221 20 251 20
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name rightlist
|
||||
rect 320 142 306 222
|
||||
forecolor .75 .75 .75 1
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_BLUETEAM_LIST
|
||||
columns 6 2 12 18 20 78 75 183 20 221 20 251 20
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// PLAYER LIST BORDER //
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 141 612 221
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// GAMETYPE BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gametypebar
|
||||
style 2
|
||||
rect 0 50 640 35
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 1 1 1 1
|
||||
bordersize 1
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
text " "
|
||||
ownerdraw CG_GAME_STATUS
|
||||
textscale .4
|
||||
style 0
|
||||
rect 0 42 640 35
|
||||
textalignx 320
|
||||
textaligny 0
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
ownerdraw CG_KILLER
|
||||
textscale .4
|
||||
style 0
|
||||
rect 0 10 640 35
|
||||
textalignx 320
|
||||
textaligny 0
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// spectators //
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
text "Spectating:"
|
||||
textaligny 20
|
||||
rect 14 414 82 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 0
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 .7
|
||||
backcolor .30 .30 .30 .25
|
||||
textscale .33
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 96 414 530 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 0
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 .7
|
||||
backcolor .30 .30 .30 .25
|
||||
textscale .33
|
||||
visible 1
|
||||
ownerdraw CG_SPECTATORS
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// AWARDS //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 364 612 48
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor .30 .30 .30 .15
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_accuracy
|
||||
ownerdraw CG_ACCURACY
|
||||
rect 56 368 32 32
|
||||
background "ui/assets/medal_accuracy.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_assist
|
||||
ownerdraw CG_ASSISTS
|
||||
rect 156 368 32 32
|
||||
background "ui/assets/medal_assist.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_defend
|
||||
ownerdraw CG_DEFEND
|
||||
rect 256 368 32 32
|
||||
background "ui/assets/medal_defend.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_excellent
|
||||
ownerdraw CG_EXCELLENT
|
||||
rect 356 368 32 32
|
||||
background "ui/assets/medal_excellent.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_gauntlet
|
||||
ownerdraw CG_GAUNTLET
|
||||
rect 456 368 32 32
|
||||
background "ui/assets/medal_gauntlet.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_impressive
|
||||
ownerdraw CG_IMPRESSIVE
|
||||
rect 556 368 32 32
|
||||
background "ui/assets/medal_impressive.tga"
|
||||
forecolor 1 1 1 .25
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// TEAM NAME //
|
||||
|
||||
itemDef {
|
||||
name redteamname
|
||||
ownerdraw CG_RED_NAME
|
||||
textalign 1
|
||||
textscale .4
|
||||
rect 14 84 306 25
|
||||
forecolor 1 0 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name blueteamname
|
||||
ownerdraw CG_BLUE_NAME
|
||||
textalign 1
|
||||
textscale .4
|
||||
rect 320 84 306 25
|
||||
forecolor 0 0 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,396 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Server Information Popup Menu \\
|
||||
|
||||
menuDef {
|
||||
name "serverinfo_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 158 80 320 340
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onClose { }
|
||||
onOpen { uiScript ServerStatus }
|
||||
onESC { close serverinfo_popmenu ; open joinserver }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 310 330
|
||||
style 1
|
||||
backcolor 0 0 0 .5
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 320 340
|
||||
style 1
|
||||
backcolor 0 0 0 .25
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 320
|
||||
style 1
|
||||
backcolor .1 .1 .37 1
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 10
|
||||
style 1
|
||||
backcolor 0 0 0 .25
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name serverinfo
|
||||
rect 0 20 320 20
|
||||
text "Server Information"
|
||||
textstyle 3
|
||||
textalign 1
|
||||
textscale .333
|
||||
textalignx 160
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 184 10 96 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 330 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 172 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name serverinfo
|
||||
rect 20 55 280 230
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 16
|
||||
textscale .225
|
||||
backcolor 0 0 0 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_SERVERSTATUS
|
||||
notselectable
|
||||
visible 1
|
||||
columns 4 2 40 20
|
||||
40 40 10
|
||||
90 40 10
|
||||
135 40 20
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 20 55 264 230
|
||||
style 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 0 0 0 0
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BUTTON //
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
text "Exit"
|
||||
type 1
|
||||
textscale .23
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 95 295 45 26
|
||||
textalign 1
|
||||
textalignx 23
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close serverinfo_popmenu ;
|
||||
open joinserver }
|
||||
mouseEnter { setitemcolor exit backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor exit backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 95 295 45 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 83 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 139 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name refresh
|
||||
text "Refresh"
|
||||
type 1
|
||||
textscale .23
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 180 295 45 26
|
||||
textalign 1
|
||||
textalignx 23
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { uiScript ServerStatus }
|
||||
mouseEnter { setitemcolor refresh backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor refresh backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name refresh
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 180 295 45 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name refresh
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 168 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name refresh
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 224 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,340 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Server Information Popup Menu \\
|
||||
|
||||
menuDef {
|
||||
name "serverinfo_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 158 80 320 340
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onClose { }
|
||||
onOpen { uiScript ServerStatus }
|
||||
onESC { close serverinfo_popmenu ; open joinserver }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 310 330
|
||||
style 1
|
||||
backcolor 0 0 0 .5
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 320 340
|
||||
style 1
|
||||
backcolor 0 0 0 .25
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 320
|
||||
style 1
|
||||
backcolor .1 .1 .37 1
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 10 15 300 10
|
||||
style 1
|
||||
backcolor 0 0 0 .25
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name serverinfo
|
||||
rect 0 20 320 20
|
||||
text "Server Information"
|
||||
textstyle 3
|
||||
textalign 1
|
||||
textscale .333
|
||||
textalignx 160
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// FRAME //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 184 10 96 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 10 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcorner.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 10 64 8
|
||||
style 3
|
||||
background "ui/assets/ingametop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingameleftcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 256 274 64 64
|
||||
style 3
|
||||
background "ui/assets/ingamerightcornerb.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameleft.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 64 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 128 16 64
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 304 192 16 96
|
||||
style 3
|
||||
background "ui/assets/ingameright.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 64 330 64 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 128 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 172 330 98 8
|
||||
style 3
|
||||
background "ui/assets/ingamebottom.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name serverinfo
|
||||
rect 20 55 280 230
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 16
|
||||
textscale .225
|
||||
backcolor 0 0 0 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_SERVERSTATUS
|
||||
notselectable
|
||||
visible 1
|
||||
columns 4 2 40 20
|
||||
40 40 10
|
||||
90 40 10
|
||||
135 40 20
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 20 55 264 230
|
||||
style 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 0 0 0 0
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BUTTON //
|
||||
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
text "Exit"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 138 295 45 26
|
||||
textalign 1
|
||||
textalignx 23
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close serverinfo_popmenu ;
|
||||
open joinserver }
|
||||
mouseEnter { setitemcolor exit backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor exit backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 138 295 45 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 126 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name exit
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 182 295 13 26
|
||||
visible 1
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,513 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "setup_menu"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 186 0 454 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
fadeout fadebox ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
onEsc { close setup_menu ; open main }
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name solid_box
|
||||
style 1
|
||||
rect 4 2 178 426
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
backcolor 0 0 .75 .25
|
||||
visible 1
|
||||
decoration
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .25 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Control //
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name controls
|
||||
text "Controls"
|
||||
textscale .5
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
rect 0 75 200 40
|
||||
textalign 3
|
||||
textalignx 20
|
||||
textaligny 32
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close control_menu ;
|
||||
close system_menu ;
|
||||
close options_menu ;
|
||||
close cdkey_menu ;
|
||||
close default_menu ;
|
||||
close resetscore_menu ;
|
||||
open control_menu }
|
||||
mouseenter { show message_controls }
|
||||
mouseexit { hide message_controls }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// System //
|
||||
|
||||
itemDef {
|
||||
name system
|
||||
text "System"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
textscale .5
|
||||
rect 0 125 200 40
|
||||
textalign 3 // center
|
||||
textalignx 20 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 32
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close control_menu ;
|
||||
close system_menu ;
|
||||
close options_menu ;
|
||||
close cdkey_menu ;
|
||||
close default_menu ;
|
||||
close resetscore_menu ;
|
||||
open system_menu }
|
||||
mouseenter { show message_system }
|
||||
mouseexit { hide message_system }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Game Options //
|
||||
|
||||
itemDef {
|
||||
name gameoptions
|
||||
text "Game Options"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
textscale .5
|
||||
rect 0 175 200 40
|
||||
textalign 3 // center
|
||||
textalignx 20 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 32
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close control_menu ;
|
||||
close system_menu ;
|
||||
close options_menu ;
|
||||
close cdkey_menu ;
|
||||
close default_menu ;
|
||||
close resetscore_menu ;
|
||||
open options_menu }
|
||||
mouseenter { show message_gameoptions }
|
||||
mouseexit { hide message_gameoptions }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// CD Key //
|
||||
|
||||
itemDef {
|
||||
name cdkey
|
||||
text "Enter CD Key"
|
||||
style 0
|
||||
type 1
|
||||
textscale .5
|
||||
textstyle 6
|
||||
rect 0 225 200 40
|
||||
textalign 3 // center
|
||||
textalignx 20 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 32
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { show message_cdkey }
|
||||
mouseexit { hide message_cdkey }
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close control_menu ;
|
||||
close system_menu ;
|
||||
close options_menu ;
|
||||
close cdkey_menu ;
|
||||
close default_menu ;
|
||||
close resetscore_menu ;
|
||||
open cdkey_menu }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Reset Defaults //
|
||||
|
||||
itemDef {
|
||||
name defaults
|
||||
text "Defaults"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
textscale .5
|
||||
rect 0 275 200 40
|
||||
textalign 3 // center
|
||||
textalignx 20 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 32
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { show message_default }
|
||||
mouseexit { hide message_default }
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close control_menu ;
|
||||
close system_menu ;
|
||||
close options_menu ;
|
||||
close cdkey_menu ;
|
||||
close default_menu ;
|
||||
close resetscore_menu ;
|
||||
open default_menu }
|
||||
}
|
||||
|
||||
// Reset Score //
|
||||
|
||||
|
||||
itemDef {
|
||||
name scores
|
||||
text "Clear Scores"
|
||||
style 0
|
||||
type 1
|
||||
textstyle 6
|
||||
textscale .5
|
||||
rect 0 325 200 40
|
||||
textalign 3 // center
|
||||
textalignx 20 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 32
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { show message_scores }
|
||||
mouseexit { hide message_scores }
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
close control_menu ;
|
||||
close system_menu ;
|
||||
close options_menu ;
|
||||
close cdkey_menu ;
|
||||
close default_menu ;
|
||||
close resetscore_menu ;
|
||||
open resetscore_menu }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close setup_menu ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; show message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
action { hide grpControls ;
|
||||
close control_menu ;
|
||||
close setup_menu ;
|
||||
close system_menu ;
|
||||
close options_menu ;
|
||||
close cdkey_menu ;
|
||||
close default_menu ;
|
||||
close resetscore_menu ;
|
||||
open main }
|
||||
mouseExit { hide back_alt ; show back ; hide message_back }
|
||||
}
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_accept
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Refresh Video"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_controls
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select to Edit Game Controls"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_nowork
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Selection Isn't Implemented"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_look
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select to Edit View Controls"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_move
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select to Edit Movement Controls"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_shoot
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select to Edit Firing and Weapon Selection"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_misc
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select to Edit Chat and Mouse Functions"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_system
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Edit System Settings"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_gameoptions
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Edit Game Options"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_cdkey
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Enter Encryption Key"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_default
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Reset to Default Settings"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_scores
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Clear High Scores to Zero"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,796 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
// team menu
|
||||
//
|
||||
// defines from ui_shared.h
|
||||
/*
|
||||
#define ITEM_TYPE_TEXT 0 // simple text
|
||||
#define ITEM_TYPE_BUTTON 1 // button, basically text with a border
|
||||
#define ITEM_TYPE_RADIOBUTTON 2 // toggle button, may be grouped
|
||||
#define ITEM_TYPE_CHECKBOX 3 // check box
|
||||
#define ITEM_TYPE_TEXTFIELD 4 // editable text, associated with a cvar
|
||||
#define ITEM_TYPE_COMBO 5 // drop down list
|
||||
#define ITEM_TYPE_LISTBOX 6 // scrollable list
|
||||
#define ITEM_TYPE_MODEL 7 // model
|
||||
#define ITEM_TYPE_OWNERDRAW 8 // owner draw, name specs what it is
|
||||
|
||||
#define ITEM_ALIGN_LEFT 0 // left alignment
|
||||
#define ITEM_ALIGN_CENTER 1 // center alignment
|
||||
#define ITEM_ALIGN_RIGHT 2 // right alignment
|
||||
|
||||
#define ITEM_TEXTSTYLE_NORMAL 0 // normal text
|
||||
#define ITEM_TEXTSTYLE_BLINK 1 // fast blinking
|
||||
#define ITEM_TEXTSTYLE_PULSE 2 // slow pulsing
|
||||
#define ITEM_TEXTSTYLE_SHADOWED 3 // drop shadow ( need a color for this )
|
||||
#define ITEM_TEXTSTYLE_OUTLINED 4 // drop shadow ( need a color for this )
|
||||
#define ITEM_TEXTSTYLE_OUTLINEDSHADOWED 5 // drop shadow ( need a color for this )
|
||||
|
||||
#define WINDOW_BORDER_NONE 0 // no border
|
||||
#define WINDOW_BORDER_FULL 1 // full border based on border color ( single pixel )
|
||||
#define WINDOW_BORDER_HORZ 2 // horizontal borders only
|
||||
#define WINDOW_BORDER_VERT 3 // vertical borders only
|
||||
#define WINDOW_BORDER_KCGRADIENT 4 // horizontal border using the gradient bars
|
||||
|
||||
#define WINDOW_STYLE_EMPTY 0 // no background
|
||||
#define WINDOW_STYLE_FILLED 1 // filled with background color
|
||||
#define WINDOW_STYLE_GRADIENT 2 // gradient bar based on background color
|
||||
#define WINDOW_STYLE_SHADER 3 // gradient bar based on background color
|
||||
|
||||
#define MENU_TRUE 1 // uh.. true
|
||||
#define MENU_FALSE 0 // and false
|
||||
|
||||
#define WINDOW_MOUSEOVER 0x00000001 // mouse is over it, non exclusive
|
||||
#define WINDOW_HASFOCUS 0x00000002 // has cursor focus, exclusive
|
||||
#define WINDOW_VISIBLE 0x00000004 // is visible
|
||||
#define WINDOW_GREY 0x00000008 // is visible but grey ( non-active )
|
||||
#define WINDOW_DECORATION 0x00000010 // for decoration only, no mouse, keyboard, etc..
|
||||
#define WINDOW_FADINGOUT 0x00000020 // fading out, non-active
|
||||
#define WINDOW_FADINGIN 0x00000040 // fading in
|
||||
#define WINDOW_MOUSEOVERTEXT 0x00000080 // mouse is over it, non exclusive
|
||||
#define WINDOW_INTRANSITION 0x00000100 // window is in transition
|
||||
#define WINDOW_FORECOLORSET 0x00000200 // forecolor was explicitly set ( used to color alpha images or not )
|
||||
|
||||
// cg owner draw types
|
||||
// ideally these should be done outside of this file but
|
||||
// this makes it much easier for the macro expansion to
|
||||
// convert them for the designers ( from the .menu files )
|
||||
// cg owner draw types
|
||||
// ideally these should be done outside of this file but
|
||||
// this makes it much easier for the macro expansion to
|
||||
// convert them for the designers ( from the .menu files )
|
||||
|
||||
#define CG_PLAYER_ARMOR_ICON 1
|
||||
#define CG_PLAYER_ARMOR_VALUE 2
|
||||
#define CG_PLAYER_HEAD 3
|
||||
#define CG_PLAYER_HEALTH 4
|
||||
#define CG_PLAYER_AMMO_ICON 5
|
||||
#define CG_PLAYER_AMMO_VALUE 6
|
||||
|
||||
#define CG_SELECTEDPLAYER_HEAD 7
|
||||
#define CG_SELECTEDPLAYER_NAME 8
|
||||
#define CG_SELECTEDPLAYER_LOCATION 9
|
||||
#define CG_SELECTEDPLAYER_STATUS 10
|
||||
#define CG_SELECTEDPLAYER_WEAPON 11
|
||||
#define CG_SELECTEDPLAYER_POWERUP 12
|
||||
|
||||
#define CG_FLAGCARRIER_HEAD 13
|
||||
#define CG_FLAGCARRIER_NAME 14
|
||||
#define CG_FLAGCARRIER_LOCATION 15
|
||||
#define CG_FLAGCARRIER_STATUS 16
|
||||
#define CG_FLAGCARRIER_WEAPON 17
|
||||
#define CG_FLAGCARRIER_POWERUP 18
|
||||
|
||||
#define CG_PLAYER_ITEM 19
|
||||
#define CG_PLAYER_SCORE 20
|
||||
|
||||
#define CG_BLUE_FLAGHEAD 21
|
||||
#define CG_BLUE_FLAGSTATUS 22
|
||||
#define CG_BLUE_FLAGNAME 23
|
||||
#define CG_RED_FLAGHEAD 24
|
||||
#define CG_RED_FLAGSTATUS 25
|
||||
#define CG_RED_FLAGNAME 26
|
||||
|
||||
#define CG_BLUE_SCORE 27
|
||||
#define CG_RED_SCORE 28
|
||||
#define CG_RED_NAME 29
|
||||
#define CG_BLUE_NAME 30
|
||||
#define CG_HARVESTER_SKULLS 31
|
||||
#define CG_ONEFLAG_STATUS 32
|
||||
#define CG_PLAYER_LOCATION 33
|
||||
#define CG_TEAM_COLOR 34
|
||||
#define CG_CTF_POWERUP 35
|
||||
|
||||
#define CG_AREA_POWERUP 36
|
||||
#define CG_AREA_LAGOMETER 37
|
||||
|
||||
#define CG_PLAYER_HASFLAG 38
|
||||
#define CG_TEAM_COLOR 39
|
||||
|
||||
|
||||
// display flags
|
||||
#define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001
|
||||
#define CG_SHOW_RED_TEAM_HAS_BLUEFLAG 0x00000002
|
||||
#define CG_SHOW_ANYTEAMGAME 0x00000004
|
||||
#define CG_SHOW_HARVESTER 0x00000008
|
||||
#define CG_SHOW_ONEFLAG 0x00000010
|
||||
#define CG_SHOW_CTF 0x00000020
|
||||
#define CG_SHOW_OBELISK 0x00000040
|
||||
#define CG_SHOW_HEALTHCRITICAL 0x00000080
|
||||
#define CG_SHOW_SINGLEPLAYER 0x00000100
|
||||
#define CG_SHOW_TOURNAMENT 0x00000200
|
||||
#define CG_SHOW_DURINGINCOMINGVOICE 0x00000400
|
||||
#define CG_SHOW_IF_PLAYER_HAS_FLAG 0x00000800
|
||||
#define CG_SHOW_LANPLAYONLY 0x00001000
|
||||
#define CG_SHOW_2DONLY 0x10000000
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
||||
{
|
||||
assetGlobalDef {
|
||||
font "fonts/impact.ttf" // font
|
||||
cursor "menu/art/3_cursor2" // cursor
|
||||
gradientBar "ui/assets/gradientbar2.tga" // gradient bar
|
||||
fadeClamp 1.0 // sets the fadeup alpha
|
||||
fadeCycle 1 // how often fade happens in milliseconds
|
||||
fadeAmount 0.1 // amount to adjust alpha per cycle
|
||||
|
||||
shadowX 5 // x amount for shadow offset
|
||||
shadowY 5 // y amount for shadow offset
|
||||
shadowColor 0.1 0.1 0.1 0.25 // shadow color
|
||||
|
||||
hudShader "ui/assets/hudbar.tga" //
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// POWERUP AREA //
|
||||
|
||||
menuDef {
|
||||
name "powerup area"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 570 220 50 100
|
||||
|
||||
itemDef {
|
||||
name "powerupArea"
|
||||
rect 0 0 40 40
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_AREA_POWERUP
|
||||
special 4
|
||||
align HUD_VERTICAL
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MINI_SELECTPLAYER //
|
||||
|
||||
|
||||
menuDef {
|
||||
name "miniSelectPlayer"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 3 447 155 30
|
||||
|
||||
itemDef {
|
||||
name "miniSelectPlayerRect"
|
||||
fullScreen MENU_FALSE
|
||||
visible 1
|
||||
rect 0 0 155 30
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 0 0 0 0
|
||||
backcolor 0 0 0 0
|
||||
mouseEnter { show miniSelectPlayerRectAlt }
|
||||
mouseExit { hide miniSelectPlayerRectAlt }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniSelectPlayerRectAlt"
|
||||
fullScreen MENU_FALSE
|
||||
visible 0
|
||||
rect 0 0 155 30
|
||||
style 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 3 4 25 25
|
||||
visible 1
|
||||
ownerdraw CG_SELECTEDPLAYER_HEAD
|
||||
action { open altteamMenu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 33 7 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_SELECTEDPLAYER_STATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 65 4 20 10
|
||||
visible 1
|
||||
style 3
|
||||
decoration
|
||||
background "ui/assets/statusbar/selectedhealth.tga"
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
ownerdraw CG_SELECTEDPLAYER_HEALTH
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 65 17 20 10
|
||||
visible 1
|
||||
style 3
|
||||
decoration
|
||||
background "ui/assets/statusbar/selectedarmor.tga"
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
ownerdraw CG_SELECTEDPLAYER_ARMOR
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 90 7 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_SELECTEDPLAYER_WEAPON
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 125 7 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_SELECTEDPLAYER_POWERUP
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// MINI_STATUS //
|
||||
|
||||
menuDef {
|
||||
name "miniPlayerStatus"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 162 447 155 30
|
||||
|
||||
|
||||
itemDef {
|
||||
name "miniPlayerStatusRect"
|
||||
fullScreen MENU_FALSE
|
||||
visible 1
|
||||
rect 0 0 155 30
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 0 0 0 0
|
||||
backcolor 0 0 0 0
|
||||
mouseEnter { show miniPlayerStatusRectAlt }
|
||||
mouseExit { hide miniPlayerStatusRectAlt }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniPlayerStatusRectAlt"
|
||||
fullScreen MENU_FALSE
|
||||
visible 0
|
||||
rect 0 0 155 30
|
||||
style 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniAmmoValue"
|
||||
rect 10 7 25 15
|
||||
visible 1
|
||||
decoration
|
||||
textscale .33
|
||||
forecolor 1 1 1 1
|
||||
ownerdraw CG_PLAYER_AMMO_VALUE
|
||||
addColorRange -999 5 1 0 0 1
|
||||
addColorRange 6 999 1 .75 0 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "miniHealthValue"
|
||||
rect 60 7 25 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale .33
|
||||
ownerdraw CG_PLAYER_HEALTH
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "MiniArmorValue"
|
||||
rect 110 7 25 15
|
||||
visible 1
|
||||
decoration
|
||||
textscale .33
|
||||
ownerdraw CG_PLAYER_ARMOR_VALUE
|
||||
addColorRange -999 25 1 0 0 1
|
||||
addColorRange 26 100 1 .75 0 1
|
||||
addColorRange 101 999 1 1 1 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// MINI_ITEMS //
|
||||
|
||||
menuDef {
|
||||
name "miniItems"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
style 4
|
||||
rect 321 447 155 30
|
||||
|
||||
itemDef {
|
||||
name "miniItemRect"
|
||||
fullScreen MENU_FALSE
|
||||
visible 1
|
||||
rect 0 0 155 30
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 0 0 0 0
|
||||
backcolor 0 0 0 0
|
||||
mouseEnter { show miniItemRectAlt }
|
||||
mouseExit { hide miniItemRectAlt }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniITemRectAlt"
|
||||
fullScreen MENU_FALSE
|
||||
visible 0
|
||||
rect 0 0 155 30
|
||||
style 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 5 6 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_STATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 45 6 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_ITEM
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 80 6 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_CTF_POWERUP
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "flag"
|
||||
rect 120 4 25 25
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_HASFLAG
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// MINI_CTF_STATUS //
|
||||
|
||||
menuDef {
|
||||
name "miniCTFStatus"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
style 4
|
||||
rect 480 447 155 30
|
||||
|
||||
itemDef {
|
||||
name "miniCTFStatusRect"
|
||||
fullScreen MENU_FALSE
|
||||
visible 1
|
||||
rect 0 0 155 30
|
||||
style 4
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 0 0 0 0
|
||||
backcolor 0 0 0 0
|
||||
mouseEnter { show miniCTFStatusRectAlt }
|
||||
mouseExit { hide miniCTFStatusRectAlt }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniCTFStatusRectAlt"
|
||||
fullScreen MENU_FALSE
|
||||
visible 0
|
||||
rect 0 0 155 30
|
||||
style 1
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor 1 1 1 1
|
||||
backcolor 0 0 0 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 8 6 20 20
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/bluechip.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniFlagBlue"
|
||||
rect 8 6 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_BLUE_FLAGSTATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniBlueScore"
|
||||
rect 25 7 30 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale 0.33
|
||||
ownerdraw CG_BLUE_SCORE
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 85 6 20 20
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/redchip.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniFlagRed"
|
||||
rect 85 6 20 20
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_RED_FLAGSTATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "miniRedScore"
|
||||
rect 100 7 30 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale 0.33
|
||||
ownerdraw CG_RED_SCORE
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
menuDef {
|
||||
name "altTeamMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 300 80 132
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name "Possess"
|
||||
text "Possess"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 5 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show pbar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "pbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 5 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Follow"
|
||||
text "Follow"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 17 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show fbar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "fbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Go To"
|
||||
text "Go To"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 29 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show gbar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "gbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 29 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Get"
|
||||
text "Get"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 41 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show g2bar }
|
||||
action { open altGetMenu }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "g2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 41 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Patrol From"
|
||||
text "Patrol From"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 53 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p2bar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "p2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 53 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Patrol To"
|
||||
text "Patrol To"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 65 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p3bar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "p3bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 65 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Camp Near"
|
||||
text "Camp Near"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 77 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show cbar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "cbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 75 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Defend"
|
||||
text "Defend"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 89 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dbar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "dbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 89 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Attack"
|
||||
text "Attack"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 101 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show abar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "abar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 101 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Drop Command"
|
||||
text "Drop Command"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 113 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dcbar }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "dcbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 113 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
menuDef {
|
||||
name "altGetMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 86 338 85 35
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name "Enemy Flag"
|
||||
text "Enemy Flag"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 3 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show efbar }
|
||||
action { close altGetMenu ; close altTeamMenu ; orders get flag }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "efbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 3 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "Rocket Launcher"
|
||||
text "Rocket Launcher"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 17 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show rlbar }
|
||||
action { close altGetMenu ; close altTeamMenu ; orders get rocketlauncher }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "rlbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,676 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "system_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; fadeout fadebox ; hide grpSystem ; show graphics }
|
||||
onEsc { close system_menu ; close setup_menu ; open main }
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpSystembutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// System //
|
||||
|
||||
itemDef {
|
||||
name ctr_graphics
|
||||
text "Graphics"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpSystembutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 56 395 100 26
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grpSystem ; show graphics }
|
||||
mouseEnter { show message_graphics ; setitemcolor ctr_graphics backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_graphics ; setitemcolor ctr_graphics backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_graphics
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 56 395 100 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_graphics
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 44 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_graphics
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 155 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
text "Quality:"
|
||||
type ITEM_TYPE_MULTI
|
||||
cvar "ui_glCustom"
|
||||
cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 }
|
||||
rect 99 42 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript update "ui_glCustom" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
text "GL Driver:"
|
||||
cvar "r_gldriver"
|
||||
rect 99 67 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "GL Extensions:"
|
||||
cvar "r_allowExtensions"
|
||||
rect 99 92 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Video Mode:"
|
||||
cvar "r_mode"
|
||||
cvarFloatList { "320*240" 0 "400*300" 1 "512*384" 2 "640*480" 3 "800*600" 4 "960*720" 5 "1024*768" 6 "1152*864" 7 "1280*1024" 8 "1600*1200" 9 "2048*1536" 10 "856*480 Wide Screen" 11 }
|
||||
rect 99 117 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Color Depth:"
|
||||
cvar "r_colorbits"
|
||||
cvarFloatList { "Desktop Default" 0 "16-bit" 16 "32-bit" 32 }
|
||||
rect 99 142 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom ; uiScript update "r_colorbits" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Fullscreen:"
|
||||
cvar "r_fullscreen"
|
||||
rect 99 167 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Lighting:"
|
||||
cvar "r_vertexlight"
|
||||
cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1 }
|
||||
rect 99 192 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Geometric Detail:"
|
||||
cvar "r_lodbias"
|
||||
cvarFloatList { "High" 0 "Medium" 1 "Low" 2 }
|
||||
rect 99 217 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom ; uiScript update "r_lodbias" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Texture Detail:"
|
||||
cvar "r_picmip"
|
||||
cvarFloatList { "Low" 2 "Normal" 1 "High" 0 }
|
||||
rect 99 242 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Texture Quality:"
|
||||
cvar "r_texturebits"
|
||||
cvarFloatList { "Default" 0 "16 bit" 16 "32 bit" 32 }
|
||||
rect 99 269 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Texture Filter:"
|
||||
cvar "r_texturemode"
|
||||
cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR" }
|
||||
rect 99 294 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Compress Textures:"
|
||||
cvar "r_ext_compressed_textures"
|
||||
rect 99 319 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript glCustom }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
text "Apply"
|
||||
type 1
|
||||
group grpSystem
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 181 357 100 26
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
open vid_restart_popmenu }
|
||||
mouseEnter { setitemcolor graphics backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor graphics backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 181 357 100 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 169 357 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name graphics
|
||||
group grpSystem
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 280 357 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name ctr_driver
|
||||
text "Driver Info"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpSystembutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 181 395 100 26
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grpSystem ; show driver }
|
||||
mouseEnter { show message_driver ; setitemcolor ctr_driver backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_driver ; setitemcolor ctr_driver backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_driver
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 181 395 100 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_driver
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 169 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_driver
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 280 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name driver
|
||||
group grpSystem
|
||||
rect 0 32 454 256
|
||||
text "Driver Information"
|
||||
textalign 1
|
||||
textscale .333
|
||||
textalignx 227
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name driver
|
||||
group grpSystem
|
||||
rect 10 70 400 300
|
||||
ownerdraw UI_GLINFO
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
style 1
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name ctr_other
|
||||
text "Other"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpSystembutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 306 395 100 26
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grpSystem ; show other }
|
||||
mouseEnter { show message_other ; setitemcolor ctr_other backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_other ; setitemcolor ctr_other backcolor .37 .1 .1 1}
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_other
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 306 395 100 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_other
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 294 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_other
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 405 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
rect 2 4 439 125
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
rect 2 131 439 150
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
rect 2 283 439 100
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
style 1
|
||||
text "Display"
|
||||
rect 163 8 128 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 64
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor .4 .4 .65 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Brightness:"
|
||||
cvarfloat "r_gamma" 1 0.5 2
|
||||
rect 99 52 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Screen Size:"
|
||||
cvarfloat "cg_viewsize" 100 30 100
|
||||
rect 99 79 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
style 1
|
||||
text "Sound"
|
||||
rect 163 135 128 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 64
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor .4 .4 .65 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Effects Volume:"
|
||||
cvarfloat "s_volume" 0.7 0 1
|
||||
rect 99 160 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Music Volume:"
|
||||
cvarfloat "s_musicvolume" 0.25 0 1
|
||||
rect 99 187 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Sound Quality:"
|
||||
cvar "s_khz"
|
||||
cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 }
|
||||
rect 99 214 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Doppler Sound:"
|
||||
cvar "s_doppler"
|
||||
rect 99 241 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
style 1
|
||||
text "Network"
|
||||
rect 163 285 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor .4 .4 .65 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name other
|
||||
group grpSystem
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Net Data Rate:"
|
||||
cvar "rate"
|
||||
cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000 }
|
||||
rect 99 327 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript update ui_setRate }
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,306 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
// botselection menu
|
||||
{
|
||||
menuDef {
|
||||
name "teamMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 200 80 132
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name Possess
|
||||
text "Possess"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 5 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show pbar }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "pbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 5 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name Follow
|
||||
text "Follow"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 17 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show fbar }
|
||||
}
|
||||
itemDef {
|
||||
name "fbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Go To"
|
||||
text "Go To"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 29 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show gbar }
|
||||
}
|
||||
itemDef {
|
||||
name "gbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 29 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Get"
|
||||
text "Get"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 41 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show g2bar }
|
||||
action { open getMenu }
|
||||
}
|
||||
itemDef {
|
||||
name "g2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 41 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Patrol From"
|
||||
text "Patrol From"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 53 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p2bar }
|
||||
}
|
||||
itemDef {
|
||||
name "p2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 53 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Patrol To"
|
||||
text "Patrol To"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 65 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p3bar }
|
||||
}
|
||||
itemDef {
|
||||
name "p3bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 65 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Camp Near"
|
||||
text "Camp Near"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 77 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show cbar }
|
||||
}
|
||||
itemDef {
|
||||
name "cbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 75 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Defend"
|
||||
text "Defend"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 89 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dbar }
|
||||
}
|
||||
itemDef {
|
||||
name "dbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 89 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Attack"
|
||||
text "Attack"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 101 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show abar }
|
||||
}
|
||||
itemDef {
|
||||
name "abar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 101 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Drop Command"
|
||||
text "Drop Command"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 113 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dcbar }
|
||||
}
|
||||
itemDef {
|
||||
name "dcbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 113 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "getMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 86 238 85 35
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name "Enemy Flag"
|
||||
text "Enemy Flag"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 3 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show efbar }
|
||||
action { close getMenu ; close teamMenu ; orders get flag }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "efbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 3 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Rocket Launcher"
|
||||
text "Rocket Launcher"
|
||||
textaligny 10
|
||||
textalign 0
|
||||
rect 5 17 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show rlbar }
|
||||
action { close getMenu ; close teamMenu ; orders get rocketlauncher }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "rlbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "voiceMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 25 40 40
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "console"
|
||||
//backcolor 0 0 0.5 0.5
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 2 33 33
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_SELECTEDPLAYER_HEAD
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "voteMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 25 40 40
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "textures/base_wall/comp3"
|
||||
backcolor 0 0 0.5 0.5
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor 0 1 0 1
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,512 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ score_menu \\
|
||||
|
||||
menuDef {
|
||||
name "teamscore_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .75 0 1
|
||||
style 0
|
||||
border 1
|
||||
|
||||
|
||||
// GAMETYPE BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gameStatusWindow
|
||||
style 4
|
||||
rect 14 40 612 35
|
||||
border 1
|
||||
bordercolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name score
|
||||
ownerdraw CG_KILLER
|
||||
textscale .4
|
||||
style 0
|
||||
rect 0 40 640 27
|
||||
textalignx 0
|
||||
textaligny 27
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// TEAM NAME //
|
||||
|
||||
itemDef {
|
||||
name teamNameWindow
|
||||
rect 14 78 612 30
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name score
|
||||
text " "
|
||||
ownerdraw CG_GAME_STATUS
|
||||
textscale .3
|
||||
style 0
|
||||
rect 0 78 640 23
|
||||
textalignx 320
|
||||
textaligny 0
|
||||
textalign 1
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name redteamname
|
||||
ownerdraw CG_RED_NAME
|
||||
textalign 0
|
||||
textscale .3
|
||||
rect 20 78 306 23
|
||||
forecolor 1 0 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name blueteamname
|
||||
ownerdraw CG_BLUE_NAME
|
||||
text " "
|
||||
textalign 2
|
||||
textscale .3
|
||||
rect 600 78 0 23
|
||||
forecolor 0 0 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
// TEAM BARS //
|
||||
|
||||
itemDef {
|
||||
name leftteambar
|
||||
rect 14 112 307 25
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor 1 1 1 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rightteambar
|
||||
rect 320 112 306 25
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor 1 1 1 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// TEAM HEADINGS //
|
||||
|
||||
itemDef {
|
||||
name leftteamheadings
|
||||
text "Status Name Score Time Ping"
|
||||
textscale .25
|
||||
style 0
|
||||
rect 25 112 128 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 18
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name rightteamheadings
|
||||
text "Status Name Score Time Ping"
|
||||
textscale .25
|
||||
style 0
|
||||
rect 331 112 128 30
|
||||
textalign 0
|
||||
textalignx 0 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 18
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 .75 0 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// GRADIENT BACKGROUNDS //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 320 142 1 220
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 300 142 1 220
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 606 142 1 220
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name redlogo
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "textures/ctf2/redteam01.tga"
|
||||
rect 110 189 128 128
|
||||
forecolor .75 0 0 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name bluelogo
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "textures/ctf2/blueteam01"
|
||||
rect 416 189 128 128
|
||||
forecolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name leftgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradleft.tga"
|
||||
rect 14 142 306 222
|
||||
forecolor .75 0 0 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name rightgrad
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/halfgradright.tga"
|
||||
rect 320 142 306 222
|
||||
forecolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// LIST //
|
||||
|
||||
itemDef {
|
||||
name leftlist
|
||||
rect 14 142 306 222
|
||||
forecolor .75 .75 .75 1
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_REDTEAM_LIST
|
||||
notselectable
|
||||
columns 7 2 12 12 18 12 12 34 20 20 78 75 16 183 20 20 221 20 20 251 10 10
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name rightlist
|
||||
rect 320 142 306 222
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_BLUETEAM_LIST
|
||||
notselectable
|
||||
columns 7 2 12 12 18 12 12 34 20 20 78 75 16 183 20 20 221 20 20 251 10 10
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// PLAYER LIST BORDER //
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 141 612 221
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// spectators //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 414 612 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 .7
|
||||
backcolor 0 0 0 .5
|
||||
textscale .33
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
text "Spectating:"
|
||||
textaligny 20
|
||||
rect 19 414 82 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
forecolor 1 1 1 1
|
||||
textscale .33
|
||||
textalignx 3
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 100 414 520 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
forecolor 1 1 1 1
|
||||
textscale .33
|
||||
visible 1
|
||||
ownerdraw CG_SPECTATORS
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// AWARDS //
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 364 612 48
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_accuracy
|
||||
ownerdraw CG_ACCURACY
|
||||
rect 43 368 32 32
|
||||
background "ui/assets/medal_accuracy.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_assist
|
||||
ownerdraw CG_ASSISTS
|
||||
rect 130 368 32 32
|
||||
background "ui/assets/medal_assist.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_defend
|
||||
ownerdraw CG_DEFEND
|
||||
rect 227 368 32 32
|
||||
background "ui/assets/medal_defend.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_excellent
|
||||
ownerdraw CG_EXCELLENT
|
||||
rect 314 368 32 32
|
||||
background "ui/assets/medal_excellent.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_gauntlet
|
||||
ownerdraw CG_GAUNTLET
|
||||
rect 391 368 32 32
|
||||
background "ui/assets/medal_gauntlet.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_impressive
|
||||
ownerdraw CG_IMPRESSIVE
|
||||
rect 478 368 32 32
|
||||
background "ui/assets/medal_impressive.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name medal_capture_team
|
||||
ownerdraw CG_CAPTURES
|
||||
rect 565 368 32 32
|
||||
background "ui/assets/medal_capture.tga"
|
||||
forecolor 1 1 1 .5
|
||||
visible 1
|
||||
decoration
|
||||
textscale 0.25
|
||||
}
|
||||
|
||||
// GAMETYPE //
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 14 440 612 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 .7
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 220 440 200 24
|
||||
style WINDOW_STYLE_EMPTY
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gametype
|
||||
ownerdraw CG_GAME_TYPE
|
||||
textalign 0
|
||||
textscale .3
|
||||
rect 18 440 50 20
|
||||
forecolor 1 1 1 1
|
||||
textaligny 0
|
||||
textalignx 0
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemdef {
|
||||
name playername
|
||||
text "Use Score Scroll Keys"
|
||||
rect 225 440 256 24
|
||||
forecolor 1 .75 0 1
|
||||
textalignx 10
|
||||
textaligny 20
|
||||
visible 1
|
||||
textalign 0
|
||||
decoration
|
||||
textscale 0.333
|
||||
}
|
||||
|
||||
|
||||
itemdef {
|
||||
name playerscore
|
||||
text "Score:"
|
||||
rect 430 440 40 21
|
||||
textalignx 0
|
||||
textaligny 21
|
||||
visible 1
|
||||
textalign 0
|
||||
forecolor 1 1 1 1
|
||||
textscale .3
|
||||
ownerdraw CG_PLAYER_SCORE
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,29 @@
|
|||
mkdir vm
|
||||
cd vm
|
||||
|
||||
set cc=lcc -DQ3_VM -S -Wf-target=bytecode -Wf-g -I..\..\cgame -I..\..\game -I..\..\ui %1
|
||||
|
||||
%cc% ../ui_main.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../../game/bg_misc.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../../game/bg_lib.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../../game/q_math.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../../game/q_shared.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../ui_atoms.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../ui_players.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../ui_util.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../ui_shared.c
|
||||
@if errorlevel 1 goto quit
|
||||
%cc% ../ui_gameinfo.c
|
||||
@if errorlevel 1 goto quit
|
||||
|
||||
q3asm -f ../ui
|
||||
:quit
|
||||
cd ..
|
|
@ -0,0 +1,3 @@
|
|||
EXPORTS
|
||||
vmMain
|
||||
dllEntry
|
|
@ -0,0 +1,641 @@
|
|||
# Microsoft Developer Studio Project File - Name="ui" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||
|
||||
CFG=ui - Win32 Debug TA
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "ui.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "ui.mak" CFG="ui - Win32 Debug TA"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "ui - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "ui - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "ui - Win32 Release TA" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "ui - Win32 Debug TA" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "ui - Win32 vector" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""$/MissionPack/code/ui", AOBAAAAA"
|
||||
# PROP Scc_LocalPath "."
|
||||
CPP=vectorcl
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /YX /FD /c
|
||||
# ADD CPP /nologo /G6 /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
|
||||
# ADD LINK32 /nologo /base:"0x40000000" /dll /map /machine:I386 /out:"../Release/uix86_new.dll"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "ui___Win32_Debug"
|
||||
# PROP BASE Intermediate_Dir "ui___Win32_Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /G5 /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /FR /YX /FD /GZ /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 /nologo /base:"0x40000000" /dll /pdb:"../Debug/ui.pdb" /map /debug /machine:I386 /out:"../Debug/uix86_new.dll" /pdbtype:sept
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ui___Win32_Release_TA"
|
||||
# PROP BASE Intermediate_Dir "ui___Win32_Release_TA"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release_TA"
|
||||
# PROP Intermediate_Dir "Release_TA"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /G6 /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /YX /FD /c
|
||||
# ADD CPP /nologo /G6 /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 /nologo /base:"0x40000000" /dll /map /machine:I386 /out:"../Release/uix86.dll"
|
||||
# ADD LINK32 /nologo /base:"0x40000000" /dll /map /machine:I386 /out:"../Release_TA/uix86.dll"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "ui___Win32_Debug_TA"
|
||||
# PROP BASE Intermediate_Dir "ui___Win32_Debug_TA"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug_TA"
|
||||
# PROP Intermediate_Dir "Debug_TA"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /G5 /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /FR /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /G5 /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /D "MISSIONPACK" /FR /YX /FD /GZ /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 /nologo /base:"0x40000000" /dll /pdb:"../Debug/ui.pdb" /map /debug /machine:I386 /out:"../Debug/uix86_new.dll" /pdbtype:sept
|
||||
# SUBTRACT BASE LINK32 /pdb:none
|
||||
# ADD LINK32 /nologo /base:"0x40000000" /dll /pdb:"../Debug/ui.pdb" /map /debug /machine:I386 /out:"../Debug_TA/uix86.dll" /pdbtype:sept
|
||||
# SUBTRACT LINK32 /pdb:none
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "ui___Win32_vector"
|
||||
# PROP BASE Intermediate_Dir "ui___Win32_vector"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "ui___Win32_vector"
|
||||
# PROP Intermediate_Dir "ui___Win32_vector"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /G6 /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /YX /FD /c
|
||||
# ADD CPP /nologo /G6 /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 /nologo /base:"0x40000000" /dll /map /machine:I386 /out:"../Release_TA/uix86.dll"
|
||||
# ADD LINK32 /nologo /base:"0x40000000" /dll /map /machine:I386 /out:"../Release_TA/uix86.dll"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "ui - Win32 Release"
|
||||
# Name "ui - Win32 Debug"
|
||||
# Name "ui - Win32 Release TA"
|
||||
# Name "ui - Win32 Debug TA"
|
||||
# Name "ui - Win32 vector"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\game\bg_lib.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
# PROP BASE Exclude_From_Build 1
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
# PROP BASE Exclude_From_Build 1
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
# PROP BASE Exclude_From_Build 1
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\game\bg_misc.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\game\q_math.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\game\q_shared.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui.def
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_atoms.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_gameinfo.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_main.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_players.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_shared.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_syscalls.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_util.c
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\game\bg_public.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\keycodes.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\ui\menudef.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\game\q_shared.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\game\surfaceflags.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\cgame\tr_types.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_local.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_public.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\ui_shared.h
|
||||
|
||||
!IF "$(CFG)" == "ui - Win32 Release"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug"
|
||||
|
||||
# PROP Exclude_From_Build 1
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Release TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 Debug TA"
|
||||
|
||||
!ELSEIF "$(CFG)" == "ui - Win32 vector"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
|
@ -0,0 +1,29 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "ui"=.\ui.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,43 @@
|
|||
<html>
|
||||
<body>
|
||||
<pre>
|
||||
<h1>Build Log</h1>
|
||||
<h3>
|
||||
--------------------Configuration: ui - Win32 vector--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPC38.tmp" with contents
|
||||
[
|
||||
/nologo /G6 /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /Fp"ui___Win32_vector/ui.pch" /YX /Fo"ui___Win32_vector/" /Fd"ui___Win32_vector/" /FD /c
|
||||
"C:\reaction\ta_ui\ui_players.c"
|
||||
]
|
||||
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPC38.tmp"
|
||||
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPC39.tmp" with contents
|
||||
[
|
||||
/nologo /base:"0x40000000" /dll /incremental:no /pdb:"ui___Win32_vector/uix86.pdb" /map:"ui___Win32_vector/uix86.map" /machine:I386 /def:".\ui.def" /out:"../Release_TA/uix86.dll" /implib:"ui___Win32_vector/uix86.lib"
|
||||
.\ui___Win32_vector\bg_misc.obj
|
||||
.\ui___Win32_vector\q_math.obj
|
||||
.\ui___Win32_vector\q_shared.obj
|
||||
.\ui___Win32_vector\ui_atoms.obj
|
||||
.\ui___Win32_vector\ui_gameinfo.obj
|
||||
.\ui___Win32_vector\ui_main.obj
|
||||
.\ui___Win32_vector\ui_players.obj
|
||||
.\ui___Win32_vector\ui_shared.obj
|
||||
.\ui___Win32_vector\ui_syscalls.obj
|
||||
.\ui___Win32_vector\ui_util.obj
|
||||
]
|
||||
Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSPC39.tmp"
|
||||
<h3>Output Window</h3>
|
||||
Compiling...
|
||||
ui_players.c
|
||||
C:\reaction\ta_ui\ui_players.c(678) : warning C4101: 'barrel' : unreferenced local variable
|
||||
Linking...
|
||||
Creating library ui___Win32_vector/uix86.lib and object ui___Win32_vector/uix86.exp
|
||||
|
||||
|
||||
|
||||
<h3>Results</h3>
|
||||
uix86.dll - 0 error(s), 1 warning(s)
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,12 @@
|
|||
-o "\quake3\baseq3\vm\ui"
|
||||
ui_main
|
||||
..\ui_syscalls
|
||||
ui_atoms
|
||||
ui_players
|
||||
ui_util
|
||||
ui_shared
|
||||
ui_gameinfo
|
||||
bg_misc
|
||||
bg_lib
|
||||
q_math
|
||||
q_shared
|
|
@ -0,0 +1,481 @@
|
|||
<?xml version="1.0"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.00"
|
||||
Name="ui"
|
||||
SccProjectName=""$/MissionPack/code/ui", AOBAAAAA"
|
||||
SccAuxPath="\\Purgatory\Purgatory\idSourceControl"
|
||||
SccLocalPath="."
|
||||
SccProvider="MSSCCI:SourceSafe">
|
||||
<Build>
|
||||
<Settings>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
<Configuration
|
||||
Name="Release TA|Win32"
|
||||
IntermediateDirectory=".\Release_TA"
|
||||
OutputDirectory=".\Release_TA"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
SuppressStartupMessage="TRUE"
|
||||
OutputFile=".\Release_TA/ui.bsc"/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="1"
|
||||
OptimizeForProcessor="2"
|
||||
Defines="WIN32;NDEBUG;_WINDOWS;_USRDLL;UI_EXPORTS"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="4"
|
||||
PackageFunctions="TRUE"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Release_TA/ui.pch"
|
||||
AsmListingLocation=".\Release_TA/"
|
||||
ObjectFile=".\Release_TA/"
|
||||
ProgramDataBaseFileName=".\Release_TA/"
|
||||
WarnLevel="3"
|
||||
SuppressStartupMessage="TRUE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalInputs="odbc32.lib odbccp32.lib"
|
||||
OutputFile="../Release_TA/uix86.dll"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupMessage="TRUE"
|
||||
ModuleDefinitionFile=".\ui.def"
|
||||
ProgramDatabaseFile=".\Release_TA/uix86.pdb"
|
||||
GenerateMapFile="TRUE"
|
||||
MapFileName=".\Release_TA/uix86.map"
|
||||
BaseAddress="0x40000000"
|
||||
ImportLibrary=".\Release_TA/uix86.lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
Defines="NDEBUG"
|
||||
MkTypLibCompatibility="TRUE"
|
||||
SuppressStartupMessage="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Release_TA/ui.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Defines="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCSDLTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug TA|Win32"
|
||||
IntermediateDirectory=".\Debug_TA"
|
||||
OutputDirectory=".\Debug_TA"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
SuppressStartupMessage="TRUE"
|
||||
OutputFile=".\Debug_TA/ui.bsc"/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
OptimizeForProcessor="1"
|
||||
Defines="WIN32;_DEBUG;_WINDOWS;_USRDLL;UI_EXPORTS;MISSIONPACK"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Debug_TA/ui.pch"
|
||||
AsmListingLocation=".\Debug_TA/"
|
||||
ObjectFile=".\Debug_TA/"
|
||||
ProgramDataBaseFileName=".\Debug_TA/"
|
||||
BrowseInformation="1"
|
||||
WarnLevel="3"
|
||||
SuppressStartupMessage="TRUE"
|
||||
DebugInformation="4"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalInputs="odbc32.lib odbccp32.lib"
|
||||
OutputFile="../Debug_TA/uix86.dll"
|
||||
LinkIncremental="2"
|
||||
SuppressStartupMessage="TRUE"
|
||||
ModuleDefinitionFile=".\ui.def"
|
||||
GenerateDebug="TRUE"
|
||||
ProgramDatabaseFile="../Debug/ui.pdb"
|
||||
GenerateMapFile="TRUE"
|
||||
MapFileName=".\Debug_TA/uix86.map"
|
||||
BaseAddress="0x40000000"
|
||||
ImportLibrary=".\Debug_TA/uix86.lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
Defines="_DEBUG"
|
||||
MkTypLibCompatibility="TRUE"
|
||||
SuppressStartupMessage="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Debug_TA/ui.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Defines="_DEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCSDLTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
IntermediateDirectory=".\Release"
|
||||
OutputDirectory=".\Release"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
SuppressStartupMessage="TRUE"
|
||||
OutputFile=".\Release/ui.bsc"/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
InlineFunctionExpansion="1"
|
||||
OptimizeForProcessor="2"
|
||||
Defines="WIN32;NDEBUG;_WINDOWS;_USRDLL;UI_EXPORTS"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="4"
|
||||
PackageFunctions="TRUE"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Release/ui.pch"
|
||||
AsmListingLocation=".\Release/"
|
||||
ObjectFile=".\Release/"
|
||||
ProgramDataBaseFileName=".\Release/"
|
||||
WarnLevel="3"
|
||||
SuppressStartupMessage="TRUE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalInputs="odbc32.lib odbccp32.lib"
|
||||
OutputFile="../Release/uix86_new.dll"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupMessage="TRUE"
|
||||
ProgramDatabaseFile=".\Release/uix86_new.pdb"
|
||||
GenerateMapFile="TRUE"
|
||||
MapFileName=".\Release/uix86_new.map"
|
||||
BaseAddress="0x40000000"
|
||||
ImportLibrary=".\Release/uix86_new.lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
Defines="NDEBUG"
|
||||
MkTypLibCompatibility="TRUE"
|
||||
SuppressStartupMessage="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Release/ui.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Defines="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCSDLTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
IntermediateDirectory=".\Debug"
|
||||
OutputDirectory=".\Debug"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
SuppressStartupMessage="TRUE"
|
||||
OutputFile=".\Debug/ui.bsc"/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
OptimizeForProcessor="1"
|
||||
Defines="WIN32;_DEBUG;_WINDOWS;_USRDLL;UI_EXPORTS"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderFile=".\Debug/ui.pch"
|
||||
AsmListingLocation=".\Debug/"
|
||||
ObjectFile=".\Debug/"
|
||||
ProgramDataBaseFileName=".\Debug/"
|
||||
BrowseInformation="1"
|
||||
WarnLevel="3"
|
||||
SuppressStartupMessage="TRUE"
|
||||
DebugInformation="4"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalOptions="/MACHINE:I386"
|
||||
AdditionalInputs="odbc32.lib odbccp32.lib"
|
||||
OutputFile="../Debug/uix86.dll"
|
||||
LinkIncremental="2"
|
||||
SuppressStartupMessage="TRUE"
|
||||
GenerateDebug="TRUE"
|
||||
ProgramDatabaseFile="../Debug/ui.pdb"
|
||||
GenerateMapFile="TRUE"
|
||||
MapFileName=".\Debug/uix86_new.map"
|
||||
BaseAddress="0x40000000"
|
||||
ImportLibrary=".\Debug/uix86_new.lib"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
Defines="_DEBUG"
|
||||
MkTypLibCompatibility="TRUE"
|
||||
SuppressStartupMessage="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Debug/ui.tlb"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Defines="_DEBUG"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCSDLTool"/>
|
||||
</Configuration>
|
||||
</Settings>
|
||||
</Build>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Source Files"
|
||||
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
|
||||
<File
|
||||
RelativePath="..\game\bg_lib.c">
|
||||
<FileConfiguration
|
||||
Name="Release TA|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug TA|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\game\bg_misc.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\game\q_math.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\game\q_shared.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui.def">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_atoms.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_gameinfo.c">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_main.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_players.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_shared.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_syscalls.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_util.c">
|
||||
<FileConfiguration
|
||||
Name="Release|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32"
|
||||
ExcludedFromBuild="TRUE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl">
|
||||
<File
|
||||
RelativePath="..\game\bg_public.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\keycodes.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\ui\menudef.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\game\q_shared.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\game\surfaceflags.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\cgame\tr_types.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_local.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_public.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ui_shared.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
|
@ -0,0 +1,323 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ ADD FILTER POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "addfilter_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 190 200 256 256
|
||||
outOfBoundsClick
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { hide grpFilter ; show add }
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 256 256
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 220 256 1
|
||||
style 1
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// BUTTONS //
|
||||
|
||||
itemDef {
|
||||
name filter_add
|
||||
text "Add"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 10 5 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpFilter ; show add }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name filter_edit
|
||||
text "Edit"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 90 5 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpFilter ; show edit }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name filter_delete
|
||||
text "Delete"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 170 5 75 20
|
||||
textalign 1
|
||||
textalignx 37
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { hide grpFilter ; show delete }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// ADD FILTER //
|
||||
|
||||
|
||||
itemDef {
|
||||
name add
|
||||
group grpFilter
|
||||
text "Description:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 30 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name add
|
||||
group grpFilter
|
||||
text "Filter Name:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name add
|
||||
group grpFilter
|
||||
rect 20 80 216 105
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_PLAYER_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor add bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor add bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name add
|
||||
text "Add"
|
||||
group grpFilter
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 190 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// EDIT //
|
||||
|
||||
|
||||
itemDef {
|
||||
name edit
|
||||
group grpFilter
|
||||
text "Description:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 30 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name edit
|
||||
group grpFilter
|
||||
text "Filter Name:"
|
||||
style 0
|
||||
textscale .25
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
rect 20 50 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name edit
|
||||
group grpFilter
|
||||
rect 20 80 216 105
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_PLAYER_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor edit bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor edit bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name edit
|
||||
text "Accept"
|
||||
group grpFilter
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 190 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// DELETE //
|
||||
|
||||
itemDef {
|
||||
name delete
|
||||
group grpFilter
|
||||
text "Filter Name:"
|
||||
textscale .25
|
||||
rect 20 30 110 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
itemDef {
|
||||
name delete
|
||||
group grpFilter
|
||||
rect 20 80 216 105
|
||||
style WINDOW_STYLE_FILLED
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 120
|
||||
elementheight 15
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_PLAYER_LIST
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 0
|
||||
mouseEnter { fadein message_arena ; setitemcolor delete bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_arena ; setitemcolor delete bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name delete
|
||||
text "Delete"
|
||||
group grpFilter
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 190 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// OK //
|
||||
|
||||
itemDef {
|
||||
name type
|
||||
text "Exit"
|
||||
textscale .25
|
||||
type 1
|
||||
group grpFilterbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/button_red.tga"
|
||||
rect 103 230 50 20
|
||||
textalign 1
|
||||
textalignx 25
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action { close addfilter_popmenu ; close joinserver ; open joinserver }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,306 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
// botselection menu
|
||||
{
|
||||
menuDef {
|
||||
name "BotSelection"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 200 80 132
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name "Possess"
|
||||
text "Possess"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 5 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show pbar }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "pbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 5 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Follow"
|
||||
text "Follow"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 17 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show fbar }
|
||||
}
|
||||
itemDef {
|
||||
name "fbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Go To"
|
||||
text "Go To"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 29 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show gbar }
|
||||
}
|
||||
itemDef {
|
||||
name "gbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 29 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Get"
|
||||
text "Get"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 41 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show g2bar }
|
||||
action { open getMenu }
|
||||
}
|
||||
itemDef {
|
||||
name "g2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 41 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Patrol From"
|
||||
text "Patrol From"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 53 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p2bar }
|
||||
}
|
||||
itemDef {
|
||||
name "p2bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 53 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Patrol To"
|
||||
text "Patrol To"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 65 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show p3bar }
|
||||
}
|
||||
itemDef {
|
||||
name "p3bar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 65 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Camp Near"
|
||||
text "Camp Near"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 77 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show cbar }
|
||||
}
|
||||
itemDef {
|
||||
name "cbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 75 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Defend"
|
||||
text "Defend"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 89 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dbar }
|
||||
}
|
||||
itemDef {
|
||||
name "dbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 89 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Attack"
|
||||
text "Attack"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 101 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show abar }
|
||||
}
|
||||
itemDef {
|
||||
name "abar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 101 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Drop Command"
|
||||
text "Drop Command"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_Left
|
||||
rect 5 113 75 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight ; show dcbar }
|
||||
}
|
||||
itemDef {
|
||||
name "dcbar"
|
||||
group "highlight"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 113 79 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "getMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 86 238 85 35
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0.8 .25
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 1 1
|
||||
|
||||
itemDef {
|
||||
name "Enemy Flag"
|
||||
text "Enemy Flag"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 3 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show efbar }
|
||||
action { close getMenu ; close teamMenu ; orders get flag }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "efbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 3 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name "Rocket Launcher"
|
||||
text "Rocket Launcher"
|
||||
textaligny 10
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
rect 5 17 80 10
|
||||
visible 1
|
||||
textscale 0.22
|
||||
mouseEnter { hide highlight2 ; show rlbar }
|
||||
action { close getMenu ; close teamMenu ; orders get rocketlauncher }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name "rlbar"
|
||||
group "highlight2"
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 0 17 84 13
|
||||
visible 0
|
||||
backcolor 0.8 0.8 0.8 0.3
|
||||
decoration
|
||||
}
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "voiceMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 25 40 40
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "console"
|
||||
//backcolor 0 0 0.5 0.5
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
|
||||
itemDef {
|
||||
name "b"
|
||||
rect 2 2 33 33
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_SELECTEDPLAYER_HEAD
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
menuDef {
|
||||
name "voteMenu"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
rect 5 25 40 40
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "textures/base_wall/comp3"
|
||||
backcolor 0 0 0.5 0.5
|
||||
border WINDOW_BORDER_FULL
|
||||
bordersize 1
|
||||
bordercolor 0 1 0 1
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,312 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "cdkey_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onClose {
|
||||
uiScript verifyCDKey
|
||||
}
|
||||
onOpen {
|
||||
setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
hide grpfinish ;
|
||||
uiScript getCDKey
|
||||
}
|
||||
onEsc { close cdkey_menu ; close setup_menu ; open main }
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpSystembutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// DEMO ONLY OPTION //
|
||||
|
||||
itemDef {
|
||||
name demo_only
|
||||
group grpcdkey
|
||||
rect 0 145 454 30
|
||||
text"This Option is Not Available in Demo."
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textscale .333
|
||||
textalignx 217
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name data
|
||||
group grpcdkey
|
||||
rect 0 145 454 30
|
||||
text"Enter your encryption code in the field below."
|
||||
textalign 1
|
||||
textscale .333
|
||||
textalignx 217
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
style 0
|
||||
text "Code:"
|
||||
maxchars 4
|
||||
rect 60 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
decoration
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkey1"
|
||||
maxchars 4
|
||||
rect 107 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkey2"
|
||||
maxchars 4
|
||||
rect 162 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkey3"
|
||||
maxchars 4
|
||||
rect 217 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text""
|
||||
cvar "cdkey4"
|
||||
maxchars 4
|
||||
rect 272 192 50 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 1 0 0 .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
style 0
|
||||
text "-"
|
||||
maxchars 2
|
||||
rect 327 192 60 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
backcolor 0 0 0 0
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name datafield
|
||||
group grpcdkey
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 1
|
||||
text ""
|
||||
cvar "cdkeychecksum"
|
||||
maxchars 2
|
||||
rect 335 192 40 30
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 23
|
||||
textscale .333
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 .25
|
||||
visible 1
|
||||
mouseenter { setcolor bordercolor 1 .75 0 1 }
|
||||
mouseexit { setcolor bordercolor .5 .5 .5 1 }
|
||||
}
|
||||
itemDef {
|
||||
name accept
|
||||
text "Verify"
|
||||
type 1
|
||||
group grpcdkey
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 161 247 100 26
|
||||
textalign 1
|
||||
textalignx 50
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action {
|
||||
play "sound/misc/nomenu.wav" ;
|
||||
uiScript verifyCDKey ;
|
||||
show finish_message
|
||||
}
|
||||
mouseEnter { setitemcolor accept backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor accept backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
group grpcdkey
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 161 247 100 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
group grpcdkey
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 149 247 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
group grpcdkey
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 260 247 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name finish_message
|
||||
group grpfinish
|
||||
style 0
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
text ""
|
||||
cvar ui_cdkeyvalid
|
||||
rect 0 290 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 5 7 24 24
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/bluechip.tga"
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 5 7 24 24
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_BLUE_FLAGSTATUS
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 67 7 24 24
|
||||
visible 1
|
||||
bordercolor 1 1 1 .75
|
||||
decoration
|
||||
style 3
|
||||
background "ui/assets/redchip.tga"
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name "f"
|
||||
rect 67 7 24 24
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_RED_FLAGSTATUS
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Cinematic \\
|
||||
|
||||
menuDef {
|
||||
name "cinematic"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { exec "cinematic idlogo.RoQ" ; open credit }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,308 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CINEMATIC \\
|
||||
|
||||
menuDef {
|
||||
name "cinematicMenu"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onEsc { close cinematicMenu ; open main }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
play "sound/misc/kcswish.wav" ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
fadeout fadebox ;
|
||||
transition mappreview 0 0 640 480 54 144 256 192 20 10 ;
|
||||
uiScript loadMovies ;
|
||||
hide lightning ;
|
||||
hide accept_alt ;
|
||||
show accept ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_e
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
background "menuback_e"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name menuback_b
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 163 640 155
|
||||
visible 1
|
||||
background "menuback_b"
|
||||
bordercolor 0.5 0.5 0.5 .7
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name windowscreen
|
||||
rect 0 0 640 240
|
||||
style 3
|
||||
background levelshotdetail
|
||||
forecolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name windowscreen
|
||||
rect 0 240 640 240
|
||||
style 3
|
||||
background levelshotdetail
|
||||
forecolor 0 0 0 0
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelbar
|
||||
text "TEAM ARENA CINEMATICS"
|
||||
textstyle 6
|
||||
style 2
|
||||
rect 0 16 640 40
|
||||
textscale 0.416
|
||||
textalign 1 // center
|
||||
textalignx 320 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 27
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name cinematiclist
|
||||
rect 330 144 256 192
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_CINEMATICS
|
||||
doubleclick { uiScript playMovie }
|
||||
textalign 3
|
||||
textaligny 14
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .1 1
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 1
|
||||
mouseEnter { fadein message_cinematic ; setitemcolor cinematiclist bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_cinematic ; setitemcolor cinematiclist bordercolor .5 .5 .5 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close cinematicMenu ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close cinematicMenu ; open main }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
style 3
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseEnter { playlooped "sound/misc/loop_electricity_05.wav" ; show lightning ; hide accept ; show accept_alt ; fadein message_accept }
|
||||
action { close cinematicMenu ; uiScript playMovie }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept_alt
|
||||
style 3
|
||||
rect 572 422 54 54
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
action { close cinematicMenu ; uiScript playMovie }
|
||||
mouseExit { hide lightning ; hide accept_alt ; show accept ; fadeout message_accept ; playlooped "music/fla_mp03.wav" }
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 46 385 174 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 417 385 174 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_cinematic
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Select Cinematic to Play"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_accept
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Select to Play Fullscreen"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name mappreview
|
||||
ownerdraw UI_PREVIEWCINEMATIC
|
||||
rect 54 144 256 192
|
||||
backcolor 1 1 1 .25
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
|
||||
{
|
||||
|
||||
menuDef {
|
||||
name "Connect"
|
||||
background "ui/assets/backscreen"
|
||||
rect 0 0 640 480
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
style WINDOW_STYLE_SHADER
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,911 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SETUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "control_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onopen { hide grpControls ; show look }
|
||||
|
||||
|
||||
itemDef {
|
||||
name controls_shader
|
||||
group grpControls
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 45 640 60
|
||||
visible 0
|
||||
background "ui/assets/controls_shader1"
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpControlbutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name keyBindStatus
|
||||
rect 0 15 640 30
|
||||
ownerdraw UI_KEYBINDSTATUS
|
||||
text " "
|
||||
forecolor 1 .75 0 1
|
||||
textscale .25
|
||||
textalignx 100
|
||||
textalign 1
|
||||
textaligny 20
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_look
|
||||
text "Look"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 37 395 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show look }
|
||||
mouseEnter { show message_look ; setitemcolor ctr_look backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_look ; setitemcolor ctr_look backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_look
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 37 395 45 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_look
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 25 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_look
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 81 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Look Down:"
|
||||
cvar "+lookdown"
|
||||
//rect 99 140 256 20
|
||||
rect 99 135 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Mouse Look:"
|
||||
cvar "+mlook"
|
||||
rect 99 160 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Centerview:"
|
||||
cvar "centerview"
|
||||
rect 99 185 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "ZoomView:"
|
||||
cvar "+zoom"
|
||||
rect 99 210 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name look
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Free Look:"
|
||||
cvar "cl_freelook"
|
||||
rect 99 235 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 17
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_move
|
||||
text "Move"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 116 395 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show move }
|
||||
mouseEnter { show message_move ; setitemcolor ctr_move backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_move ; setitemcolor ctr_move backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name ctr_move
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 116 395 45 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_move
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 104 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_move
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 160 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Always Run:"
|
||||
cvar "+speed"
|
||||
rect 99 50 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Forward:"
|
||||
cvar "+forward"
|
||||
rect 99 75 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Backpedal:"
|
||||
cvar "+back"
|
||||
rect 99 100 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Move Left:"
|
||||
cvar "+moveleft"
|
||||
rect 99 125 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Move Right:"
|
||||
cvar "+moveright"
|
||||
rect 99 150 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Jump:"
|
||||
cvar "+moveup"
|
||||
rect 99 175 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Crouch:"
|
||||
cvar "+movedown"
|
||||
rect 99 200 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Turn Left:"
|
||||
cvar "+left"
|
||||
rect 99 225 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Turn Right:"
|
||||
cvar "+right"
|
||||
rect 99 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name move
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Strafe:"
|
||||
cvar "+strafe"
|
||||
rect 99 275 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
text "Shoot"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 197 395 45 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show shoot }
|
||||
mouseEnter { show message_shoot ; setitemcolor ctr_shoot backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_shoot ; setitemcolor ctr_shoot backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 197 395 45 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 185 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_shoot
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 241 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Attack:"
|
||||
cvar "+attack"
|
||||
rect 99 50 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Previous Weapon:"
|
||||
cvar "weapprev"
|
||||
rect 99 70 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Next Weapon:"
|
||||
cvar "weapnext"
|
||||
rect 99 90 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Autoswitch:"
|
||||
cvar "cg_autoswitch"
|
||||
rect 99 110 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Gauntlet:"
|
||||
cvar "weapon 1"
|
||||
rect 99 130 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Machinegun:"
|
||||
cvar "weapon 2"
|
||||
rect 99 150 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Shotgun:"
|
||||
cvar "weapon 3"
|
||||
rect 99 170 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Grenade Launcher:"
|
||||
cvar "weapon 4"
|
||||
rect 99 190 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Rocket Launcher:"
|
||||
cvar "weapon 5"
|
||||
rect 99 210 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Lightning Gun:"
|
||||
cvar "weapon 6"
|
||||
rect 99 230 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Railgun:"
|
||||
cvar "Weapon 7"
|
||||
rect 99 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Plasma Gun:"
|
||||
cvar "weapon 8"
|
||||
rect 99 270 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "BFG:"
|
||||
cvar "weapon 9"
|
||||
rect 99 290 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Nail Gun:"
|
||||
cvar "weapon 11"
|
||||
rect 99 310 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Proximity Mine:"
|
||||
cvar "weapon 12"
|
||||
rect 99 330 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name shoot
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Chain Gun:"
|
||||
cvar "weapon 13"
|
||||
rect 99 350 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
text "Miscellaneous"
|
||||
type 1
|
||||
textscale .3
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 282 395 140 26
|
||||
textalign 1
|
||||
textalignx 70
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { hide grpControls ; show misc }
|
||||
mouseEnter { show message_misc ; setitemcolor ctr_miscellaneous backcolor .1 .37 .1 1 }
|
||||
mouseExit { hide message_misc ; setitemcolor ctr_miscellaneous backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 282 395 140 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 270 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ctr_miscellaneous
|
||||
group grpControlbutton
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 421 395 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Show Scores:"
|
||||
cvar "+scores"
|
||||
rect 99 50 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Use Item:"
|
||||
cvar "+button2"
|
||||
rect 99 75 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Gesture:"
|
||||
cvar "+button3"
|
||||
rect 99 100 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Chat:"
|
||||
cvar "messagemode"
|
||||
rect 99 125 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Team Chat:"
|
||||
cvar "messagemode2"
|
||||
rect 99 150 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Target Chat:"
|
||||
cvar "messagemode3"
|
||||
rect 99 175 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Attack Chat:"
|
||||
cvar "messagemode4"
|
||||
rect 99 200 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Senstivity:"
|
||||
cvarfloat "sensitivity" 5 1 30
|
||||
rect 99 225 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Invert Mouse:"
|
||||
cvar "ui_mousePitch"
|
||||
rect 99 250 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
action { uiScript update mousePitch }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Smooth Mouse:"
|
||||
cvar "m_filter"
|
||||
rect 99 275 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Next Team Member:"
|
||||
cvar "nextTeamMember"
|
||||
rect 99 300 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name misc
|
||||
group grpControls
|
||||
type ITEM_TYPE_BIND
|
||||
text "Next Team Order:"
|
||||
cvar "nextOrder"
|
||||
rect 99 325 256 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .3
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,199 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CREATE FAVORITE POPUP MENU \\
|
||||
|
||||
menuDef {
|
||||
name "createfavorite_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 204 122 235 235
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC { close createfavorite_popmenu ; open joinserver }
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
rect 0 0 235 235
|
||||
style 3
|
||||
background "ui/assets/mainpop.tga"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name window
|
||||
rect 47 47 144 144
|
||||
style 3
|
||||
background "centerconsole2"
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ENTER NAME AND ADDRESS //
|
||||
|
||||
itemDef {
|
||||
name name
|
||||
text "Name"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 1 62 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name name
|
||||
text "Name"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 0 61 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name nameEntry
|
||||
style 1
|
||||
maxchars 15
|
||||
text ":"
|
||||
textscale .25
|
||||
TYPE 4
|
||||
cvar "ui_favoriteName"
|
||||
rect 60 81 120 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .5
|
||||
visible 1
|
||||
mouseenter { setitemcolor nameentry backcolor 0 0 0 .75 }
|
||||
mouseexit { setitemcolor nameentry backcolor 0 0 0 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name address
|
||||
text "IP Address"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 1 112 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 0 0 0 1
|
||||
visible 1
|
||||
|
||||
}
|
||||
itemDef {
|
||||
name address
|
||||
text "IP Address"
|
||||
style 0
|
||||
decoration
|
||||
textscale .3
|
||||
rect 0 111 110 20
|
||||
textalign 1
|
||||
textalignx 117
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
itemDef {
|
||||
name addressEntry
|
||||
style 1
|
||||
maxchars 20
|
||||
maxPaintChars 12
|
||||
text ":"
|
||||
textscale .25
|
||||
TYPE 4
|
||||
maxchars 21
|
||||
cvar "ui_favoriteAddress"
|
||||
rect 60 131 120 20
|
||||
textalign 0
|
||||
textalignx 0
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
mouseenter { setitemcolor addressEntry backcolor 0 0 0 .75 }
|
||||
mouseexit { setitemcolor addressEntry backcolor 0 0 0 .25 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "Ok"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 103 158 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
uiScript CreateFavorite ;
|
||||
close createfavorite_popmenu ;
|
||||
open joinserver }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 103 158 30 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 97 158 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 132 158 7 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,459 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ CREDIT \\
|
||||
|
||||
menuDef {
|
||||
name "credit"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
soundloop ""
|
||||
onEsc { close credit ; open menu }
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
show grpidcredit ;
|
||||
hide grpoutcredit ;
|
||||
transition programming 0 0 640 30 0 80 640 30 20 10 ;
|
||||
transition artist 0 0 640 30 0 110 640 30 20 10 ;
|
||||
transition levelDesign 0 0 640 30 0 140 640 30 20 10 ;
|
||||
transition gameDesign 0 0 640 30 0 170 640 30 20 10 ;
|
||||
transition ceo 0 0 640 30 0 200 640 30 20 10 ;
|
||||
transition bizdev 0 0 640 30 0 230 640 30 20 10 ;
|
||||
transition idMom 0 0 640 30 0 260 640 30 20 10 ;
|
||||
transition devAssist 0 0 640 30 0 290 640 30 20 10 ;
|
||||
transition progAssist 0 0 640 30 0 340 640 30 20 10 ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name mappreview
|
||||
style 5
|
||||
cinematic "idlogo.roq"
|
||||
rect 0 0 640 480
|
||||
backcolor 1 1 1 .25
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name idcredit
|
||||
group grpidcredit
|
||||
rect 0 50 620 20
|
||||
style 1
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textstyle 6
|
||||
textscale .4
|
||||
text "id Software is:"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name programming
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 80 640 30
|
||||
textalign 1
|
||||
textstyle 6
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "PROGRAMMING: John Carmack, Robert Duffy, Jim Dose'"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name artist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 110 640 30
|
||||
textstyle 6
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "ART: Adrian Carmack, Kevin Cloud, Kenneth Scott, Seneca Menard, Fred Nilsson "
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 140 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "LEVEL DESIGN: Tim Willits, Christian Antkow, Paul Jaquays"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name gameDesign
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 170 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "GAME DESIGN: Graeme Devine"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name ceo
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 200 640 30
|
||||
textstyle 6
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "CEO: Todd Hollenshead"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name bizDev
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 230 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "BUSINESS DEVELOPMENT: Marty Stratton"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idMom
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 260 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "OFFICE MANAGER AND ID MOM: Donna Jackson"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name devAssist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 290 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "DEVELOPMENT ASSISTANCE: Eric Webb"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name progAssist
|
||||
group grpidcredit
|
||||
style 0
|
||||
rect 0 340 640 30
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textstyle 6
|
||||
textaligny 10
|
||||
textscale .333
|
||||
text "BOT AI & PROGRAMMING ASSISTANCE: Jan Paul van Waveren"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name outcreditbttn
|
||||
group grpidcredit
|
||||
rect 255 400 130 26
|
||||
type 1
|
||||
text "Additional Credit"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .25
|
||||
textalignx 65
|
||||
textaligny 20
|
||||
visible 0
|
||||
backcolor .37 .1 .1 1
|
||||
forecolor 1 1 1 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grpidcredit ;
|
||||
show grpoutcredit }
|
||||
mouseEnter { setitemcolor outcreditbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor outcreditbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 255 400 130 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 243 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 384 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
// OUTSIDE CREDIT //
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
rect 0 50 620 20
|
||||
style 1
|
||||
textalign 1
|
||||
textalignx 320
|
||||
textaligny 10
|
||||
textstyle 6
|
||||
textscale .4
|
||||
text "Additional Assistance"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style 1
|
||||
rect 75 100 620 15
|
||||
textalign 0
|
||||
textstyle 3
|
||||
textalignx 5
|
||||
textaligny 10
|
||||
textscale .25
|
||||
wrapped
|
||||
text"Additional Map Work by Ka'ai Cluney\r"
|
||||
"Additional Progamming by John Cash\r"
|
||||
"Character Models and Animation by Paul Steed\r"
|
||||
"Additional Model Work by Beau Anderson\r"
|
||||
"Motion Capture by Pyros Pictures, House of Moves, and LocoMotion Studios\r\r\r"
|
||||
"Sound Design by Soundelux Showorks\r"
|
||||
"Music by Sonic Mayhem (www.sonicmayhem.com)\r"
|
||||
"Music by Front Line Assembly\r\r\r"
|
||||
"Manual by William W. Connors\r"
|
||||
"Manual & Package Design by Focus2\r"
|
||||
"Portions of Team Arena based in part on the work of the Independent JPEG Group\r"
|
||||
"Font rendering performed by FreeType ( www.freetype.org )"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name idcreditbttn
|
||||
group grpoutcredit
|
||||
type 1
|
||||
rect 260 400 120 26
|
||||
text "id Credit"
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
textalign 1
|
||||
textscale .25
|
||||
textalignx 60
|
||||
textaligny 20
|
||||
visible 0
|
||||
backcolor .37 .1 .1 1
|
||||
forecolor 1 1 1 1
|
||||
action { play "sound/misc/kcaction.wav" ;
|
||||
hide grpoutcredit ;
|
||||
show grpidcredit }
|
||||
mouseEnter { setitemcolor idcreditbttn backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor idcreditbttn backcolor .37 .1 .1 1 }
|
||||
}
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 260 400 120 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 248 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name outcredit
|
||||
group grpoutcredit
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 379 400 13 26
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close credit ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; show message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; hide message_back }
|
||||
action { close credit ; open main }
|
||||
}
|
||||
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .416
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,255 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ DEFAULT MENU \\
|
||||
|
||||
menuDef {
|
||||
name "default_menu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 186 0 443 426
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
fadeout fadebox ;
|
||||
show grpdefault ;
|
||||
hide grpfinish }
|
||||
onEsc { close default_menu ; close setup_menu ; open main }
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name window
|
||||
group grpControlbutton
|
||||
rect 0 2 443 426
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "This will set your Controls,"
|
||||
rect 0 140 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "Graphics and game Options"
|
||||
rect 0 160 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "to their original defaults."
|
||||
rect 0 180 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name default
|
||||
group grpdefault
|
||||
style 0
|
||||
text "Are you sure?"
|
||||
rect 0 220 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
text "YES"
|
||||
group grpdefault
|
||||
type 1
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 135 250 70 26
|
||||
textalign 1
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
hide grpdefault ;
|
||||
show grpfinish ;
|
||||
uiScript resetDefaults }
|
||||
mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor yes backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 135 250 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 123 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name yes
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 204 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
text "No"
|
||||
group grpdefault
|
||||
type 1
|
||||
textscale .3
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/button_back.tga"
|
||||
rect 235 250 70 26
|
||||
textalign 1
|
||||
textalignx 35
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action { play "sound/misc/nomenu.wav" ;
|
||||
close default_menu ; open control_menu }
|
||||
mouseEnter { setitemcolor no backcolor .1 .37 .1 1 }
|
||||
mouseExit { setitemcolor no backcolor .37 .1 .1 1 }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/framebutton.tga"
|
||||
rect 235 250 70 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/leftbutton.tga"
|
||||
rect 223 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name no
|
||||
group grpdefault
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/rightbutton.tga"
|
||||
rect 304 250 13 26
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name finish_message
|
||||
group grpfinish
|
||||
style 0
|
||||
text "Your settings are now set"
|
||||
rect 0 160 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name finish_message
|
||||
group grpfinish
|
||||
style 0
|
||||
text "to their original default values."
|
||||
rect 0 180 443 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 221
|
||||
textaligny 20
|
||||
textscale .333
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,266 @@
|
|||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Fight \\
|
||||
|
||||
menuDef {
|
||||
name "demo"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
background "menuback_a"
|
||||
focusColor 1 .67 0 1
|
||||
style 1
|
||||
border 1
|
||||
onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
|
||||
playlooped "music/fla_mp03.wav" ;
|
||||
fadeout fadebox ; uiScript LoadDemos ;
|
||||
hide lightning ;
|
||||
hide accept_alt ;
|
||||
show accept ;
|
||||
hide back_alt ;
|
||||
show back ;
|
||||
hide grpmessage }
|
||||
onEsc { close demo ; open main }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// LEVEL SELECTION BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name levelbar
|
||||
style 2
|
||||
text "TEAM ARENA DEMOS"
|
||||
rect 0 16 640 40
|
||||
textstyle 6
|
||||
textscale 0.416
|
||||
textalign 1 // center
|
||||
textalignx 320 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 27
|
||||
forecolor 1 1 1 1
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name teamarenaimage
|
||||
style 3
|
||||
background "ui/assets/teamarenaimage.tga"
|
||||
rect 0 80 220 115
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name mappreview
|
||||
style 5
|
||||
cinematic "mpintro.roq"
|
||||
rect 20 195 200 150
|
||||
backcolor 1 1 1 .25
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef {
|
||||
name demolist
|
||||
rect 240 100 360 300
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_FILLED
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_DEMOS
|
||||
textalign 3
|
||||
textaligny 14
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 .5 .25
|
||||
outlinecolor .1 .1 .7 .5
|
||||
visible 1
|
||||
mouseEnter { fadein message_demos ; setitemcolor demolist bordercolor .7 0 0 1 }
|
||||
mouseExit { fadeout message_demos ; setitemcolor demolist bordercolor .5 .5 .5 .5 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
|
||||
itemDef {
|
||||
name gotobar
|
||||
style 2
|
||||
rect 0 430 640 30
|
||||
textscale 0.4
|
||||
textalign 0 // center
|
||||
textalignx 60 // x alignment point for text
|
||||
// use it to offset left/right text from the edge
|
||||
// or to center the text on a different point
|
||||
textaligny 21
|
||||
style 2
|
||||
border 4
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
bordersize 2
|
||||
backcolor 0 0 .75 0.5
|
||||
visible 1
|
||||
mouseEnter { setcolor backcolor .75 0 0 .5 }
|
||||
mouseExit { setcolor backcolor 0 0 .75 .5 }
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action { close demo ; open main }
|
||||
mouseEnter { hide back ; show back_alt ; fadein message_back }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name back_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/backarrow_alt.tga"
|
||||
rect 14 422 54 54
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
mouseExit { hide back_alt ; show back ; fadeout message_back }
|
||||
action { close demo ; open main }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
itemDef {
|
||||
name accept
|
||||
style 3
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
mouseEnter { show lightning ; hide accept ; show accept_alt ; show message_accept ; playlooped "sound/misc/loop_electricity_05.wav" }
|
||||
action { close demo }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name accept_alt
|
||||
style 3
|
||||
rect 572 422 54 54
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
action { close demo ; uiScript RunDemo }
|
||||
mouseExit { hide lightning ; hide accept_alt ; show accept ; hide message_accept ; playlooped "music/fla_mp03.wav" }
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 44 385 246 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
itemDef {
|
||||
name lightning
|
||||
style 3
|
||||
background lightningkc
|
||||
rect 345 385 246 128
|
||||
visible 0
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// MESSAGES //
|
||||
|
||||
itemDef {
|
||||
name message_back
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textstyle 1
|
||||
textalign 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Exit to Main Menu"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name message_accept
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "View Demo"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
itemDef {
|
||||
name message_demos
|
||||
group grpmessage
|
||||
style 0
|
||||
rect 320 430 128 30
|
||||
textalign 1
|
||||
textstyle 1
|
||||
textalignx 0
|
||||
textaligny 25
|
||||
textscale .4
|
||||
text "Select Recorded Game To View"
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 0
|
||||
}
|
||||
|
||||
itemDef {
|
||||
name fadebox
|
||||
style WINDOW_STYLE_FILLED
|
||||
background "ui/assets/fadebox.tga"
|
||||
forecolor 0 0 0 1
|
||||
backcolor 0 0 0 1
|
||||
rect 0 0 640 480
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue