First version.
This commit is contained in:
commit
ef1c2cc347
473 files changed
+305366
No files matched your search
@@ -0,0 +1,37 @@
|
||||
// config for the building status indicators that builders see
|
||||
// NOTES:
|
||||
// * all characters (text/icons) are square
|
||||
// * character size is derived totally from frameHeight and vertialMargin
|
||||
// * healthPadding is NOT used compensated for in the margins
|
||||
|
||||
frameShader "ui/assets/alien/buildstat/frame"
|
||||
frameWidth 150
|
||||
frameHeight 30
|
||||
|
||||
healthPadding 2
|
||||
healthSevereColor 0.24 0.02 0.02 1
|
||||
healthHighColor 0.32 0.04 0.04 1
|
||||
healthElevatedColor 0.40 0.06 0.06 1
|
||||
healthGuardedColor 0.48 0.08 0.08 1
|
||||
healthLowColor 0.56 0.10 0.10 1
|
||||
|
||||
// this gets drawn over frame and health, but numbers and icons go on top of it
|
||||
overlayShader "ui/assets/alien/buildstat/overlay"
|
||||
overlayWidth 156
|
||||
overlayHeight 36
|
||||
|
||||
// PERCENT of frameHeight to use for top/bottom margin of icons/text
|
||||
// value is for total of top and bottom margins
|
||||
// valid values between 0.0 and 1.0
|
||||
verticalMargin 0.5
|
||||
|
||||
// number of CHARS worth of space that should be used for left/right margins
|
||||
// value is for one side only
|
||||
// char width is determined by frameHeight and verticalMargin
|
||||
horizontalMargin 1.0
|
||||
|
||||
markedShader "ui/assets/alien/buildstat/mark"
|
||||
noPowerShader "ui/assets/alien/buildstat/nopower"
|
||||
|
||||
backColor 1.0 1.0 1.0 1
|
||||
foreColor 0.0 0.0 0.0 1
|
||||
@@ -0,0 +1,39 @@
|
||||
// config for the building status indicators that builders see
|
||||
// NOTES:
|
||||
// * all characters (text/icons) are square
|
||||
// * character size is derived totally from frameHeight and vertialMargin
|
||||
// * healthPadding is NOT used compensated for in the margins
|
||||
|
||||
frameShader "ui/assets/human/buildstat/frame"
|
||||
frameWidth 150
|
||||
frameHeight 30
|
||||
|
||||
healthPadding 2
|
||||
|
||||
// Homeworld Security Advisory System
|
||||
healthSevereColor 0.83 0.03 0.02 1
|
||||
healthHighColor 0.84 0.48 0.03 1
|
||||
healthElevatedColor 0.82 0.82 0.00 1
|
||||
healthGuardedColor 0.19 0.65 0.00 1
|
||||
healthLowColor 0.27 0.49 0.55 1
|
||||
|
||||
// this gets drawn over frame and health, but numbers and icons go on top of it
|
||||
overlayShader ""
|
||||
overlayWidth 160
|
||||
overlayHeight 40
|
||||
|
||||
// PERCENT of frameHeight to use for top/bottom margin of icons/text
|
||||
// value is for total of top and bottom margins
|
||||
// valid values between 0.0 and 1.0
|
||||
verticalMargin 0.5
|
||||
|
||||
// number of CHARS worth of space that should be used for left/right margins
|
||||
// value is for one side only
|
||||
// char width is determined by frameHeight and verticalMargin
|
||||
horizontalMargin 1.0
|
||||
|
||||
markedShader "ui/assets/human/buildstat/mark"
|
||||
noPowerShader "ui/assets/human/buildstat/nopower"
|
||||
|
||||
backColor 1.0 1.0 1.0 1
|
||||
foreColor 0.0 0.0 0.0 1
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "Connect"
|
||||
background "gfx/2d/load_screen"
|
||||
rect 0 0 640 480
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_FALSE
|
||||
style WINDOW_STYLE_SHADER
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
#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 47 47 144 144
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
// ENTER NAME AND ADDRESS //
|
||||
|
||||
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 10
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .2 .2 .2 .5
|
||||
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 10
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .2 .2 .2 .5
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name yes
|
||||
text "Ok"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_EMPTY
|
||||
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/menu1.wav";
|
||||
uiScript CreateFavorite;
|
||||
close createfavorite_popmenu;
|
||||
open joinserver
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,518 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ Server Creation \\
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "createserver"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .75 0 1
|
||||
outOfBoundsClick
|
||||
style 0
|
||||
|
||||
onOpen
|
||||
{
|
||||
uiScript loadArenas;
|
||||
hide accept_alt;
|
||||
show accept;
|
||||
hide back_alt;
|
||||
show back;
|
||||
hide grpmessage
|
||||
}
|
||||
|
||||
onEsc
|
||||
{
|
||||
close createserver;
|
||||
open joinserver
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name background
|
||||
rect 0 0 640 480
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 2 2 330 418
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor 1 1 1 .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 334 2 302 418
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor 1 1 1 .25
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// map selection
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mappreview
|
||||
style 0
|
||||
ownerdraw UI_STARTMAPCINEMATIC
|
||||
rect 7 7 320 240
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mappreview
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 6 6 322 242
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name maplist
|
||||
rect 6 252 322 164
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_ALLMAPS
|
||||
textalign 3
|
||||
textaligny 14
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
columns 1
|
||||
2 190 25 ITEM_ALIGN_LEFT
|
||||
}
|
||||
|
||||
|
||||
// SETTINGS //
|
||||
|
||||
// NORMAL //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
text "Host Name:"
|
||||
cvar "sv_hostname"
|
||||
maxChars 32
|
||||
maxPaintChars 20
|
||||
rect 420 30 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name normal
|
||||
group grpsettings
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Time Limit:"
|
||||
cvar "timelimit"
|
||||
rect 420 50 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
maxchars 4
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Maximum Players:"
|
||||
cvar "sv_maxclients"
|
||||
rect 420 70 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
maxchars 4
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Require Password:"
|
||||
cvar "g_needpassword"
|
||||
rect 420 90 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type 4
|
||||
text "Password:"
|
||||
cvar "g_password"
|
||||
rect 420 110 128 20
|
||||
maxchars 10
|
||||
maxPaintChars 10
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name normal
|
||||
group grpsettings
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Pure Server:"
|
||||
cvar "sv_pure"
|
||||
rect 420 160 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name normal
|
||||
group grpsettings
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Dedicated:"
|
||||
// dedicated is a special cvar in that as soon as it is set,
|
||||
// the game goes to console only so the ui catches this one specifically
|
||||
cvar "ui_dedicated"
|
||||
cvarFloatList { "No" 0 "LAN" 1 "Internet" 2 }
|
||||
rect 420 180 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Auto Download:"
|
||||
cvar "sv_allowdownload"
|
||||
rect 420 200 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Enable Voting:"
|
||||
cvar "g_allowvote"
|
||||
rect 420 220 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Minimum Ping:"
|
||||
cvar "sv_minping"
|
||||
rect 420 270 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
maxchars 4
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Maximum Ping:"
|
||||
cvar "sv_maxping"
|
||||
rect 420 290 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
maxchars 4
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Synchronous Client:"
|
||||
cvar "g_synchronousclients"
|
||||
rect 420 310 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Max Rate:"
|
||||
cvar "sv_maxrate"
|
||||
rect 420 330 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
maxchars 4
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Zombie Time:"
|
||||
cvar "sv_zombietime"
|
||||
rect 420 350 128 20
|
||||
maxchars 4
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name expert
|
||||
group grpsettings
|
||||
type ITEM_TYPE_NUMERICFIELD
|
||||
text "Reconnect Limit:"
|
||||
cvar "sv_reconnectlimit"
|
||||
maxchars 4
|
||||
rect 420 370 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 65
|
||||
textaligny 12
|
||||
textscale .36
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close createserver;
|
||||
open joinserver
|
||||
}
|
||||
|
||||
mouseEnter
|
||||
{
|
||||
hide back;
|
||||
show back_alt
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
text "Back"
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textaligny 36
|
||||
textalignx 60
|
||||
textscale .6
|
||||
|
||||
mouseExit
|
||||
{
|
||||
hide back_alt;
|
||||
show back
|
||||
}
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close createserver;
|
||||
open joinserver
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
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
|
||||
{
|
||||
hide accept;
|
||||
show accept_alt
|
||||
}
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close fight; //TA: no i don't know
|
||||
uiScript StartServer
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name accept_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
|
||||
text "Create"
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textaligny 36
|
||||
textalignx -70
|
||||
textscale .6
|
||||
|
||||
mouseExit
|
||||
{
|
||||
hide accept_alt;
|
||||
show accept
|
||||
}
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close fight; //TA: no i don't know
|
||||
uiScript StartServer
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+126
@@ -0,0 +1,126 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ ERROR \\
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "drop_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
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close drop_popmenu;
|
||||
open main
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 10 15 300 320
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name dropinfo
|
||||
rect 0 50 320 20
|
||||
text "Disconnected:"
|
||||
textalign 1
|
||||
textstyle 6
|
||||
textscale .333
|
||||
textalignx 160
|
||||
textaligny 23
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name dropinfo
|
||||
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 "OK"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 120 295 35 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close drop_popmenu;
|
||||
open main
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name reconnect
|
||||
text "Reconnect"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 165 295 55 26
|
||||
textalign 1
|
||||
textalignx 22
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
backcolor .37 .1 .1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
close drop_popmenu;
|
||||
exec "reconnect";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ ERROR \\
|
||||
|
||||
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
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close error_popmenu;
|
||||
open main
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 10 15 300 320
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
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_EMPTY
|
||||
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/menu1.wav";
|
||||
close error_popmenu;
|
||||
open main
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,245 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ FIND PLAYER 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 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 WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
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 55 53 245 20
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor .2 .2 .2 .5
|
||||
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 5
|
||||
textaligny 21
|
||||
textscale .3
|
||||
outlinecolor .2 .2 .2 .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 .2 .2 .2 .5
|
||||
border 1
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_FINDPLAYER
|
||||
visible 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 ITEM_ALIGN_LEFT
|
||||
40 40 10 ITEM_ALIGN_LEFT
|
||||
90 40 10 ITEM_ALIGN_LEFT
|
||||
135 40 20 ITEM_ALIGN_LEFT
|
||||
}
|
||||
|
||||
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_EMPTY
|
||||
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/menu1.wav";
|
||||
close findplayer_popmenu;
|
||||
open joinserver
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name search
|
||||
text "Search"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
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/menu1.wav";
|
||||
ui_script FindPlayer
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name join
|
||||
text "Join"
|
||||
type 1
|
||||
textscale .25
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#! /bin/sh
|
||||
|
||||
gcc -E infopanes.def.h | grep "^[^#].*" > infopanes.def
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// hud menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/tremulous_human_hud.menu" }
|
||||
loadMenu { "ui/tremulous_alien_builder_hud.menu" }
|
||||
loadMenu { "ui/tremulous_alien_general_hud.menu" }
|
||||
loadMenu { "ui/tremulous_default_hud.menu" }
|
||||
|
||||
loadMenu { "ui/teamscore.menu" }
|
||||
loadMenu { "ui/loading.menu" }
|
||||
}
|
||||
@@ -0,0 +1,417 @@
|
||||
#include "/home/tma/tremulous/src/game/tremulous.h"
|
||||
|
||||
#define CREDITS(X) text "Credits: " text X
|
||||
#define HUMAN_BCOST(X) text "Power: " text X
|
||||
#define ALIEN_BCOST(X) text "Sentience: " text X
|
||||
|
||||
//team menu
|
||||
|
||||
{
|
||||
name alienteam
|
||||
text "The Alien Team\n\n"
|
||||
text "The Aliens' strengths are in movement "
|
||||
text "and the ability to quickly construct new bases quickly. They possess a "
|
||||
text "range of abilities including basic melee attacks, movement-"
|
||||
text "crippling poisons and more."
|
||||
align left
|
||||
}
|
||||
|
||||
{
|
||||
name humanteam
|
||||
text "The Human Team\n\n"
|
||||
text "The humans are the masters of technology. Although their bases take "
|
||||
text "long to construct, their automated defense ensures they stay built. "
|
||||
text "A wide range of upgrades and weapons are available to the humans, each "
|
||||
text "contributing to eradicate the alien threat."
|
||||
align left
|
||||
}
|
||||
|
||||
{
|
||||
name spectateteam
|
||||
text "Watch the game without playing."
|
||||
}
|
||||
|
||||
{
|
||||
name autoteam
|
||||
text "Join the team with the least players."
|
||||
}
|
||||
|
||||
|
||||
//human items
|
||||
|
||||
{
|
||||
name rifleitem
|
||||
text "Rifle\n\n"
|
||||
text "Basic weapon. Cased projectile weapon, with a slow clip based "
|
||||
text "reload system.\n\n"
|
||||
text "Credits: Free"
|
||||
}
|
||||
|
||||
{
|
||||
name ckititem
|
||||
text "Construction kit\n\n"
|
||||
text "Used for building all basic structures. This includes "
|
||||
text "spawns, power and basic defense.\n\n"
|
||||
text "Credits: Free"
|
||||
}
|
||||
|
||||
{
|
||||
name ackititem
|
||||
text "Advanced Construction kit\n\n"
|
||||
text "Used for building advanced structures. This includes "
|
||||
text "combat computers and advanced defense.\n\n"
|
||||
text "Credits: Free"
|
||||
}
|
||||
|
||||
{
|
||||
name shotgunitem
|
||||
text "Shotgun\n\n"
|
||||
text "Close range weapon that is useful against larger foes. "
|
||||
text "It has a slow repeat rate, but can be devastatingly "
|
||||
text "effective.\n\n"
|
||||
CREDITS( SHOTGUN_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name chaingunitem
|
||||
text "Chain Gun\n\n"
|
||||
text "Belt drive, cased projectile weapon. It has a high "
|
||||
text "repeat rate but a wide firing angle and is therefore relatively "
|
||||
text "inaccurate.\n\n"
|
||||
CREDITS( CHAINGUN_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name flameritem
|
||||
text "Flamethrower\n\n"
|
||||
text "Sprays fire at its target. It is powered by compressed "
|
||||
text "gas. The relatively low rate of fire means this weapon is most "
|
||||
text "effective against static targets.\n\n"
|
||||
CREDITS( FLAMER_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name mdriveritem
|
||||
text "Mass Driver\n\n"
|
||||
text "A portable particle accelerator which causes minor "
|
||||
text "nuclear reactions at the point of impact. It has a very large "
|
||||
text "payload, but fires slowly.\n\n"
|
||||
CREDITS( MDRIVER_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name prifleitem
|
||||
text "Pulse Rifle\n\n"
|
||||
text "An energy weapon that fires pulses of concentrated energy at a fast "
|
||||
text "rate. It requires re-energising every 50 pulses.\n\n"
|
||||
CREDITS( PRIFLE_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name lcannonitem
|
||||
text "Lucifer Cannon\n\n"
|
||||
text "Similar to the pulse rifle, but more powerful. "
|
||||
text "Additionally, it has a secondary attack where energy can be charged "
|
||||
text "up to shoot a devastating ball of energy.\n\n"
|
||||
CREDITS( LCANNON_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name lgunitem
|
||||
text "Las Gun\n\n"
|
||||
text "Slightly more powerful than the basic rifle, but "
|
||||
text "instead of bullets it fires small packets of energy.\n\n"
|
||||
CREDITS( LASGUN_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name psawitem
|
||||
text "Pain Saw\n\n"
|
||||
text "Similar to a chainsaw, but instead of a chain "
|
||||
text "it has an electric arc capable of dealing a great deal of damage at "
|
||||
text "close range.\n\n"
|
||||
CREDITS( PAINSAW_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name grenitem
|
||||
text "Grenade\n\n"
|
||||
text "A small incendinary device ideal for damaging tightly packed "
|
||||
text "alien structures. Has a five second timer.\n\n"
|
||||
CREDITS( GRENADE_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name larmouritem
|
||||
text "Light Armour\n\n"
|
||||
text "Protective armour that helps to defend against light alien melee "
|
||||
text "attacks.\n\n"
|
||||
CREDITS( LIGHTARMOUR_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name helmetitem
|
||||
text "Helmet\n\n"
|
||||
text "In addition to protecting your head, the helmet provides a "
|
||||
text "scanner indicating the presence of any non-human lifeforms in your "
|
||||
text "immediate vicinity.\n\n"
|
||||
CREDITS( HELMET_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name battpackitem
|
||||
text "Battery Pack\n\n"
|
||||
text "Back-mounted battery pack that permits storage of one and a half "
|
||||
text "times the normal energy capacity for energy weapons.\n\n"
|
||||
CREDITS( BATTPACK_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name jetpackitem
|
||||
text "Jet Pack\n\n"
|
||||
text "Back-mounted jet pack that enables the user to fly to remote "
|
||||
text "locations. It is very useful against alien spawns in hard to reach "
|
||||
text "spots.\n\n"
|
||||
CREDITS( JETPACK_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name bsuititem
|
||||
text "Battle Suit\n\n"
|
||||
text "A full body armour that is highly effective at repelling alien attacks. "
|
||||
text "It allows the user to enter hostile situations with a greater degree "
|
||||
text "of confidence.\n\n"
|
||||
CREDITS( BSUIT_PRICE )
|
||||
}
|
||||
|
||||
{
|
||||
name ammoitem
|
||||
text "Ammunition\n\n"
|
||||
text "Ammunition for the currently held weapon.\n\n"
|
||||
text "Credits: Free"
|
||||
}
|
||||
|
||||
|
||||
//human structures
|
||||
|
||||
{
|
||||
name telenodebuild
|
||||
text "Telenode\n\n"
|
||||
text "The most basic human structure. It provides a means for "
|
||||
text "humans to enter the battle arena. Without any of these the humans "
|
||||
text "cannot spawn and defeat is imminent.\n\n"
|
||||
HUMAN_BCOST( HSPAWN_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name mgturretbuild
|
||||
text "Machine Gun Turret\n\n"
|
||||
text "Automated base defense that is effective against fast moving targets, but "
|
||||
text "does not cause much damage on its own and should "
|
||||
text "always be backed up by physical support.\n\n"
|
||||
HUMAN_BCOST( MGTURRET_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name armbuild
|
||||
text "Armoury\n\n"
|
||||
text "An essential part of the human base, providing a means "
|
||||
text "to upgrade the basic human. A range of upgrades and weapons are "
|
||||
text "available from the armoury, each with a price.\n\n"
|
||||
HUMAN_BCOST( ARMOURY_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name medistatbuild
|
||||
text "Medistation\n\n"
|
||||
text "A structure providing an automated healing energy that restores "
|
||||
text "the health of any human that stands inside it. It may only be used "
|
||||
text "by one person at a time.\n\n"
|
||||
HUMAN_BCOST( MEDISTAT_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name reactorbuild
|
||||
text "Reactor\n\n"
|
||||
text "All structures except the telenode rely on a reactor to operate."
|
||||
text "The reactor provides power for all the human structures either "
|
||||
text "directly or via repeaters. There can only be a single reactor.\n\n"
|
||||
}
|
||||
|
||||
{
|
||||
name dccbuild
|
||||
text "Defense Computer\n\n"
|
||||
text "A structure coordinating the action of base defense so that "
|
||||
text "defense is distributed evenly among the enemy. "
|
||||
text "This structure is required for building the Tesla Generator.\n\n"
|
||||
HUMAN_BCOST( DC_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name teslabuild
|
||||
text "Tesla Generator\n\n"
|
||||
text "A structure equipped with a strong electrical attack that always "
|
||||
text "hits its target. It is useful against larger aliens "
|
||||
text "and for consolidating basic defense.\n\n"
|
||||
HUMAN_BCOST( TESLAGEN_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name repeaterbuild
|
||||
text "Repeater\n\n"
|
||||
text "A power distributor that transmits power from the reactor "
|
||||
text "to remote locations, so that bases may be built far from the reactor.\n\n"
|
||||
}
|
||||
|
||||
//alien structures
|
||||
|
||||
{
|
||||
name eggpodbuild
|
||||
text "Egg\n\n"
|
||||
text "The most basic alien structure. It allows aliens to spawn "
|
||||
text "and protect the Overmind. Without any of these, the Overmind is left "
|
||||
text "nearly defenseless and defeat is imminent.\n\n"
|
||||
ALIEN_BCOST( ASPAWN_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name overmindbuild
|
||||
text "Overmind\n\n"
|
||||
text "A collective consciousness that controls all the "
|
||||
text "alien structures in its vicinity. It must be protected at all costs, "
|
||||
text "since its death will render alien structures defenseless."
|
||||
}
|
||||
|
||||
{
|
||||
name barricadebuild
|
||||
text "Barricade\n\n"
|
||||
text "Used to obstruct corridors and doorways, "
|
||||
text "hindering humans from threatening the spawns and Overmind.\n\n"
|
||||
ALIEN_BCOST( BARRICADE_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name acid_tubebuild
|
||||
text "Acid Tube\n\n"
|
||||
text "Ejects lethal poisonous "
|
||||
text "acid at an approaching human. These are highly effective when used in "
|
||||
text "conjunction with a trapper to hold the victim in place.\n\n"
|
||||
ALIEN_BCOST( ACIDTUBE_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name hivebuild
|
||||
text "Hive\n\n"
|
||||
text "Houses millions of tiny "
|
||||
text "insectoid aliens. When a human approaches this structure, the "
|
||||
text "insectoids attack.\n\n"
|
||||
ALIEN_BCOST( HIVE_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name trapperbuild
|
||||
text "Trapper\n\n"
|
||||
text "Fires a blob of adhesive spit at any non-alien in its "
|
||||
text "line of sight. This hinders their movement, making them an easy target "
|
||||
text "for other defensive structures or aliens.\n\n"
|
||||
ALIEN_BCOST( TRAPPER_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name boosterbuild
|
||||
text "Booster\n\n"
|
||||
text "Provides any alien with a poison ability on all its "
|
||||
text "attacks. In addition to the default attack damage, the victim loses "
|
||||
text "health over time unless they heal themselves with a medkit."
|
||||
text "The booster also increases the rate of health regeneration for "
|
||||
text "any nearby aliens.\n\n"
|
||||
ALIEN_BCOST( BOOSTER_BP )
|
||||
}
|
||||
|
||||
{
|
||||
name hovelbuild
|
||||
text "Hovel\n\n"
|
||||
text "An armoured shell used by the builder class to "
|
||||
text "hide in, while the alien base is under attack. It may be entered or "
|
||||
text "exited at any time."
|
||||
}
|
||||
|
||||
//alien classes
|
||||
|
||||
{
|
||||
name builderclass
|
||||
text "Granger\n\n"
|
||||
text "Responsible for building and maintaining all "
|
||||
text "the alien structures."
|
||||
}
|
||||
|
||||
{
|
||||
name builderupgclass
|
||||
text "Advanced Granger\n\n"
|
||||
text "Similar to the base Granger, "
|
||||
text "except that in addition to being able to build structures it has a "
|
||||
text "melee attack and the ability to crawl on walls."
|
||||
}
|
||||
|
||||
{
|
||||
name level0class
|
||||
text "Dretch\n\n"
|
||||
text "Has a lethal bite and the ability to crawl "
|
||||
text "on walls and ceilings."
|
||||
}
|
||||
|
||||
{
|
||||
name level1class
|
||||
text "Basilisk\n\n"
|
||||
text "Able to crawl on walls and ceilings. "
|
||||
text "Its melee attack is most effective when combined with the ability to "
|
||||
text "grab its foe."
|
||||
}
|
||||
|
||||
{
|
||||
name level1upgclass
|
||||
text "Advanced Basilisk\n\n"
|
||||
text "In addition to the basic Basilisk abilities, the Advanced "
|
||||
text "Basilisk sprays a poisonous gas which disorientaits any "
|
||||
text "nearby humans."
|
||||
}
|
||||
|
||||
{
|
||||
name level2class
|
||||
text "Marauder\n\n"
|
||||
text "Has a melee attack and the ability to jump off walls."
|
||||
text "This allows the Marauder to gather great speed in enclosed areas."
|
||||
}
|
||||
|
||||
{
|
||||
name level2upgclass
|
||||
text "Advanced Marauder\n\n"
|
||||
text "The Advanced Marauder has all the abilities of the base Marauder "
|
||||
text "including an area effect electric shock attack."
|
||||
}
|
||||
|
||||
{
|
||||
name level3class
|
||||
text "Dragoon\n\n"
|
||||
text "Possesses a melee attack and the pounce ability, which may "
|
||||
text "be used as an attack, or a means to reach a remote location inaccessible "
|
||||
text "from the ground."
|
||||
}
|
||||
|
||||
{
|
||||
name level3upgclass
|
||||
text "Advanced Dragoon\n\n"
|
||||
text "In addition to the basic Dragoon abilities, the Dragoon Upgrade has "
|
||||
text "3 barbs which may be used to attack humans from a distance."
|
||||
}
|
||||
|
||||
{
|
||||
name level4class
|
||||
text "Tyrant\n\n"
|
||||
text "Provides a healing aura in which nearby aliens regenerate health "
|
||||
text "faster than usual. As well as a melee attack, this class can charge "
|
||||
text "at enemy humans and structures, inflicting great damage."
|
||||
}
|
||||
|
||||
// graphic <top|bottom|left|right> <center|some numerical offset> <shadername> <width> <height>
|
||||
// graphic left center "gfx/blah" 64 128
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
#include "ui/menudef.h"
|
||||
{
|
||||
assetGlobalDef
|
||||
{
|
||||
font "fonts/font" 26 // font
|
||||
smallFont "fonts/smallfont" 20 // font
|
||||
bigFont "fonts/bigfont" 34 // 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"
|
||||
style WINDOW_STYLE_FILLED
|
||||
visible 0
|
||||
fullScreen 0
|
||||
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
|
||||
rect 0 0 640 48
|
||||
focusColor 1 .75 0 1
|
||||
disableColor .5 .5 .5 1
|
||||
backColor 0 0 0 1
|
||||
|
||||
onEsc
|
||||
{
|
||||
close ingame;
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name splashmodel
|
||||
rect 0 -10 640 66
|
||||
type ITEM_TYPE_MODEL
|
||||
style WINDOW_STYLE_FILLED
|
||||
asset_model "models/splash/splash_screen.md3"
|
||||
model_fovx 32.0
|
||||
model_fovy 3.8
|
||||
model_angle 180
|
||||
visible 1
|
||||
decoration
|
||||
backcolor 0 0 0 1
|
||||
}
|
||||
|
||||
itemdef
|
||||
{
|
||||
name game
|
||||
text "Game"
|
||||
rect 35 6 65 40
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 32
|
||||
textaligny 28
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open ingame_game
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name options
|
||||
text "Options"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 100 6 70 40
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 35
|
||||
textaligny 28
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open ingame_options
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leave
|
||||
text "Exit"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
//rect 220 6 50 40
|
||||
rect 170 6 50 40
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 25
|
||||
textaligny 28
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open ingame_leave
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/ingame.menu" }
|
||||
loadMenu { "ui/ingame_game.menu" }
|
||||
loadMenu { "ui/ingame_options.menu" }
|
||||
loadMenu { "ui/ingame_leave.menu" }
|
||||
}
|
||||
+3206
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,331 @@
|
||||
#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 160 56 128 125
|
||||
focusColor 1 .75 0 1
|
||||
onOpen
|
||||
{
|
||||
show grpMenu;
|
||||
hide grpConfirm
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leave
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 5 5 107 90
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_KCGRADIENT
|
||||
borderSize 2.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leave
|
||||
text "Main Menu"
|
||||
group grpMenu
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 0 20 128 20
|
||||
type 1
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
hide grpMenu;
|
||||
show leaveConfirm
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leave
|
||||
group grpMenu
|
||||
text "Restart"
|
||||
style WINDOW_STYLE_EMPTY
|
||||
type 1
|
||||
rect 0 40 128 20
|
||||
textalign 1
|
||||
textalignx 65
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
hide grpMenu;
|
||||
show restartConfirm
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leave
|
||||
group grpMenu
|
||||
type 1
|
||||
text "Quit"
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 0 60 128 20
|
||||
textalign 1
|
||||
textalignx 64
|
||||
textaligny 18
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
hide grpMenu;
|
||||
show quitConfirm
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// CONFIRMS //
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leaveConfirm
|
||||
text "Exit to"
|
||||
group grpConfirm
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 0 23 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 WINDOW_STYLE_EMPTY
|
||||
rect 0 40 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_EMPTY
|
||||
rect 18 70 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript leave
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leaveConfirm
|
||||
text "No"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 70 70 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
hide grpConfirm;
|
||||
show grpMenu
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name restartConfirm
|
||||
text "Want to"
|
||||
group grpConfirm
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 0 23 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 WINDOW_STYLE_EMPTY
|
||||
rect 0 40 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_EMPTY
|
||||
rect 18 70 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
exec "map_restart";
|
||||
close ingame_leave;
|
||||
close ingame
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name restartConfirm
|
||||
text "No"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 70 70 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
hide grpConfirm;
|
||||
show grpMenu
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name quitConfirm
|
||||
text "Want to"
|
||||
group grpConfirm
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 0 23 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 WINDOW_STYLE_EMPTY
|
||||
rect 0 40 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_EMPTY
|
||||
rect 18 70 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript quit
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name quitConfirm
|
||||
text "No"
|
||||
group grpConfirm
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 70 70 40 20
|
||||
textalign 1
|
||||
textalignx 20
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
hide grpConfirm;
|
||||
show grpMenu
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,687 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
|
||||
\\ Server Join \\
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "joinserver"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .75 0 1
|
||||
outOfBoundsClick
|
||||
style 0
|
||||
onOpen
|
||||
{
|
||||
uiScript InitServerList 3;
|
||||
hide accept_alt;
|
||||
show accept;
|
||||
hide back_alt;
|
||||
show back;
|
||||
hide grpmessage;
|
||||
uiScript UpdateFilter
|
||||
}
|
||||
|
||||
onEsc { uiScript closeJoin }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name background
|
||||
rect 0 0 640 480
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
// DATE AND MESSAGE OF THE DAY //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name datewindow
|
||||
rect 10 365 265 25
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 0 .15
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name messagewindow
|
||||
rect 275 365 355 25
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
bordercolor .5 .5 .5 1
|
||||
backcolor 0 0 0 .15
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name refreshdate
|
||||
ownerdraw UI_SERVERREFRESHDATE
|
||||
textscale .33
|
||||
rect 10 365 265 25
|
||||
textalign 0
|
||||
textalignx 10
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name messageoftheday
|
||||
ownerdraw UI_SERVERMOTD
|
||||
textscale .33
|
||||
rect 280 365 345 25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
|
||||
// VIEW OPTIONS //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name gametypefield
|
||||
style WINDOW_STYLE_EMPTY
|
||||
ownerdraw UI_NETSOURCE
|
||||
rect 26 20 128 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 22
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 .5 .5 .5
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav"
|
||||
}
|
||||
}
|
||||
|
||||
// BUTTONS //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name refreshSource
|
||||
text "Get New List"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .4
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 190 20 128 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 22
|
||||
backcolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript RefreshServers
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name refreshFilter
|
||||
text "Refresh List"
|
||||
textscale .4
|
||||
style WINDOW_STYLE_EMPTY
|
||||
type ITEM_TYPE_BUTTON
|
||||
rect 354 20 128 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 22
|
||||
backcolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript RefreshFilter
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name viewEmpty
|
||||
style WINDOW_STYLE_EMPTY
|
||||
type ITEM_TYPE_YESNO
|
||||
text "View Empty:"
|
||||
cvar "ui_browserShowEmpty"
|
||||
textscale .4
|
||||
rect 26 50 128 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 22
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 .5 .5 .5
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript RefreshFilter
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name viewFull
|
||||
style WINDOW_STYLE_EMPTY
|
||||
type ITEM_TYPE_YESNO
|
||||
text "View Full:"
|
||||
cvar "ui_browserShowFull"
|
||||
textscale .4
|
||||
rect 190 50 128 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 22
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 .5 .5 .5
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript RefreshFilter
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// map selection
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mappreview
|
||||
style 0
|
||||
ownerdraw UI_NETMAPCINEMATIC
|
||||
rect 502 5 128 96
|
||||
border 1
|
||||
bordercolor 0 .5 0 .5
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mappreview
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 502 5 128 96
|
||||
border 1
|
||||
bordercolor .5 .5 .5 .5
|
||||
visible 1
|
||||
}
|
||||
|
||||
// COLUMNS //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name serverColumn
|
||||
group grpColumn
|
||||
rect 10 130 365 232
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
backcolor 0 0 0 0
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mapColumn
|
||||
group grpColumn
|
||||
rect 375 130 125 232
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
backcolor 0 0 0 0
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name playerColumn
|
||||
group grpColumn
|
||||
rect 500 130 60 232
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
backcolor 0 0 0 0
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name pingColumn
|
||||
group grpColumn
|
||||
rect 560 130 52 232
|
||||
style WINDOW_STYLE_FILLED
|
||||
border 1
|
||||
backcolor 0 0 0 0
|
||||
bordersize 1
|
||||
bordercolor .5 .5 .5 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name serverlist
|
||||
rect 10 130 620 232
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_SERVERS
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
columns 4
|
||||
2 40 80 ITEM_ALIGN_LEFT
|
||||
375 40 20 ITEM_ALIGN_LEFT
|
||||
500 5 10 ITEM_ALIGN_LEFT
|
||||
560 20 20 ITEM_ALIGN_LEFT
|
||||
|
||||
doubleClick { uiScript JoinServer }
|
||||
}
|
||||
|
||||
|
||||
// SORT TABS //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name server
|
||||
group grpTabs
|
||||
text "Server Name"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .33
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 103 365 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 18
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript ServerSort 0;
|
||||
|
||||
setitemcolor grpColumn backcolor 0 0 0 0;
|
||||
setitemcolor serverColumn backcolor 0.3 1 1 0.5
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name map
|
||||
group grpTabs
|
||||
type ITEM_TYPE_BUTTON
|
||||
text "Map Name"
|
||||
textscale .33
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 375 103 125 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 18
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript ServerSort 1;
|
||||
|
||||
setitemcolor grpColumn backcolor 0 0 0 0;
|
||||
setitemcolor mapColumn backcolor 0.3 1 1 0.5
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name Players
|
||||
group grpTabs
|
||||
text "Players"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .33
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 500 103 60 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 18
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript ServerSort 2;
|
||||
|
||||
setitemcolor grpColumn backcolor 0 0 0 0;
|
||||
setitemcolor playerColumn backcolor 0.3 1 1 0.5
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name Ping
|
||||
group grpTabs
|
||||
text "Ping"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .33
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 560 103 70 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 18
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 1
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript ServerSort 3;
|
||||
|
||||
setitemcolor grpColumn backcolor 0 0 0 0;
|
||||
setitemcolor pingColumn backcolor 0.3 1 1 0.5
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name password
|
||||
text "Password"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .4
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 20 395 92 26
|
||||
textalign 1
|
||||
textalignx 46 // center
|
||||
textaligny 22
|
||||
backcolor 0 0 0 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open password_popmenu
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name createFavorite
|
||||
text "New Favorite"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .4
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 148 395 92 26
|
||||
textalign 1
|
||||
textalignx 46 // center
|
||||
textaligny 22
|
||||
backcolor 0 0 0 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open createfavorite_popmenu
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name addFavorite
|
||||
text "Add Favorite"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .4
|
||||
style WINDOW_STYLE_FILLED
|
||||
ownerdrawFlag UI_SHOW_NOTFAVORITESERVERS
|
||||
rect 276 395 92 26
|
||||
textalign 1
|
||||
textalignx 46 // center
|
||||
textaligny 22
|
||||
backcolor 0 0 0 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript addFavorite
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name delfavorite
|
||||
text "Del. Favorite"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .4
|
||||
style WINDOW_STYLE_FILLED
|
||||
ownerdrawFlag UI_SHOW_FAVORITESERVERS
|
||||
rect 276 395 92 26
|
||||
textalign 1
|
||||
textalignx 46 // center
|
||||
textaligny 22
|
||||
backcolor 0 0 0 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript DeleteFavorite;
|
||||
uiScript UpdateFilter
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name serverinfo
|
||||
text "Server Info"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .4
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 404 395 92 26
|
||||
textalign 1
|
||||
textalignx 46 // center
|
||||
textaligny 22
|
||||
backcolor 0 0 0 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open serverinfo_popmenu
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name findplayer
|
||||
text "Find Friend"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .4
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect 532 395 92 26
|
||||
textalign 1
|
||||
textalignx 46 // center
|
||||
textaligny 22
|
||||
backcolor 0 0 0 1
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open findplayer_popmenu
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name createServer
|
||||
text "Create Server"
|
||||
textscale .5
|
||||
style WINDOW_STYLE_EMPTY
|
||||
type ITEM_TYPE_BUTTON
|
||||
rect 254 436 128 26
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 24
|
||||
backcolor .5 .5 .5 .5
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close joinserver;
|
||||
open createserver
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// BACK BAR //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name back
|
||||
style 3
|
||||
background "ui/assets/backarrow.tga"
|
||||
rect 16 424 50 50
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close joinserver;
|
||||
open main
|
||||
}
|
||||
|
||||
mouseEnter
|
||||
{
|
||||
hide back;
|
||||
show back_alt
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
text "Back"
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textaligny 36
|
||||
textalignx 60
|
||||
textscale .6
|
||||
|
||||
mouseExit
|
||||
{
|
||||
hide back_alt;
|
||||
show back
|
||||
}
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close joinserver;
|
||||
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
|
||||
{
|
||||
hide accept;
|
||||
show accept_alt
|
||||
}
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript JoinServer
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name accept_alt
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 574 424 50 50
|
||||
background "ui/assets/forwardarrow_alt.tga"
|
||||
backcolor 0 0 0 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
forecolor 1 1 1 1
|
||||
visible 0
|
||||
type ITEM_TYPE_BUTTON
|
||||
|
||||
text "Join"
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textaligny 36
|
||||
textalignx -55
|
||||
textscale .6
|
||||
|
||||
mouseExit
|
||||
{
|
||||
hide accept_alt;
|
||||
show accept
|
||||
}
|
||||
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript JoinServer
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+193
@@ -0,0 +1,193 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
assetGlobalDef
|
||||
{
|
||||
cursor "ui/assets/3_cursor3" // 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" 26 // font
|
||||
smallFont "fonts/smallfont" 20 // font
|
||||
bigFont "fonts/bigfont" 34 // font
|
||||
}
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "Loading"
|
||||
rect 0 0 640 480
|
||||
fullScreen MENU_TRUE
|
||||
|
||||
itemDef
|
||||
{
|
||||
name background
|
||||
rect 0 0 640 480
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "levelname"
|
||||
rect 20 20 260 20
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_LEFT
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
textscale 0.4
|
||||
textaligny 28
|
||||
textalignx 0
|
||||
ownerdraw CG_LOAD_LEVELNAME
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "hostname"
|
||||
rect 20 100 260 20
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_LEFT
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
textscale 0.4
|
||||
textaligny 28
|
||||
textalignx 0
|
||||
ownerdraw CG_LOAD_HOSTNAME
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "motd"
|
||||
rect 20 180 260 20
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_LEFT
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
textscale 0.4
|
||||
textaligny 28
|
||||
textalignx 0
|
||||
ownerdraw CG_LOAD_MOTD
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "levelshot"
|
||||
rect 300 20 320 240
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
ownerdraw CG_LOAD_LEVELSHOT
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "media"
|
||||
rect 20 300 380 30
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1 1
|
||||
ownerdraw CG_LOAD_MEDIA
|
||||
align ITEM_ALIGN_CENTER
|
||||
textstyle ITEM_TEXTSTYLE_NEON
|
||||
textscale 0.5
|
||||
special 1.0
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "medialabel"
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textscale 0.6
|
||||
rect 420 300 200 40
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textaligny 28
|
||||
textalignx 0
|
||||
forecolor 0.0 0.8 1 1
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_LOAD_MEDIA_LABEL
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "buildables"
|
||||
rect 20 340 380 30
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1 1
|
||||
ownerdraw CG_LOAD_BUILDABLES
|
||||
align ITEM_ALIGN_CENTER
|
||||
textstyle ITEM_TEXTSTYLE_NEON
|
||||
textscale 0.5
|
||||
special 1.0
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "buildableslabel"
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textscale 0.6
|
||||
rect 420 340 200 40
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textaligny 28
|
||||
textalignx 0
|
||||
forecolor 0.0 0.8 1 1
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_LOAD_BUILDABLES_LABEL
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "charmodel"
|
||||
rect 20 380 380 30
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1 1
|
||||
ownerdraw CG_LOAD_CHARMODEL
|
||||
align ITEM_ALIGN_CENTER
|
||||
textstyle ITEM_TEXTSTYLE_NEON
|
||||
textscale 0.5
|
||||
special 1.0
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "charmodellabel"
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textscale 0.6
|
||||
rect 420 380 200 40
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textaligny 28
|
||||
textalignx 0
|
||||
forecolor 0.0 0.8 1 1
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_LOAD_CHARMODEL_LABEL
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "overall"
|
||||
rect 20 420 600 30
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1 1
|
||||
ownerdraw CG_LOAD_OVERALL
|
||||
align ITEM_ALIGN_CENTER
|
||||
textstyle ITEM_TEXTSTYLE_NEON
|
||||
textscale 0.5
|
||||
special 1.0
|
||||
}
|
||||
}
|
||||
}
|
||||
+163
@@ -0,0 +1,163 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
assetGlobalDef
|
||||
{
|
||||
font "fonts/font" 26 // font
|
||||
smallFont "fonts/smallfont" 20 // font
|
||||
bigFont "fonts/bigfont" 34 // 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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
menuDef
|
||||
{
|
||||
name main
|
||||
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 { uiScript stopRefresh ; playlooped "sound/ui/heartbeat.wav" }
|
||||
onESC { open quit_popmenu }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name background
|
||||
rect 0 0 640 480
|
||||
style WINDOW_STYLE_SHADER
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
background "ui/assets/mainmenu.jpg"
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name splashmodel
|
||||
rect 0 0 640 480
|
||||
type ITEM_TYPE_MODEL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
asset_model "models/splash/splash_screen.md3"
|
||||
model_fovx 32.0
|
||||
model_fovy 24.0
|
||||
model_angle 180
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mainmenu
|
||||
text "Play"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
rect 472 20 128 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .416
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close main;
|
||||
open joinserver
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mainmenu
|
||||
text "Options"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
textscale .416
|
||||
rect 472 40 128 20
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open simple_options
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mainmenu
|
||||
text "Mods"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
textscale .416
|
||||
rect 472 60 128 20
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
backcolor 0 0 0 0
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open mod
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name mainmenu
|
||||
text "Quit"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
rect 472 80 128 20
|
||||
textalignx 128
|
||||
textaligny 20
|
||||
textscale .416
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
open quit_popmenu
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name copyright
|
||||
text "Tremulous (C) 2005-2006 darklegion development"
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
textscale .25
|
||||
rect 0 440 640 40
|
||||
textalign 1
|
||||
textaligny 32
|
||||
textalignx 320
|
||||
forecolor .75 .75 .75 .75
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
}
|
||||
}
|
||||
+362
@@ -0,0 +1,362 @@
|
||||
|
||||
#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 ITEM_TEXTSTYLE_NEON 7 // 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_ALIENTEAM_LIST 0x05 // red team members
|
||||
#define FEEDER_HUMANTEAM_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
|
||||
|
||||
//TA: tremulous menus
|
||||
#define FEEDER_TREMTEAMS 0x10 //teams
|
||||
#define FEEDER_TREMALIENCLASSES 0x11 //alien classes
|
||||
#define FEEDER_TREMHUMANITEMS 0x12 //human items
|
||||
#define FEEDER_TREMHUMANARMOURYBUY 0x13 //human buy
|
||||
#define FEEDER_TREMHUMANARMOURYSELL 0x14 //human sell
|
||||
#define FEEDER_TREMALIENUPGRADE 0x15 //alien upgrade
|
||||
#define FEEDER_TREMALIENBUILD 0x16 //alien buildables
|
||||
#define FEEDER_TREMHUMANBUILD 0x17 //human buildables
|
||||
//TA: tremulous menus
|
||||
#define FEEDER_IGNORE_LIST 0x18 //ignored players
|
||||
|
||||
// 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
|
||||
|
||||
#define UI_SHOW_VOTEACTIVE 0x00002000
|
||||
#define UI_SHOW_CANVOTE 0x00004000
|
||||
#define UI_SHOW_TEAMVOTEACTIVE 0x00008000
|
||||
#define UI_SHOW_CANTEAMVOTE 0x00010000
|
||||
|
||||
#define UI_SHOW_NOTSPECTATING 0x00020000
|
||||
|
||||
// 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_HEALTH_BAR 92
|
||||
#define CG_PLAYER_HEALTH_CROSS 99
|
||||
#define CG_PLAYER_AMMO_ICON 5
|
||||
#define CG_PLAYER_AMMO_VALUE 6
|
||||
#define CG_PLAYER_CLIPS_VALUE 70
|
||||
#define CG_PLAYER_BUILD_TIMER 115
|
||||
#define CG_PLAYER_CREDITS_VALUE 71
|
||||
#define CG_PLAYER_BANK_VALUE 72
|
||||
#define CG_PLAYER_CREDITS_VALUE_NOPAD 106
|
||||
#define CG_PLAYER_BANK_VALUE_NOPAD 107
|
||||
#define CG_PLAYER_STAMINA 73
|
||||
#define CG_PLAYER_STAMINA_1 93
|
||||
#define CG_PLAYER_STAMINA_2 94
|
||||
#define CG_PLAYER_STAMINA_3 95
|
||||
#define CG_PLAYER_STAMINA_4 96
|
||||
#define CG_PLAYER_STAMINA_BOLT 97
|
||||
#define CG_PLAYER_BOOST_BOLT 112
|
||||
#define CG_PLAYER_CLIPS_RING 98
|
||||
#define CG_PLAYER_BUILD_TIMER_RING 113
|
||||
#define CG_PLAYER_SELECT 74
|
||||
#define CG_PLAYER_SELECTTEXT 75
|
||||
#define CG_PLAYER_WEAPONICON 111
|
||||
#define CG_PLAYER_WALLCLIMBING 103
|
||||
#define CG_PLAYER_BOOSTED 104
|
||||
#define CG_PLAYER_POISON_BARBS 105
|
||||
#define CG_PLAYER_ALIEN_SENSE 108
|
||||
#define CG_PLAYER_HUMAN_SCANNER 109
|
||||
#define CG_PLAYER_USABLE_BUILDABLE 110
|
||||
#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_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
|
||||
|
||||
//TA: loading screen
|
||||
#define CG_LOAD_LEVELSHOT 76
|
||||
#define CG_LOAD_MEDIA 77
|
||||
#define CG_LOAD_MEDIA_LABEL 78
|
||||
#define CG_LOAD_BUILDABLES 79
|
||||
#define CG_LOAD_BUILDABLES_LABEL 80
|
||||
#define CG_LOAD_CHARMODEL 81
|
||||
#define CG_LOAD_CHARMODEL_LABEL 82
|
||||
#define CG_LOAD_OVERALL 83
|
||||
#define CG_LOAD_LEVELNAME 84
|
||||
#define CG_LOAD_MOTD 85
|
||||
#define CG_LOAD_HOSTNAME 86
|
||||
|
||||
#define CG_FPS 87
|
||||
#define CG_FPS_FIXED 100
|
||||
#define CG_TIMER 88
|
||||
#define CG_TIMER_MINS 101
|
||||
#define CG_TIMER_SECS 102
|
||||
#define CG_SNAPSHOT 89
|
||||
#define CG_LAGOMETER 90
|
||||
#define CG_PLAYER_CROSSHAIRNAMES 114
|
||||
#define CG_STAGE_REPORT_TEXT 116
|
||||
#define CG_DEMO_PLAYBACK 117
|
||||
#define CG_DEMO_RECORDING 118
|
||||
|
||||
#define CG_CONSOLE 91
|
||||
#define CG_TUTORIAL 119
|
||||
#define CG_CLOCK 120
|
||||
|
||||
|
||||
|
||||
#define UI_OWNERDRAW_BASE 200
|
||||
#define UI_HANDICAP 200
|
||||
#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_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
|
||||
|
||||
//TA:
|
||||
//#define UI_DIALOG 257
|
||||
#define UI_TEAMINFOPANE 258
|
||||
#define UI_ACLASSINFOPANE 259
|
||||
#define UI_AUPGRADEINFOPANE 260
|
||||
#define UI_HITEMINFOPANE 261
|
||||
#define UI_HBUYINFOPANE 262
|
||||
#define UI_HSELLINFOPANE 263
|
||||
#define UI_ABUILDINFOPANE 264
|
||||
#define UI_HBUILDINFOPANE 265
|
||||
|
||||
#define UI_PLAYERLIST_SELECTION 266
|
||||
#define UI_TEAMLIST_SELECTION 267
|
||||
|
||||
#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
|
||||
@@ -0,0 +1,20 @@
|
||||
// menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/main.menu" }
|
||||
loadMenu { "ui/joinserver.menu" }
|
||||
loadMenu { "ui/options.menu" }
|
||||
loadMenu { "ui/createserver.menu" }
|
||||
loadMenu { "ui/mod.menu" }
|
||||
loadMenu { "ui/credit.menu" }
|
||||
loadMenu { "ui/connect.menu" }
|
||||
loadMenu { "ui/password.menu" }
|
||||
loadMenu { "ui/quit.menu" }
|
||||
loadMenu { "ui/addfilter.menu" }
|
||||
loadMenu { "ui/error.menu" }
|
||||
loadMenu { "ui/drop.menu" }
|
||||
loadMenu { "ui/serverinfo.menu" }
|
||||
loadMenu { "ui/findplayer.menu" }
|
||||
loadMenu { "ui/quitcredit.menu" }
|
||||
loadMenu { "ui/createfavorite.menu" }
|
||||
}
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ MOD \\
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "mod"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 160 120 320 240
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onEsc
|
||||
{
|
||||
close mod;
|
||||
open main
|
||||
}
|
||||
onOpen
|
||||
{
|
||||
uiScript loadMods
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 320 240
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name modlist
|
||||
rect 10 10 300 200
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_MODS
|
||||
textalign 3
|
||||
textaligny 14
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleClick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript RunMod
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name ok
|
||||
text "OK"
|
||||
type 1
|
||||
textscale .25
|
||||
rect 250 210 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close mod;
|
||||
uiScript RunMod
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name cancel
|
||||
text "Cancel"
|
||||
type 1
|
||||
textscale .25
|
||||
rect 280 210 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
close mod;
|
||||
open main
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+287
@@ -0,0 +1,287 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ FRONT END OPTIONS BOX \\
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "simple_options"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 200 80 240 320
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onEsc
|
||||
{
|
||||
close simple_options;
|
||||
open main
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 240 320
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_EDITFIELD
|
||||
style 0
|
||||
text "Name:"
|
||||
cvar "name"
|
||||
maxchars 26
|
||||
rect 50 20 192 15
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Video Quality:"
|
||||
cvar "ui_glCustom"
|
||||
cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 }
|
||||
rect 50 45 192 15
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript update "ui_glCustom"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
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 50 60 192 15
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript glCustom
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Video Brightness:"
|
||||
cvarfloat "r_gamma" 1 .5 2
|
||||
rect 50 75 192 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Effects Volume:"
|
||||
cvarfloat "s_volume" 0.7 0 1
|
||||
rect 50 110 192 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Music Volume:"
|
||||
cvarfloat "s_musicvolume" 0.25 0 1
|
||||
rect 50 130 192 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_YESNO
|
||||
text "OpenAL Sound:"
|
||||
cvar "s_useOpenAL"
|
||||
rect 50 145 192 15
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_SLIDER
|
||||
text "Mouse Sensitivity:"
|
||||
cvarfloat "sensitivity" 5 1 30
|
||||
rect 50 175 192 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Invert Mouse:"
|
||||
cvar "ui_mousePitch"
|
||||
rect 50 190 192 15
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript update ui_mousePitch
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_MULTI
|
||||
text "Network Connection:"
|
||||
cvar "rate"
|
||||
cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000 }
|
||||
rect 50 220 192 20
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
type ITEM_TYPE_YESNO
|
||||
text "Allow Auto Download:"
|
||||
cvar "cl_allowDownload"
|
||||
rect 50 235 192 15
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 64
|
||||
textaligny 12
|
||||
textscale .25
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
text "APPLY"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .25
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 95 255 30 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 15
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
exec "snd_restart" // includes vid_restart
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
textscale .25
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 125 255 20 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 10
|
||||
textaligny 15
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close simple_options;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
text "For further options please use the in-game options menu"
|
||||
style WINDOW_STYLE_EMPTY
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
textscale .25
|
||||
rect 0 300 240 40
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textaligny 0
|
||||
textalignx 120
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
#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 47 47 144 144
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
// PASSWORD //
|
||||
|
||||
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 60 106 120 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 10
|
||||
textaligny 16
|
||||
forecolor 1 1 1 1
|
||||
backcolor .2 .2 .2 .5
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name yes
|
||||
text "OK"
|
||||
type 1
|
||||
textscale .25
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 103 140 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close password_popmenu;
|
||||
open joinserver
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
// PTRC POPUP MENU //
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "ptrc_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 140 170 360 140
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close ptrc_popmenu
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 360 140
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
|
||||
// PTRC //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name confirm
|
||||
text "It seems that you disconnected during this game."
|
||||
style 0
|
||||
textscale .4
|
||||
textstyle 3
|
||||
rect 180 40 0 0
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name confirm
|
||||
text "Would you like to be restored to your previous state?"
|
||||
style 0
|
||||
textscale .4
|
||||
textstyle 3
|
||||
rect 180 65 0 0
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name yes
|
||||
text "YES"
|
||||
type 1
|
||||
textscale .25
|
||||
rect 80 96 20 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 10
|
||||
textaligny 14
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
uiScript PTRCRestore;
|
||||
close ptrc_popmenu
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name no
|
||||
text "NO"
|
||||
type 1
|
||||
textscale .25
|
||||
rect 260 96 20 20
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 10
|
||||
textaligny 14
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close ptrc_popmenu
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ QUIT POPUP MENU \\
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "quit_popmenu"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
rect 204 122 235 235
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 1
|
||||
popup
|
||||
onESC
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close quit_popmenu;
|
||||
open main
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 47 47 144 144
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
|
||||
// QUIT //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name confirm
|
||||
text "Quit Tremulous?"
|
||||
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
|
||||
rect 75 120 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close main;
|
||||
close quit_popmenu;
|
||||
open quitCredit
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
itemDef
|
||||
{
|
||||
name no
|
||||
text "NO"
|
||||
type 1
|
||||
textscale .25
|
||||
rect 128 120 30 26
|
||||
textalign 1
|
||||
textalignx 15
|
||||
textaligny 20
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close quit_popmenu;
|
||||
open main
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,430 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ QUIT CREDIT \\
|
||||
|
||||
menuDef
|
||||
{
|
||||
name "quitCredit"
|
||||
visible 0
|
||||
fullscreen 1
|
||||
rect 0 0 640 480
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
border 0
|
||||
onEsc
|
||||
{
|
||||
uiScript "quit"
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name exitclickbox
|
||||
style WINDOW_STYLE_SHADER
|
||||
rect 0 0 640 480
|
||||
type ITEM_TYPE_BUTTON
|
||||
visible 1
|
||||
backcolor 0 0 0 1
|
||||
background "ui/assets/credits_splash.jpg"
|
||||
action
|
||||
{
|
||||
close quitCredit;
|
||||
uiScript "quit"
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name topstripe
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect -5 -5 645 64
|
||||
visible 1
|
||||
backcolor 0 0 0 1
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.5
|
||||
borderColor 1 0 0 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name bottomstripe
|
||||
style WINDOW_STYLE_FILLED
|
||||
rect -5 416 645 485
|
||||
visible 1
|
||||
backcolor 0 0 0 1
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.5
|
||||
borderColor 1 0 0 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "creditstitle"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 320 48 1 1
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textalignx 0
|
||||
textaligny 0
|
||||
textscale 0.75
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "CREDITS"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit1left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 96 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Tim 'Timbo' Angus"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit1right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 96 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Programming and Direction"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit2left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 128 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Nick 'jex' Jansens"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit2right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 128 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Mapping, texturing and 2D artwork"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit3left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 160 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Robin 'OverFlow' Marshall"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit3right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 160 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Modelling, animation and mapping"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit4left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 192 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Jan 'Stannum' van der Weg"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit4right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 192 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Texturing and mapping"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit5left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 224 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Mike 'Veda' McInerney"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit5right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 224 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Modelling, animation and texturing"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit6left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 256 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Gordon 'Godmil' Miller"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit6right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 256 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Mapping"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit7left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 288 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "'Who-[Soup]'"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit7right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 288 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Mapping"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit8left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 320 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Tristan 'jhrx' Blease"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit8right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 320 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Mapping"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit9left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 352 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Paul 'MoP' Greveson"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit9right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 352 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Modelling and texturing"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "credit10left"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 384 1 1
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Chris 'Dolby' McCarthy"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 1 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "credit10right"
|
||||
group grpidcredit
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 630 384 1 1
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 10
|
||||
textscale 0.50
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
text "Sound"
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 1 0 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
\\ SERVER INFO 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 300 320
|
||||
style 1
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
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 ITEM_ALIGN_LEFT
|
||||
40 40 10 ITEM_ALIGN_LEFT
|
||||
90 40 10 ITEM_ALIGN_LEFT
|
||||
135 40 20 ITEM_ALIGN_LEFT
|
||||
}
|
||||
|
||||
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_EMPTY
|
||||
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/menu1.wav";
|
||||
close serverinfo_popmenu;
|
||||
open joinserver
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name refresh
|
||||
text "Refresh"
|
||||
type 1
|
||||
textscale .23
|
||||
group grpControlbutton
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 180 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/menu1.wav";
|
||||
uiScript ServerStatus
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,305 @@
|
||||
#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 //
|
||||
|
||||
// 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 alienteamname
|
||||
text "Aliens"
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textscale .5
|
||||
textaligny 26
|
||||
rect 20 78 306 23
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name stagereport
|
||||
align ITEM_ALIGN_CENTER
|
||||
textscale 0.4
|
||||
textaligny 24
|
||||
rect 14 78 612 23
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
ownerdraw CG_STAGE_REPORT_TEXT
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name humanteamname
|
||||
text "Humans"
|
||||
textalign ITEM_ALIGN_RIGHT
|
||||
textscale .5
|
||||
textaligny 26
|
||||
rect 620 78 0 23
|
||||
forecolor 1 1 1 1
|
||||
decoration
|
||||
visible 1
|
||||
}
|
||||
|
||||
// TEAM BARS //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leftteambar
|
||||
rect 14 112 307 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
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name rightteambar
|
||||
rect 320 112 306 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
|
||||
}
|
||||
|
||||
|
||||
// TEAM HEADINGS //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leftteamheadings
|
||||
text "Status Name Kills 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 Kills 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
|
||||
}
|
||||
|
||||
|
||||
// LIST //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name leftlist
|
||||
rect 14 136 306 222
|
||||
forecolor .75 .75 .75 1
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_ALIENTEAM_LIST
|
||||
notselectable
|
||||
columns 7
|
||||
5 15 1 ITEM_ALIGN_LEFT
|
||||
21 15 1 ITEM_ALIGN_LEFT
|
||||
7 30 5 ITEM_ALIGN_LEFT
|
||||
45 100 24 ITEM_ALIGN_LEFT
|
||||
172 20 4 ITEM_ALIGN_RIGHT
|
||||
209 20 4 ITEM_ALIGN_RIGHT
|
||||
247 20 4 ITEM_ALIGN_RIGHT
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name rightlist
|
||||
rect 320 136 306 222
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
type ITEM_TYPE_LISTBOX
|
||||
elementwidth 135
|
||||
elementheight 20
|
||||
textscale .25
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_HUMANTEAM_LIST
|
||||
notselectable
|
||||
columns 7
|
||||
5 15 1 ITEM_ALIGN_LEFT
|
||||
21 15 1 ITEM_ALIGN_LEFT
|
||||
7 30 5 ITEM_ALIGN_LEFT
|
||||
45 100 24 ITEM_ALIGN_LEFT
|
||||
172 20 4 ITEM_ALIGN_RIGHT
|
||||
209 20 4 ITEM_ALIGN_RIGHT
|
||||
247 20 4 ITEM_ALIGN_RIGHT
|
||||
}
|
||||
|
||||
|
||||
// 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 366 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 366 82 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
forecolor 1 1 1 1
|
||||
textscale .33
|
||||
textalignx 3
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 100 366 520 24
|
||||
style WINDOW_STYLE_FILLED
|
||||
forecolor 1 1 1 1
|
||||
textscale .33
|
||||
visible 1
|
||||
ownerdraw CG_SPECTATORS
|
||||
decoration
|
||||
}
|
||||
|
||||
// WINNAR //
|
||||
|
||||
itemDef
|
||||
{
|
||||
name winner
|
||||
rect 310 400 612 40
|
||||
type 4
|
||||
style 0
|
||||
text ""
|
||||
cvar ui_winner
|
||||
maxPaintChars 24
|
||||
textalign ITEM_ALIGN_CENTER
|
||||
textaligny 20
|
||||
textscale .5
|
||||
forecolor 1 1 1 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/tremulous_teamselect.menu" }
|
||||
loadMenu { "ui/tremulous_alienclass.menu" }
|
||||
loadMenu { "ui/tremulous_humanitem.menu" }
|
||||
|
||||
loadMenu { "ui/tremulous_alienbuild.menu" }
|
||||
loadMenu { "ui/tremulous_humanbuild.menu" }
|
||||
|
||||
loadMenu { "ui/tremulous_humanarmoury.menu" }
|
||||
|
||||
loadMenu { "ui/tremulous_humandialogs.menu" }
|
||||
loadMenu { "ui/tremulous_aliendialogs.menu" }
|
||||
|
||||
loadMenu { "ui/tremulous_alienupgrade.menu" }
|
||||
|
||||
loadMenu { "ui/ptrc.menu" }
|
||||
}
|
||||
@@ -0,0 +1,371 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
// team menu
|
||||
//
|
||||
// defines from ui_shared.h
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "alien_builder_hud"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 0 0 640 480
|
||||
|
||||
//CONSOLE
|
||||
itemDef
|
||||
{
|
||||
name "console"
|
||||
rect 8 8 560 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.4
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CONSOLE
|
||||
}
|
||||
|
||||
//TUTORIAL
|
||||
itemDef
|
||||
{
|
||||
name "tutorial"
|
||||
rect 8 250 640 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 0.35
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TUTORIAL
|
||||
}
|
||||
|
||||
//LAGOMETER
|
||||
itemDef
|
||||
{
|
||||
name "lagometer"
|
||||
rect 596 68 32 20
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_LAGOMETER
|
||||
}
|
||||
|
||||
//DEMO STATE
|
||||
itemDef
|
||||
{
|
||||
name "demoRecording"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_RECORDING
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "demoPlayback"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_PLAYBACK
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
}
|
||||
|
||||
//SELECT
|
||||
itemDef
|
||||
{
|
||||
name "select"
|
||||
rect 240 435 160 32
|
||||
visible 0
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_SELECT
|
||||
}
|
||||
|
||||
//////////////////
|
||||
//STATIC OBJECTS//
|
||||
//////////////////
|
||||
|
||||
//LEFT RING CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "left-ring-circle"
|
||||
rect 47.5 410 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//LEFT ARM
|
||||
itemDef
|
||||
{
|
||||
name "left-arm"
|
||||
rect 77 404.75 104 52.5
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/alien/left-arm.tga"
|
||||
}
|
||||
|
||||
//LEFT ARM CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "left-arm-circle"
|
||||
rect 150 417.5 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//RIGHT RING CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "right-ring-circle"
|
||||
rect 567 410 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//RIGHT ARM
|
||||
itemDef
|
||||
{
|
||||
name "right-arm"
|
||||
rect 459 404.75 104 52.5
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/alien/right-arm.tga"
|
||||
}
|
||||
|
||||
///////////////////
|
||||
//DYNAMIC OBJECTS//
|
||||
///////////////////
|
||||
|
||||
//BOLT
|
||||
itemDef
|
||||
{
|
||||
name "bolt"
|
||||
rect 52.5 412.5 15 20
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
background "ui/assets/alien/bolt.tga"
|
||||
ownerdraw CG_PLAYER_BOOST_BOLT
|
||||
}
|
||||
|
||||
//CROSS
|
||||
itemDef
|
||||
{
|
||||
name "cross"
|
||||
rect 155 422.5 15 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/cross.tga"
|
||||
}
|
||||
|
||||
//LEFT RING
|
||||
itemDef
|
||||
{
|
||||
name "left-ring"
|
||||
rect 7.25 369.5 90.5 106
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
background "ui/assets/alien/left-ring.tga"
|
||||
ownerdraw CG_PLAYER_BOOSTED
|
||||
}
|
||||
|
||||
//LEFT SPIKES
|
||||
itemDef
|
||||
{
|
||||
name "left-spikes"
|
||||
rect 18.5 381 59 83
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1.0
|
||||
background "ui/assets/alien/left-spikes.tga"
|
||||
ownerdraw CG_PLAYER_WALLCLIMBING
|
||||
}
|
||||
|
||||
//RIGHT RING
|
||||
itemDef
|
||||
{
|
||||
name "right-ring"
|
||||
rect 542.25 369.5 90.5 106
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
background "ui/assets/alien/right-ring.tga"
|
||||
ownerdraw CG_PLAYER_BOOSTED
|
||||
}
|
||||
|
||||
//RIGHT SPIKES
|
||||
itemDef
|
||||
{
|
||||
name "right-spikes"
|
||||
rect 562.5 381 59 83
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1.0
|
||||
background "ui/assets/alien/right-spikes.tga"
|
||||
ownerdraw CG_PLAYER_WALLCLIMBING
|
||||
}
|
||||
|
||||
//HEALTH
|
||||
itemDef
|
||||
{
|
||||
name "health"
|
||||
rect 78.5 421.5 60 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 .5
|
||||
ownerdraw CG_PLAYER_HEALTH
|
||||
}
|
||||
|
||||
//ALIEN CLASS ICON
|
||||
itemDef
|
||||
{
|
||||
name "alien-icon"
|
||||
rect 465 417.5 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.6
|
||||
ownerdraw CG_PLAYER_WEAPONICON
|
||||
}
|
||||
|
||||
//ORGANS
|
||||
itemDef
|
||||
{
|
||||
name "organs"
|
||||
rect 570.5 415.95 15 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 .5
|
||||
ownerdraw CG_PLAYER_CREDITS_VALUE_NOPAD
|
||||
}
|
||||
|
||||
//BUILD TIMER
|
||||
itemDef
|
||||
{
|
||||
name "buildtimer"
|
||||
rect 567 410 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 .5
|
||||
ownerdraw CG_PLAYER_BUILD_TIMER
|
||||
}
|
||||
|
||||
//BUILD POINTS
|
||||
itemDef
|
||||
{
|
||||
name "build-points"
|
||||
rect 483.5 421.5 60 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 .5
|
||||
ownerdraw CG_PLAYER_AMMO_VALUE
|
||||
}
|
||||
|
||||
//FPS
|
||||
itemDef
|
||||
{
|
||||
name "fps"
|
||||
rect 572 8 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_FPS
|
||||
}
|
||||
|
||||
//TIMER
|
||||
itemDef
|
||||
{
|
||||
name "timer"
|
||||
rect 572 38 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TIMER
|
||||
}
|
||||
|
||||
//CLOCK
|
||||
itemDef
|
||||
{
|
||||
name "clock"
|
||||
rect 572 90 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.25
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CLOCK
|
||||
}
|
||||
|
||||
//ALIENSENSE
|
||||
itemDef
|
||||
{
|
||||
name "aliensense"
|
||||
rect 20 20 600 400
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_ALIEN_SENSE
|
||||
}
|
||||
|
||||
//PLAYER NAME
|
||||
itemDef
|
||||
{
|
||||
name "playername"
|
||||
rect 200 275 240 25
|
||||
visible 1
|
||||
decoration
|
||||
textScale .5
|
||||
ownerdraw CG_PLAYER_CROSSHAIRNAMES
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,360 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
// team menu
|
||||
//
|
||||
// defines from ui_shared.h
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "alien_general_hud"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 0 0 640 480
|
||||
|
||||
//CONSOLE
|
||||
itemDef
|
||||
{
|
||||
name "console"
|
||||
rect 8 8 560 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.4
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CONSOLE
|
||||
}
|
||||
|
||||
//TUTORIAL
|
||||
itemDef
|
||||
{
|
||||
name "tutorial"
|
||||
rect 8 250 640 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 0.35
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TUTORIAL
|
||||
}
|
||||
|
||||
//LAGOMETER
|
||||
itemDef
|
||||
{
|
||||
name "lagometer"
|
||||
rect 596 68 32 20
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_LAGOMETER
|
||||
}
|
||||
|
||||
//DEMO STATE
|
||||
itemDef
|
||||
{
|
||||
name "demoRecording"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_RECORDING
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "demoPlayback"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_PLAYBACK
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
}
|
||||
|
||||
//SELECT
|
||||
itemDef
|
||||
{
|
||||
name "select"
|
||||
rect 240 435 160 32
|
||||
visible 0
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_SELECT
|
||||
}
|
||||
|
||||
//////////////////
|
||||
//STATIC OBJECTS//
|
||||
//////////////////
|
||||
|
||||
//LEFT RING CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "left-ring-circle"
|
||||
rect 47.5 410 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//LEFT ARM
|
||||
itemDef
|
||||
{
|
||||
name "left-arm"
|
||||
rect 77 404.75 104 52.5
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/alien/left-arm.tga"
|
||||
}
|
||||
|
||||
//LEFT ARM CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "left-arm-circle"
|
||||
rect 150 417.5 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//RIGHT RING CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "right-ring-circle"
|
||||
rect 567 410 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//RIGHT ARM
|
||||
itemDef
|
||||
{
|
||||
name "right-arm"
|
||||
rect 459 404.75 104 52.5
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/alien/right-arm.tga"
|
||||
}
|
||||
|
||||
///////////////////
|
||||
//DYNAMIC OBJECTS//
|
||||
///////////////////
|
||||
|
||||
//BLOB
|
||||
itemDef
|
||||
{
|
||||
name "blob"
|
||||
rect 479 419 57 18
|
||||
visible 1
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
background "ui/assets/alien/tremublob.tga"
|
||||
ownerdraw CG_PLAYER_POISON_BARBS
|
||||
}
|
||||
|
||||
//BOLT
|
||||
itemDef
|
||||
{
|
||||
name "bolt"
|
||||
rect 52.5 412.5 15 20
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
background "ui/assets/alien/bolt.tga"
|
||||
ownerdraw CG_PLAYER_BOOST_BOLT
|
||||
}
|
||||
|
||||
//CROSS
|
||||
itemDef
|
||||
{
|
||||
name "cross"
|
||||
rect 155 422.5 15 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/cross.tga"
|
||||
}
|
||||
|
||||
//LEFT RING
|
||||
itemDef
|
||||
{
|
||||
name "left-ring"
|
||||
rect 7.25 369.5 90.5 106
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
background "ui/assets/alien/left-ring.tga"
|
||||
ownerdraw CG_PLAYER_BOOSTED
|
||||
}
|
||||
|
||||
//LEFT SPIKES
|
||||
itemDef
|
||||
{
|
||||
name "left-spikes"
|
||||
rect 18.5 381 59 83
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1.0
|
||||
background "ui/assets/alien/left-spikes.tga"
|
||||
ownerdraw CG_PLAYER_WALLCLIMBING
|
||||
}
|
||||
|
||||
//RIGHT RING
|
||||
itemDef
|
||||
{
|
||||
name "right-ring"
|
||||
rect 542.25 369.5 90.5 106
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.5
|
||||
background "ui/assets/alien/right-ring.tga"
|
||||
ownerdraw CG_PLAYER_BOOSTED
|
||||
}
|
||||
|
||||
//RIGHT SPIKES
|
||||
itemDef
|
||||
{
|
||||
name "right-spikes"
|
||||
rect 562.5 381 59 83
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1.0
|
||||
background "ui/assets/alien/right-spikes.tga"
|
||||
ownerdraw CG_PLAYER_WALLCLIMBING
|
||||
}
|
||||
|
||||
//HEALTH
|
||||
itemDef
|
||||
{
|
||||
name "health"
|
||||
rect 78.5 421.5 60 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 .5
|
||||
ownerdraw CG_PLAYER_HEALTH
|
||||
}
|
||||
|
||||
//ALIEN CLASS ICON
|
||||
itemDef
|
||||
{
|
||||
name "alien-icon"
|
||||
rect 465 417.5 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 0.6
|
||||
ownerdraw CG_PLAYER_WEAPONICON
|
||||
}
|
||||
|
||||
//ORGANS
|
||||
itemDef
|
||||
{
|
||||
name "organs"
|
||||
rect 570.5 415.95 15 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 .5
|
||||
ownerdraw CG_PLAYER_CREDITS_VALUE_NOPAD
|
||||
}
|
||||
|
||||
//FPS
|
||||
itemDef
|
||||
{
|
||||
name "fps"
|
||||
rect 572 8 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_FPS
|
||||
}
|
||||
|
||||
//TIMER
|
||||
itemDef
|
||||
{
|
||||
name "timer"
|
||||
rect 572 38 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TIMER
|
||||
}
|
||||
|
||||
//CLOCK
|
||||
itemDef
|
||||
{
|
||||
name "clock"
|
||||
rect 572 90 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1.0 0.0 0.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.25
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CLOCK
|
||||
}
|
||||
|
||||
//ALIENSENSE
|
||||
itemDef
|
||||
{
|
||||
name "aliensense"
|
||||
rect 20 20 600 400
|
||||
visible 1
|
||||
decoration
|
||||
ownerdraw CG_PLAYER_ALIEN_SENSE
|
||||
}
|
||||
|
||||
//PLAYER NAME
|
||||
itemDef
|
||||
{
|
||||
name "playername"
|
||||
rect 200 275 240 25
|
||||
visible 1
|
||||
decoration
|
||||
textScale .5
|
||||
ownerdraw CG_PLAYER_CROSSHAIRNAMES
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_alienbuild"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 112 111 400 247
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
popup
|
||||
onOpen { uiScript LoadAlienBuilds; setFocus list }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 400 247
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "list"
|
||||
rect 8 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMALIENBUILD
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript BuildAlienBuildable;
|
||||
close tremulous_alienbuild
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name infopane
|
||||
ownerdraw UI_ABUILDINFOPANE
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 8 240 204
|
||||
textscale .33
|
||||
textalignx 6
|
||||
textaligny 12
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 305 218 34 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 12.5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript BuildAlienBuildable;
|
||||
close tremulous_alienbuild
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "Cancel"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 344 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3.8
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
close tremulous_alienbuild
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_alienclass"
|
||||
visible 1
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 112 111 400 247
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
popup
|
||||
onOpen { uiScript LoadAlienClasses; setFocus list }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 400 247
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "list"
|
||||
rect 8 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMALIENCLASSES
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript SpawnAsAlienClass;
|
||||
close tremulous_alienclass
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name infopane
|
||||
ownerdraw UI_ACLASSINFOPANE
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 8 240 204
|
||||
textscale .33
|
||||
textalignx 6
|
||||
textaligny 12
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "Back"
|
||||
text "< Back"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close tremulous_alienclass;
|
||||
open tremulous_teamselect
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 305 218 34 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 12.5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript SpawnAsAlienClass;
|
||||
close tremulous_alienclass
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "Cancel"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 344 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3.8
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
close tremulous_alienclass
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_alien_dialog"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 185 140 280 190
|
||||
focusColor 1 .75 0 1
|
||||
style WINDOW_STYLE_EMPTY
|
||||
popup
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 280 190
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name alien_dialog
|
||||
text "Error"
|
||||
type ITEM_TYPE_TEXT
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 115 10 50 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name alien_dialog
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 50 250 80
|
||||
cvar "ui_dialog"
|
||||
autowrapped
|
||||
textalignx 5
|
||||
textaligny 18
|
||||
textscale .33
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name alien_dialog
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 242 150 28 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close tremulous_alien_dialog
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_alienupgrade"
|
||||
visible 1
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 112 111 400 247
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
popup
|
||||
onOpen { uiScript LoadAlienUpgrades; setFocus list }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 400 247
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "list"
|
||||
rect 8 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMALIENUPGRADE
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript UpgradeToNewClass;
|
||||
close tremulous_alienupgrade
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name infopane
|
||||
ownerdraw UI_AUPGRADEINFOPANE
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 8 240 204
|
||||
textscale .33
|
||||
textalignx 6
|
||||
textaligny 12
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 305 218 34 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 12.5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript UpgradeToNewClass;
|
||||
close tremulous_alienupgrade
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "Cancel"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 344 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3.8
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
close tremulous_alienupgrade
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "default_hud"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 0 0 640 480
|
||||
|
||||
//CONSOLE
|
||||
itemDef
|
||||
{
|
||||
name "console"
|
||||
rect 8 8 560 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.4
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CONSOLE
|
||||
}
|
||||
|
||||
//TUTORIAL
|
||||
itemDef
|
||||
{
|
||||
name "tutorial"
|
||||
rect 8 250 640 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 0.35
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TUTORIAL
|
||||
}
|
||||
|
||||
//FPS
|
||||
itemDef
|
||||
{
|
||||
name "fps"
|
||||
rect 572 8 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_FPS
|
||||
}
|
||||
//TIMER
|
||||
itemDef
|
||||
{
|
||||
name "timer"
|
||||
rect 572 38 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TIMER
|
||||
}
|
||||
//CLOCK
|
||||
itemDef
|
||||
{
|
||||
name "clock"
|
||||
rect 572 90 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.25
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CLOCK
|
||||
}
|
||||
|
||||
//SNAPSHOT
|
||||
itemDef
|
||||
{
|
||||
name "snapshot"
|
||||
rect 8 196 200 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.4
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_SNAPSHOT
|
||||
}
|
||||
//LAGOMETER
|
||||
itemDef
|
||||
{
|
||||
name "lagometer"
|
||||
rect 596 68 32 20
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_LAGOMETER
|
||||
}
|
||||
//DEMO STATE
|
||||
itemDef
|
||||
{
|
||||
name "demoRecording"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_RECORDING
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "demoPlayback"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_PLAYBACK
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
}
|
||||
|
||||
//PLAYER NAME
|
||||
itemDef
|
||||
{
|
||||
name "playername"
|
||||
rect 200 275 240 25
|
||||
visible 1
|
||||
decoration
|
||||
textScale .5
|
||||
ownerdraw CG_PLAYER_CROSSHAIRNAMES
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,462 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
// team menu
|
||||
//
|
||||
// defines from ui_shared.h
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "human_hud"
|
||||
fullScreen MENU_FALSE
|
||||
visible MENU_TRUE
|
||||
rect 0 0 640 480
|
||||
|
||||
//CONSOLE
|
||||
itemDef
|
||||
{
|
||||
name "console"
|
||||
rect 8 8 560 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.4
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CONSOLE
|
||||
}
|
||||
|
||||
//TUTORIAL
|
||||
itemDef
|
||||
{
|
||||
name "tutorial"
|
||||
rect 8 250 640 180
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 0.35
|
||||
align ITEM_ALIGN_LEFT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TUTORIAL
|
||||
}
|
||||
|
||||
//LAGOMETER
|
||||
itemDef
|
||||
{
|
||||
name "lagometer"
|
||||
rect 596 68 32 20
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0 0.8 1 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_LAGOMETER
|
||||
}
|
||||
|
||||
//DEMO STATE
|
||||
itemDef
|
||||
{
|
||||
name "demoRecording"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 0 0 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_RECORDING
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
itemDef
|
||||
{
|
||||
name "demoPlayback"
|
||||
rect 596 120 32 32
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
textscale 0.3
|
||||
textalignx 1
|
||||
textaligny 0.5
|
||||
ownerdraw CG_DEMO_PLAYBACK
|
||||
background "ui/assets/forwardarrow.tga"
|
||||
}
|
||||
|
||||
//FPS
|
||||
itemDef
|
||||
{
|
||||
name "fps"
|
||||
rect 572 8 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_FPS
|
||||
}
|
||||
|
||||
//TIMER
|
||||
itemDef
|
||||
{
|
||||
name "timer"
|
||||
rect 572 38 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.3
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_TIMER
|
||||
}
|
||||
|
||||
//CLOCK
|
||||
itemDef
|
||||
{
|
||||
name "clock"
|
||||
rect 572 90 56 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.25
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_CLOCK
|
||||
}
|
||||
|
||||
//SNAPSHOT
|
||||
itemDef
|
||||
{
|
||||
name "snapshot"
|
||||
rect 8 196 200 22
|
||||
style WINDOW_STYLE_EMPTY
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 1 1 1 1
|
||||
align ITEM_ALIGN_RIGHT
|
||||
textalignx 0
|
||||
textaligny 18
|
||||
textscale 0.4
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
ownerdraw CG_SNAPSHOT
|
||||
}
|
||||
|
||||
//////////////////
|
||||
//STATIC OBJECTS//
|
||||
//////////////////
|
||||
|
||||
//LEFT CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "left-circle"
|
||||
rect 35 417.5 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//LEFT ARM
|
||||
itemDef
|
||||
{
|
||||
name "left-arm"
|
||||
rect 68.25 420 94.5 35
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/human/left-arm.tga"
|
||||
}
|
||||
|
||||
//CREDITS LABEL
|
||||
itemDef
|
||||
{
|
||||
name "credits-label"
|
||||
rect 508 403 7 7.5
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/human/credits.tga"
|
||||
}
|
||||
|
||||
//RIGHT CIRCLE
|
||||
itemDef
|
||||
{
|
||||
name "right-circle"
|
||||
rect 580 417.5 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/circle.tga"
|
||||
}
|
||||
|
||||
//RIGHT ARM
|
||||
itemDef
|
||||
{
|
||||
name "right-arm"
|
||||
rect 477.25 420 94.5 35
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/human/right-arm.tga"
|
||||
}
|
||||
|
||||
//RIGHT CAP
|
||||
itemDef
|
||||
{
|
||||
name "right-cap"
|
||||
rect 500 400 80 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/human/right-cap.tga"
|
||||
}
|
||||
|
||||
///////////////////
|
||||
//DYNAMIC OBJECTS//
|
||||
///////////////////
|
||||
|
||||
//BOLT
|
||||
itemDef
|
||||
{
|
||||
name "bolt"
|
||||
rect 40 420 15 20
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
background "ui/assets/human/bolt.tga"
|
||||
ownerdraw CG_PLAYER_STAMINA_BOLT
|
||||
}
|
||||
|
||||
//CROSS
|
||||
itemDef
|
||||
{
|
||||
name "cross"
|
||||
rect 137.5 430 15 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
background "ui/assets/neutral/cross.tga"
|
||||
ownerdraw CG_PLAYER_HEALTH_CROSS
|
||||
}
|
||||
|
||||
//STAMINA 1
|
||||
itemDef
|
||||
{
|
||||
name "stamina1"
|
||||
rect 34.5 403.5 9 11.5
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
background "ui/assets/human/stamina1.tga"
|
||||
ownerdraw CG_PLAYER_STAMINA_1
|
||||
}
|
||||
|
||||
//STAMINA 2
|
||||
itemDef
|
||||
{
|
||||
name "stamina2"
|
||||
rect 24 410.75 11.5 10.5
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
background "ui/assets/human/stamina2.tga"
|
||||
ownerdraw CG_PLAYER_STAMINA_2
|
||||
}
|
||||
|
||||
//STAMINA 3
|
||||
itemDef
|
||||
{
|
||||
name "stamina3"
|
||||
rect 20.75 423.5 10.5 7
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
background "ui/assets/human/stamina3.tga"
|
||||
ownerdraw CG_PLAYER_STAMINA_3
|
||||
}
|
||||
|
||||
//STAMINA 4
|
||||
itemDef
|
||||
{
|
||||
name "stamina4"
|
||||
rect 21 402.5 54 55
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
background "ui/assets/human/stamina4.tga"
|
||||
ownerdraw CG_PLAYER_STAMINA_4
|
||||
}
|
||||
|
||||
//RING
|
||||
itemDef
|
||||
{
|
||||
name "ring"
|
||||
// rect 20 402.5 55 55 // Guide for Stamina alignment
|
||||
rect 565 402.5 55 55
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
background "ui/assets/human/ring.tga"
|
||||
ownerdraw CG_PLAYER_CLIPS_RING
|
||||
}
|
||||
|
||||
//CREDITS
|
||||
itemDef
|
||||
{
|
||||
name "credits"
|
||||
rect 515 402 45 11.25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
ownerdraw CG_PLAYER_CREDITS_VALUE
|
||||
}
|
||||
|
||||
//HEALTH
|
||||
itemDef
|
||||
{
|
||||
name "health"
|
||||
rect 67 430 60 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 .5
|
||||
ownerdraw CG_PLAYER_HEALTH
|
||||
}
|
||||
|
||||
//WEAPON ICON
|
||||
itemDef
|
||||
{
|
||||
name "weapon"
|
||||
rect 482.5 425 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
ownerdraw CG_PLAYER_WEAPONICON
|
||||
}
|
||||
|
||||
//WEAPON SELECT TEXT
|
||||
itemDef
|
||||
{
|
||||
name "selecttext"
|
||||
rect 200 300 240 25
|
||||
visible 1
|
||||
decoration
|
||||
textScale .5
|
||||
ownerdraw CG_PLAYER_SELECTTEXT
|
||||
}
|
||||
|
||||
//AMMO
|
||||
itemDef
|
||||
{
|
||||
name "ammo"
|
||||
rect 494 430 60 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 .5
|
||||
ownerdraw CG_PLAYER_AMMO_VALUE
|
||||
}
|
||||
|
||||
//CLIPS
|
||||
itemDef
|
||||
{
|
||||
name "clips"
|
||||
rect 538 423 60 15
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 .5
|
||||
ownerdraw CG_PLAYER_CLIPS_VALUE
|
||||
}
|
||||
|
||||
//BUILD TIMER
|
||||
itemDef
|
||||
{
|
||||
name "buildtimer"
|
||||
rect 580 417.5 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 .5
|
||||
ownerdraw CG_PLAYER_BUILD_TIMER
|
||||
}
|
||||
|
||||
//USABLE
|
||||
itemDef
|
||||
{
|
||||
name "usable"
|
||||
rect 307.5 380 25 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 .5
|
||||
background "ui/assets/neutral/use.tga"
|
||||
ownerdraw CG_PLAYER_USABLE_BUILDABLE
|
||||
}
|
||||
|
||||
//SCANNER
|
||||
itemDef
|
||||
{
|
||||
name "scanner"
|
||||
rect 164 340 312 72
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 .5
|
||||
background "ui/assets/human/scanner.tga"
|
||||
ownerdraw CG_PLAYER_HUMAN_SCANNER
|
||||
}
|
||||
|
||||
//INVENTORY
|
||||
itemDef
|
||||
{
|
||||
name "inventory"
|
||||
rect 232.5 425 175 25
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.5
|
||||
ownerdraw CG_PLAYER_SELECT
|
||||
}
|
||||
|
||||
//SELECTED
|
||||
itemDef
|
||||
{
|
||||
name "selected"
|
||||
rect 306 424 27 27
|
||||
visible 1
|
||||
decoration
|
||||
forecolor 0.0 0.8 1.0 0.25
|
||||
style WINDOW_STYLE_SHADER
|
||||
background "ui/assets/neutral/selected.tga"
|
||||
}
|
||||
|
||||
//PLAYER NAME
|
||||
itemDef
|
||||
{
|
||||
name "playername"
|
||||
rect 200 275 240 25
|
||||
visible 1
|
||||
decoration
|
||||
textScale .5
|
||||
ownerdraw CG_PLAYER_CROSSHAIRNAMES
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_humanarmoury"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 44 111 544 247
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
popup
|
||||
onOpen
|
||||
{
|
||||
uiScript LoadHumanArmouryBuys;
|
||||
uiScript LoadHumanArmourySells;
|
||||
setFocus list
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 544 247
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "buylist"
|
||||
rect 8 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMHUMANARMOURYBUY
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript BuyFromArmoury
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "selllist"
|
||||
rect 400 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMHUMANARMOURYSELL
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript SellToArmoury
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name infopane
|
||||
ownerdraw UI_HBUYINFOPANE
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 8 240 204
|
||||
textscale .33
|
||||
textalignx 6
|
||||
textaligny 12
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "Close"
|
||||
text "Close"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 254 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close tremulous_humanarmoury
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "Buy"
|
||||
text "Buy >"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 12.5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript BuyFromArmoury
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "Sell"
|
||||
text "< Sell"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 344 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3.8
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript SellToArmoury
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_humanbuild"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 112 111 400 247
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
popup
|
||||
onOpen { uiScript LoadHumanBuilds; setFocus list }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 400 247
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "list"
|
||||
rect 8 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMHUMANBUILD
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript BuildHumanBuildable;
|
||||
close tremulous_humanbuild
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name infopane
|
||||
ownerdraw UI_HBUILDINFOPANE
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 8 240 204
|
||||
textscale .33
|
||||
textalignx 6
|
||||
textaligny 12
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 305 218 34 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 12.5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript BuildHumanBuildable;
|
||||
close tremulous_humanbuild
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "Cancel"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 344 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3.8
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
close tremulous_humanbuild
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_human_dialog"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 185 140 280 190
|
||||
focusColor 1 .75 0 1
|
||||
style WINDOW_STYLE_EMPTY
|
||||
popup
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 280 190
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name human_dialog
|
||||
text "Error"
|
||||
type ITEM_TYPE_TEXT
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 115 10 50 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name human_dialog
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 10 50 250 80
|
||||
cvar "ui_dialog"
|
||||
autowrapped
|
||||
textalignx 5
|
||||
textaligny 18
|
||||
textscale .33
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name human_dialog
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 242 150 28 20
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
close tremulous_human_dialog
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_humanitem"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 112 111 400 247
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
popup
|
||||
onOpen { uiScript LoadHumanItems; setFocus list }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 400 247
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "list"
|
||||
rect 8 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMHUMANITEMS
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript SpawnWithHumanItem;
|
||||
close tremulous_humanitem
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name infopane
|
||||
ownerdraw UI_HITEMINFOPANE
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 8 240 204
|
||||
textscale .33
|
||||
textalignx 6
|
||||
textaligny 12
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "Back"
|
||||
text "< Back"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu4.wav";
|
||||
close tremulous_humanitem;
|
||||
open tremulous_teamselect
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 305 218 34 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 12.5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript SpawnWithHumanItem;
|
||||
close tremulous_humanitem
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "Cancel"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 344 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3.8
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
close tremulous_humanitem
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
#include "ui/menudef.h"
|
||||
|
||||
{
|
||||
menuDef
|
||||
{
|
||||
name "tremulous_teamselect"
|
||||
visible 0
|
||||
fullscreen 0
|
||||
outOfBoundsClick
|
||||
rect 112 111 400 247
|
||||
focusColor 1 .75 0 1
|
||||
style 1
|
||||
popup
|
||||
onOpen { uiScript LoadTeams; setFocus list }
|
||||
|
||||
itemDef
|
||||
{
|
||||
name window
|
||||
rect 0 0 400 247
|
||||
style WINDOW_STYLE_FILLED
|
||||
backcolor 0 0 0 1
|
||||
visible 1
|
||||
decoration
|
||||
|
||||
border WINDOW_BORDER_FULL
|
||||
borderSize 1.0
|
||||
borderColor 0.5 0.5 0.5 1
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "list"
|
||||
rect 8 8 136 231
|
||||
type ITEM_TYPE_LISTBOX
|
||||
style WINDOW_STYLE_EMPTY
|
||||
elementwidth 120
|
||||
elementheight 20
|
||||
textscale .33
|
||||
elementtype LISTBOX_TEXT
|
||||
feeder FEEDER_TREMTEAMS
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
doubleclick
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript JoinTeam;
|
||||
close tremulous_teamselect
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name infopane
|
||||
ownerdraw UI_TEAMINFOPANE
|
||||
textstyle ITEM_TEXTSTYLE_NORMAL
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 152 8 240 204
|
||||
textscale .33
|
||||
textalignx 6
|
||||
textaligny 12
|
||||
border 1
|
||||
bordercolor 0.5 0.5 0.5 0.5
|
||||
forecolor 1 1 1 1
|
||||
backcolor 0.2 0.2 0.2 1
|
||||
outlinecolor 0.1 0.1 0.1 0.5
|
||||
visible 1
|
||||
decoration
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "OK"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 305 218 34 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 12.5
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu1.wav";
|
||||
uiScript JoinTeam;
|
||||
close tremulous_teamselect
|
||||
}
|
||||
}
|
||||
|
||||
itemDef
|
||||
{
|
||||
name "OKCancel"
|
||||
text "Cancel"
|
||||
type ITEM_TYPE_BUTTON
|
||||
style WINDOW_STYLE_EMPTY
|
||||
rect 344 218 50 21
|
||||
textalign ITEM_ALIGN_LEFT
|
||||
textalignx 3.8
|
||||
textaligny 18
|
||||
textscale .4
|
||||
forecolor 1 1 1 1
|
||||
backcolor .5 0 0 .25
|
||||
visible 1
|
||||
action
|
||||
{
|
||||
play "sound/misc/menu3.wav";
|
||||
close tremulous_teamselect
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user