Initial commit.

This commit is contained in:
Jim Gray
2013-04-04 14:32:05 -07:00
parent ba5c81da32
commit d71d53e8ec
2180 changed files with 1393544 additions and 1 deletions

File diff suppressed because it is too large Load Diff

21
base/ui/jamp/connect.menu Normal file
View File

@@ -0,0 +1,21 @@
{
menuDef {
name "Connect"
rect 0 0 640 480
fullScreen MENU_FALSE
visible MENU_FALSE
style WINDOW_STYLE_SHADER
itemDef
{
name miniFrame
rect 0 0 640 480
style WINDOW_STYLE_SHADER
background "menu/art/unknownmap_mp"
visible 1
decoration
}
}
}

3765
base/ui/jamp/controls.menu Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,222 @@
//----------------------------------------------------------------------------------------------
//
// PASSWORD POPUP MENU
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "createfavorite_popmenu"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 200 150 240 180
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 320
descY 314
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
popup
onOpen
{
setfocus addressEntry
}
onESC
{
play "sound/interface/esc.wav" ;
close createfavorite_popmenu
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 0 0 240 180
backcolor 0 0 .35 .9
forecolor 1 1 1 1
border 1
bordercolor 0 0 .8 1
visible 1
decoration
}
itemDef
{
name title_glow
group none
style WINDOW_STYLE_SHADER
rect 0 4 270 22
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 1
decoration
}
// SCREEN TITLE
itemDef
{
name title
text @MENUS_FAVORITE_SERVER_INFO
style WINDOW_STYLE_EMPTY
rect 5 5 220 20
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 110
textaligny 1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
//---------------------------------------------
// ENTER NAME AND ADDRESS
//---------------------------------------------
/*
itemDef
{
name nameTitle
text @MENUS_FAVE_NAME
style 0
decoration
font 1
textscale .8
rect 177 126 110 20
textalign ITEM_ALIGN_LEFT
textalignx 1
textaligny 3
forecolor 1 1 1 1
visible 1
}
itemDef
{
name nameEntry
style 1
maxchars 15
text @MENUS_BLANK_1
descText @MENUS_FAVE_NAME_DESC
font 1
textscale .8
TYPE 4
cvar "ui_favoriteName"
rect 265 126 150 20
textalign 0
textalignx -16
textaligny 3
forecolor 1 1 1 1
backcolor .25 .25 .25 .5
visible 1
mouseenter
{
setitemcolor nameEntry backcolor .25 .25 .25 .75
}
mouseexit
{
setitemcolor nameEntry backcolor .25 .25 .25 .5
}
}
*/
itemDef
{
name addressTitle
text @MENUS_ENTER_IP_ADDRESS
style 0
decoration
font 2
textscale .8
rect 10 35 220 20
textalign ITEM_ALIGN_CENTER
textalignx 110
textaligny 3
forecolor .549 .854 1 1
visible 1
}
itemDef
{
name addressEntry
style 1
maxPaintChars 21
text " "
descText @MENUS_INPUT_IP_ADDRESS_OF_SERVER
font 2
textscale .8
TYPE 4
maxchars 21
cvar "ui_favoriteAddress"
rect 10 59 220 20
textalign ITEM_ALIGN_LEFT
textalignx 42
textaligny -2
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
backcolor .25 .25 .25 .5
visible 1
mouseenter
{
setitemcolor addressEntry backcolor .25 .25 .25 .75
}
mouseexit
{
setitemcolor addressEntry backcolor .25 .25 .25 .5
}
}
itemDef
{
name doneText
text @MENUS_DONE
descText @MENUS_FINISHED_INPUTTING_INFO
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 20 110 200 30
textalign ITEM_ALIGN_CENTER
textalignx 100
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
uiScript CreateFavorite
close createfavorite_popmenu
}
mouseEnter
{
show button_glow
setitemrect button_glow 10 113 240 26
}
mouseExit
{
hide button_glow
}
}
}
}

File diff suppressed because it is too large Load Diff

441
base/ui/jamp/credits.menu Normal file
View File

@@ -0,0 +1,441 @@
// CREDITS MENU
{
menuDef
{
name "creditsMenu"
fullScreen MENU_TRUE // MENU_TRUE
rect 0 0 640 480 // Size and position of the menu
visible MENU_TRUE // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
appearanceIncrement 75 // In miliseconds
descX 375
descY 434
descScale 1
descColor .235 .882 .847 1 // Focus color for text and items
descAlignment ITEM_ALIGN_CENTER
onOpen
{
exec "music music/cairn_bay/impbasee_action" ;
setfocus newgamebutton ;
}
onClose
{
// exec "music music/cairn_bay/impbasee_explore" ;
}
onESC
{
play "sound/interface/button1.wav" ;
close all ;
open mainMenu ;
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name frame_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/menu1" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
// The saber glow on the left
itemDef
{
name saberglow
group none
style WINDOW_STYLE_SHADER
rect 15 0 60 480
background "gfx/menus/menu3" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
// The red saber glow on the left
itemDef
{
name saberglowr
group none
style WINDOW_STYLE_SHADER
rect 75 0 60 480
background "gfx/menus/menu3r" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
// The starwars logo on the top
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 143 12 470 93
background "gfx/menus/menu4" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
// The saber halo on the left
itemDef
{
name saberhalo
group none
style WINDOW_STYLE_SHADER
rect -255 -50 600 600
background "gfx/menus/menu2" // Frame
forecolor 0.7 0.7 0.7 1
visible 1
decoration
}
// The red saber halo on the left
itemDef
{
name saberhalor
group none
style WINDOW_STYLE_SHADER
rect -195 35 600 600
background "gfx/menus/menu2r" // Frame
forecolor 0.7 0.7 0.7 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// TOP MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 115 115 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef
{
name newgamebutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 115 115 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 0.9
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
forecolor 0.65 0.65 1 1
visible 1
mouseEnter
{
show newgamebutton_glow
}
mouseExit
{
hide newgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 245 115 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef
{
name loadgamebutton
group toprow
text @MENUS_RULES
descText @MENUS_GAME_DESCRIPTIONS
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 245 115 130 24
textaligny 0
font 3
textscale 0.9
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
forecolor 0.65 0.65 1 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open rulesgameMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 375 115 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef {
name controlsbutton
group toprow
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 375 115 130 24
font 3
textscale 0.9
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
backcolor 0 0 0 0
forecolor 0.65 0.65 1 1
visible 1
mouseEnter
{
show controlsbutton_glow
}
mouseExit
{
hide controlsbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open weaponSetupMenu
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 505 115 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef {
name setupbutton
group toprow
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 505 115 130 24
font 3
textscale 0.9
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
backcolor 0 0 0 0
forecolor 0.65 0.65 1 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open weaponSetupMenu
}
}
itemDef
{
name header_line
group toprow
style WINDOW_STYLE_SHADER
rect 125 136 500 4
background "gfx/menus/menu_line" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// EXIT button in lower left corner
itemDef
{
name exitgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 115 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 115 444 130 24
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 0.65 0.65 1 1
visible 1
mouseEnter
{
show exitgamebutton_glow
}
mouseExit
{
hide exitgamebutton_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
//----------------------------------------------------------------------------------------------
//
// CREDITS FIELDS
//
//----------------------------------------------------------------------------------------------
// Credits title
itemDef
{
name credits_title
group none
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_CREDITS
rect 150 145 450 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -1
forecolor 1 1 1 1
visible 1
// appearance_slot 2
decoration
}
itemDef
{
name confirm
group none
text @MENUS_TO_BE_DETERMINED
font 2
textscale 1
textstyle 3
rect 320 220 110 20
textalign ITEM_ALIGN_CENTER
textalignx 0
textaligny 0
decoration
forecolor .433 .703 .722 1
visible 1
// appearance_slot 2
}
}
}

553
base/ui/jamp/demo.menu Normal file
View File

@@ -0,0 +1,553 @@
//----------------------------------------------------------------------------------------------
// MAIN MENU
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "demo"
fullScreen MENU_TRUE
rect 0 0 640 480 // Size and position of the menu
visible MENU_TRUE // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
uiScript LoadDemos ;
}
onESC
{
play "sound/interface/menuroam.wav" ;
close all ;
open main ;
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 50 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// TOP MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 7 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name newgamebutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show newgamebutton_glow
}
mouseExit
{
hide newgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
}
// Big button "PLAYER PROFILE"
itemDef
{
name profilebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name profilebutton
group toprow
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show profilebutton_glow
}
mouseExit
{
hide profilebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open playerMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group toprow
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show controlsbutton_glow
}
mouseExit
{
hide controlsbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open controlsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name setupbutton
group toprow
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Credits hidden button
itemDef
{
name creditsbutton
group othermain
// text @CREDITS
descText @MENUS_SHOW_GAME_CREDITS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 200 144 256 256
font 2
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textalignx 46
backcolor 0 0 0 0
forecolor 0.65 0.65 1 1
visible 0
mouseEnter
{
}
mouseExit
{
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open creditsMenu
}
}
itemDef
{
name backButton
group none
style WINDOW_STYLE_SHADER
rect 10 444 200 32
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name back
text @MENUS_BACK
descText @MENUS_EXIT_TO_MAIN_MENU
type ITEM_TYPE_BUTTON
font 3
textscale 1.1
textstyle 0
style WINDOW_STYLE_FILLED
rect 59 444 130 24
textalign 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
mouseenter
{
show backButton
}
mouseexit
{
hide backButton
}
}
// EXIT button in lower left corner
itemDef
{
name exitgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 255 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show exitgamebutton_glow
}
mouseExit
{
hide exitgamebutton_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
///////////////////////////////////
// TITLE BAR
///////////////////////////////////
itemDef
{
name default_rulesheader
group rulesheader
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_DEMOS
rect 100 164 440 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -2
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name demolist
rect 40 183 560 200
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 20
//background "gfx/menus/menu_box1"
font 3
textscale .8
elementtype LISTBOX_TEXT
feeder FEEDER_DEMOS
textalign 3
textaligny 22
border 1
bordercolor 0 0 .6 1
outlinecolor .5 .5 .5 .5
forecolor .615 .615 .956 1
backcolor 0 0 .6 .5
visible 1
doubleclick
{
play "sound/interface/button1.wav" ;
close demo ;
uiScript RunDemo
}
}
itemDef
{
name beginButton
group none
style WINDOW_STYLE_SHADER
rect 245 390 150 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name begin
text @MENUS_PLAY_DEMO
descText @MENUS_BEGIN_PLAYING_THE_DEMO
type ITEM_TYPE_BUTTON
font 3
textscale 1
style WINDOW_STYLE_EMPTY
rect 245 390 150 30
textalignx 75 // Center
textaligny 1
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close demo ;
uiScript RunDemo
}
mouseEnter
{
show beginButton
}
mouseExit
{
hide beginButton
}
}
}
}

127
base/ui/jamp/error.menu Normal file
View File

@@ -0,0 +1,127 @@
{
\\ END OF GAME \\
menuDef
{
name "error_popmenu"
visible 0
fullscreen 0
rect 158 80 320 320
focusColor 1 1 1 1
style WINDOW_STYLE_FILLED
border 1
popup
outOfBoundsClick
onClose
{
uiScript clearError
}
onOpen
{
}
onESC
{
close error_popmenu ;
open main
}
itemDef
{
name window
rect 10 15 300 320
style WINDOW_STYLE_FILLED
backcolor .015 .015 .229 1
forecolor 0 0 0 1
border 1
bordercolor .988 .984 .121 1
bordersize 5
visible 1
decoration
}
itemDef
{
name errorinfo
rect 0 50 320 20
text @MENUS_ERROR
textalign ITEM_ALIGN_CENTER
textstyle 6
textscale 1
textalignx 160
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name errorinfo
rect 60 80 200 270
type ITEM_TYPE_TEXT
style WINDOW_STYLE_FILLED
textstyle 3
autowrapped
cvar "com_errorMessage"
textalign ITEM_ALIGN_CENTER
textalignx 90
textscale 1
forecolor 1 1 1 1
visible 1
decoration
}
// BUTTON //
//--------------------------------------------------------------------------------
// BUTTON
//--------------------------------------------------------------------------------
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 118 295 85 26
background "gfx/menus/menu_buttonback" forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name exit
group grpControlbutton
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 138 295 45 26
text @MENUS_OKAY
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 22
forecolor 1 .682 0 1
visible 1
action
{
play "sound/misc/nomenu.wav"
close error_popmenu
open main
}
mouseEnter
{
show button_glow
}
mouseExit
{
hide button_glow
}
}
}
}

View File

@@ -0,0 +1,351 @@
//----------------------------------------------------------------------------------------------
//
// FIND PLAYER POPUP MENU
//
// Screen for finding which server has a particular player
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "findplayer_popmenu"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 125 60 390 360
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 320
descY 400
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
popup
onOpen
{
uiScript FindPlayer
setfocus nameField
}
onESC
{
play "sound/interface/esc.wav" ;
close findplayer_popmenu
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 0 0 390 380
backcolor 0 0 .35 .9
forecolor 1 1 1 1
border 1
bordercolor 0 0 .8 1
visible 1
decoration
}
//---------------------------------------------
// TITLE
//---------------------------------------------
// title
itemDef
{
name screenTitle
text @MENUS_FIND_PLAYER
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
rect 25 5 340 20
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 170
textaligny 1
forecolor .549 .854 1 1
visible 1
decoration
}
//---------------------------------------------
// PLAYER NAME
//---------------------------------------------
itemDef
{
name nameTitle
text @MENUS_NAME1
style 0
decoration
font 2
textscale .9
rect 25 30 90 25
textalign ITEM_ALIGN_RIGHT
textalignx 85
textaligny 0
forecolor .549 .854 1 1
visible 1
}
itemDef
{
name nameEntry
style 1
descText @MENUS_INPUT_PLAYER_NAME
text @MENUS_BLANK_1
maxchars 15
font 2
textscale .9
type ITEM_TYPE_EDITFIELD
cvar "ui_findplayer"
rect 115 30 250 25
textalign ITEM_ALIGN_LEFT
textalignx 5
textaligny 0
forecolor 1 1 1 1
backcolor .25 .25 .25 .5
border 1
bordercolor .79 .64 .22 1
visible 1
action
{
ui_script FindPlayer
}
mouseenter
{
setitemcolor nameEntry backcolor .25 .25 .25 .75
}
mouseexit
{
setitemcolor nameEntry backcolor .25 .25 .25 .5
}
}
//---------------------------------------------
// LIST OF SERVER NAMES
//---------------------------------------------
itemDef
{
name serverNameList
rect 25 60 340 90
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 16
font 2
textscale .8
backcolor 0 0 0 0.5
outlinecolor .1 .1 .7 .5
border 1
bordersize 1
bordercolor .5 .5 .5 1
elementtype LISTBOX_TEXT
feeder FEEDER_FINDPLAYER
visible 1
textaligny 12
mouseenter
{
setitemcolor serverNameWindow bordercolor .7 0 0 1
}
mouseexit
{
setitemcolor serverNameWindow bordercolor .5 .5 .5 1
}
}
itemDef
{
name serverNameWindow
rect 25 60 340 90
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 serversFoundMsg
cvar "ui_playerServersFound"
type 0
style 0
background "gfx/menus/menu_blendbox"
rect 5 360 390 30
font 3
textscale .6
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny 1
forecolor .549 .854 1 1
visible 1
decoration
}
//---------------------------------------------
// LIST OF SERVER STATUS INFORMATION
//---------------------------------------------
itemDef
{
name serverInfoList
rect 25 160 340 150
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 16
font 2
textscale .7
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 120
40 40 180
90 40 180
135 40 180
mouseenter
{
setitemcolor serverInfowindow bordercolor .7 0 0 1
}
mouseexit
{
setitemcolor serverInfowindow bordercolor .5 .5 .5 1
}
}
itemDef
{
name serverInfowindow
rect 25 160 340 150
style 1
backcolor 0 0 0 0
forecolor 0 0 0 0
border 1
bordersize 1
bordercolor .5 .5 .5 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name search
text @MENUS_SEARCH_CAPS
descText @MENUS_SEARCH_DESC
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 15 310 120 30
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
ui_script FindPlayer
}
mouseEnter
{
show button_glow
setitemrect button_glow 15 312 150 26
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name doneText
text @MENUS_DONE_CAPS
descText @MENUS_DONE_DESC
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 135 310 120 30
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close findplayer_popmenu
}
mouseEnter
{
show button_glow
setitemrect button_glow 115 312 160 26
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name join
text @MENUS_JOIN_CAPS
descText @MENUS_JOIN_PLAYER_DESC
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 255 310 120 30
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
ui_script FoundPlayerJoinServer
}
mouseEnter
{
show button_glow
setitemrect button_glow 235 312 160 26
}
mouseExit
{
hide button_glow
}
}
}
}

35
base/ui/jamp/gameinfo.txt Normal file
View File

@@ -0,0 +1,35 @@
// Game type info
//
// description, g_gametype enum
//
// 0 - GT_FFA, // free for all
// 1 - GT_HOLOCRON, // ffa with holocrons
// 2 - GT_JEDIMASTER, // jedi master
// 3 - GT_DUEL, // one on one tournament
// 4 - GT_POWERDUEL,
// 5 - GT_SINGLE_PLAYER, // single player ffa
// 6 - GT_TEAM, // team ffa
// 7 - GT_SIEGE, // siege
// 8 - GT_CTF, // capture the flag
// 9 - GT_CTY, // capture the ysalimari
gametypes {
{ "Free For All" 0 }
{ "Duel" 3 }
{ "Power Duel" 4 }
{ "Team FFA" 6 }
{ "Siege" 7 }
{ "Capture the Flag" 8 }
}
joingametypes {
{ "All" -1 }
{ "Free For All" 0 }
{ "Duel" 3 }
{ "Power Duel" 4 }
{ "Team FFA" 6 }
{ "Siege" 7 }
{ "Capture the Flag" 8 }
}

604
base/ui/jamp/ingame.menu Normal file
View File

@@ -0,0 +1,604 @@
//-------------------------------------------
// INGAME MENU
//
// This is the main menu of the ingame menus.
//
//-------------------------------------------
{
assetGlobalDef
{
font "ergoec" 18 // font
smallFont "ocr_a" 18 // font
bigFont "anewhope" 20 // font
small2Font "arialnb" 14
cursor "cursor" // cursor
gradientBar "ui/assets/gradientbar2.tga" // gradient bar
itemFocusSound "sound/interface/menuroam.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
precacheSound
{
"sound/interface/choose_color.wav" ;
"sound/interface/choose_head.wav" ;
"sound/interface/choose_torso.wav" ;
"sound/interface/choose_saber.wav" ;
"sound/interface/choose_hilt.wav" ;
"sound/interface/choose_blade.wav" ;
"sound/interface/transition.wav" ;
"sound/interface/esc.wav" ;
"sound/interface/sub_select.wav" ;
}
}
menuDef
{
name "ingame"
visible 0
fullScreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 0 0 640 480
focusColor 1 1 1 1
disableColor 0.5 0.5 0.5 1
onOpen
{
uiScript setBotButton
}
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 32
background "gfx/menus/menu_top_mp"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name aboutButton
group none
style WINDOW_STYLE_SHADER
rect 5 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemdef
{
name about
text @MENUS_ABOUT
rect 5 0 70 32
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
open ingame_about
}
mouseenter
{
show aboutButton
}
mouseexit
{
hide aboutButton
}
}
itemDef
{
name joinButton
group none
style WINDOW_STYLE_SHADER
rect 75 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name join
text @MENUS_JOIN
cvarTest "ui_singleplayeractive"
disableCvar
{
"1"
}
rect 75 0 70 32
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
cvartest "g_gametype"
showcvar { "0", "1", "2", "3", "4", "5", "6", "8" }
action
{
play "sound/interface/button1.wav" ;
open ingame_join
}
mouseenter
{
show joinButton
}
mouseexit
{
hide joinButton
}
}
itemDef
{
name class
text @MENUS_JOIN
type 1
style WINDOW_STYLE_FILLED
rect 75 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
cvartest "g_gametype"
showcvar { "7" }
action
{
play "sound/interface/button1.wav" ;
open ingame_siegeclass
}
mouseenter
{
show joinButton
}
mouseexit
{
hide joinButton
}
}
itemDef
{
name playerButton
group none
style WINDOW_STYLE_SHADER
rect 145 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name player
text @MENUS_PROFILE_LOWER
type 1
style WINDOW_STYLE_FILLED
rect 145 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
cvartest "g_gametype"
showcvar { "0", "1", "2", "3", "4", "5", "6", "8" }
action
{
play "sound/interface/button1.wav" ;
open ingame_player
}
mouseenter
{
show playerButton
}
mouseexit
{
hide playerButton
}
}
itemDef
{
name objectivesButton
group none
style WINDOW_STYLE_SHADER
rect 145 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name objectives
text @MENUS_OBJECTIVES
type 1
style WINDOW_STYLE_FILLED
rect 145 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
cvartest "g_gametype"
showcvar { "7" }
action
{
play "sound/interface/button1.wav" ;
open ingame_objectives
}
mouseenter
{
show objectivesButton
}
mouseexit
{
hide objectivesButton
}
}
itemDef
{
name chatButton
group none
style WINDOW_STYLE_SHADER
rect 215 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name chat
text @MENUS_VOICE_CHAT
type 1
style WINDOW_STYLE_FILLED
rect 215 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
cvartest "g_gametype"
showcvar { "7" }
action
{
play "sound/interface/button1.wav" ;
open ingame_voicechat
}
mouseenter
{
show chatButton
}
mouseexit
{
hide chatButton
}
}
itemDef
{
name addBotButton
group none
style WINDOW_STYLE_SHADER
rect 215 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// do not change the name of this, the uiScript setBotButton looks
// for this item and turns it off if the gametype is siege
itemDef
{
name addBot
text @MENUS_ADD_BOT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
rect 215 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
cvarTest "sv_running"
disableCvar
{
"0"
}
action
{
play "sound/interface/button1.wav" ;
open ingame_addbot
}
mouseenter
{
show addBotButton
}
mouseexit
{
hide addBotButton
}
}
itemDef
{
name controlsButton
group none
style WINDOW_STYLE_SHADER
rect 285 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name controls
text @MENUS_CONTROLS2
type 1
style WINDOW_STYLE_FILLED
rect 285 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
open ingame_controls
}
mouseenter
{
show controlsButton
}
mouseexit
{
hide controlsButton
}
}
itemDef
{
name setupButton
group none
style WINDOW_STYLE_SHADER
rect 355 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name setup
text @MENUS_SETUP_INGAME
type 1
style WINDOW_STYLE_FILLED
rect 355 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
open ingame_setup
}
mouseenter
{
show setupButton
}
mouseexit
{
hide setupButton
}
}
itemDef
{
name voteButton
group none
style WINDOW_STYLE_SHADER
rect 425 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name vote
text @MENUS_VOTE
type 1
style WINDOW_STYLE_FILLED
cvarTest "ui_singleplayeractive"
disableCvar
{
"1"
}
rect 425 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
open ingame_vote
}
mouseenter
{
show voteButton
}
mouseexit
{
hide voteButton
}
}
itemDef
{
name callvoteButton
group none
style WINDOW_STYLE_SHADER
rect 495 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name callvote
text @MENUS_CALL_VOTE
type 1
style WINDOW_STYLE_FILLED
cvarTest "ui_singleplayeractive"
disableCvar
{
"1"
}
rect 495 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
open ingame_callvote
}
mouseenter
{
show callvoteButton
}
mouseexit
{
hide callvoteButton
}
}
itemDef
{
name leaveButton
group none
style WINDOW_STYLE_SHADER
rect 565 0 70 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name leave
text @MENUS_EXIT_INGAME
type 1
style WINDOW_STYLE_FILLED
rect 565 0 70 32
font 2
textscale .8
textstyle 3
textalign ITEM_ALIGN_CENTER
textalignx 35
textaligny 2
forecolor 1 .682 0 1
backcolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
open ingame_leave
}
mouseenter
{
show leaveButton
}
mouseexit
{
hide leaveButton
}
}
}
}

View File

@@ -0,0 +1,300 @@
//----------------------------------------------------------------------------------------------
// INGAME ABOUT BOX
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "ingame_about"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 10 40 380 280
focusColor 1 .75 0 1
style 1
border 1
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 500 240
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name about
rect 10 5 360 20
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
type 4
text @MENUS_HOST_NAME
cvar "ui_about_hostname"
maxPaintChars 40
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -2
font 2
textscale 1
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name about
rect 10 40 360 20
style 0
type 4
text @MENUS_ADDRESS
cvar "cl_currentServerAddress"
maxPaintChars 24
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
forecolor 1 .682 0 1
font 2
textscale 1
visible 1
decoration
}
itemDef
{
name about
rect 10 60 360 20
type 4
style 0
text @MENUS_MAP_NAME
cvar "ui_about_mapname"
maxPaintChars 20
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
itemDef
{
name about
rect 10 80 360 20
style 0
//type 4
textalign ITEM_ALIGN_RIGHT
text @MENUS_TYPE
type ITEM_TYPE_MULTI
cvar "ui_about_gametype"
cvarFloatList
{
@MENUS_FREE_FOR_ALL 0
@MENUS_HOLOCRON_FFA 1
@MENUS_JEDI_MASTER 2
@MENUS_DUEL 3
@MENUS_POWERDUEL 4
@MENUS_TEAM_FFA 6
@MENUS_SIEGE 7
@MENUS_CAPTURE_THE_FLAG 8
@MENUS_CAPTURE_THE_YSALIMARI 9
}
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
backcolor 0 0 .75 .25
visible 1
decoration
}
itemDef
{
name about
rect 10 100 360 20
type 4
style 0
text @MENUS_MAXIMUM_PLAYERS
cvar "ui_about_maxclients"
maxPaintChars 12
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
itemDef
{
name about
rect 10 120 360 20
type 4
style 0
text @MENUS_TIME_LIMIT
maxPaintChars 12
cvar "ui_about_timelimit"
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
itemDef
{
name about
rect 10 140 360 20
type 4
style 0
text @MENUS_FRAG_LIMIT
cvarTest "ui_about_gametype"
hideCvar
{
"1" ;
"2" ;
"3" ;
"4" ;
"7" ;
"8" ;
"9" ;
}
maxPaintChars 12
cvar "ui_about_fraglimit"
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
itemDef
{
name about
rect 10 140 360 20
type 4
style 0
text @MENUS_CAPTURE_LIMIT
cvarTest "ui_about_gametype"
showCvar
{
"8" ;
"9" ;
}
maxPaintChars 12
cvar "ui_about_capturelimit"
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
itemDef
{
name about
rect 10 160 360 20
type 4
style 0
text @MENUS_DUEL_LIMIT
cvarTest "ui_about_gametype"
showCvar
{
"3" ;
"4" ;
}
maxPaintChars 12
cvar "ui_about_duellimit"
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
itemDef
{
name about
rect 10 180 360 20
type 4
maxPaintChars 4
style 0
text @MENUS_MINIMUM_PLAYERS
cvar "ui_about_botminplayers"
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -3
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
itemDef
{
name about
rect 10 210 360 20
type 4
style 0
text @MENUS_VERSION
cvar version
maxPaintChars 40
textalign ITEM_ALIGN_CENTER
textalignx 180
textaligny 14
font 4
textscale 1
forecolor 1 .682 0 1
visible 1
decoration
}
}
}

View File

@@ -0,0 +1,153 @@
//----------------------------------------------------------------------------------------------
// ADDBOT MENU
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "ingame_addbot"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 105 40 240 128
disableColor .5 .5 .5 1
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 240 128
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name gametypefield
style 0
text @MENUS_NAME1
ownerdraw UI_BOTNAME
rect 2 4 236 30
textalign ITEM_ALIGN_RIGHT
textalignx 80
textaligny 0
font 2
textscale .9
forecolor 1 .682 0 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name gametypefield
style 0
text @MENUS_TEAM
ownerdraw UI_REDBLUE
rect 2 34 236 30
textalign ITEM_ALIGN_RIGHT
textalignx 80
textaligny 0
font 2
textscale .9
forecolor 1 .682 0 1
cvarTest "g_gametype"
disableCvar
{
"0" ;
"1" ;
"2" ;
"3" ;
"4" ;
"5"
}
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name gametypefield
style 0
text @MENUS_SKILL1
ownerdraw UI_BOTSKILL
rect 2 64 236 30
textalign ITEM_ALIGN_RIGHT
textalignx 80
textaligny 0
font 2
textscale .9
forecolor 1 .682 0 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name okButton
group none
style WINDOW_STYLE_SHADER
rect 20 94 200 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name ok
text @MENUS_ADD_BOT
type 1
style WINDOW_STYLE_EMPTY
rect 20 94 200 30
textalignx 80
textaligny 2
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript addBot ;
uiScript closeingame
}
mouseEnter
{
show okButton
}
mouseExit
{
hide okButton
}
}
}
}

View File

@@ -0,0 +1,647 @@
\\ CALL VOTE MENU \\
{
menuDef
{
name "ingame_callvote"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 270 40 360 216
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 450
descY 210
descScale 1
descColor 1 .682 0 .8 // Focus color for text and items
descAlignment ITEM_ALIGN_CENTER
onopen
{
uiscript clearmouseover map ;
uiscript clearmouseover type ;
uiscript clearmouseover kick ;
hide doneButton ;
hide grpcallVote ;
show misc ;
uiScript loadArenas ;
setitemcolor grpbutton forecolor 1 .682 0 1 ;
setitemcolor miscbutton forecolor 1 1 1 1 ;
uiscript resetmaplist ;
}
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 360 210
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name playerconfigtitle
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_CALL_FOR_VOTES
rect 10 5 340 15
textalign ITEM_ALIGN_CENTER
textalignx 170
textaligny -2
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 3
textscale 0.8
forecolor .549 .854 1 1
border 0
bordercolor 0 0 0 0
visible 1
}
/* itemDef
{
name setup_background
style WINDOW_STYLE_SHADER
rect 112 35 245 135
background "gfx/menus/menu_box1" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
*/
itemDef
{
name setup_background2
group none
style WINDOW_STYLE_FILLED
rect 120 35 235 135
backcolor 0 0 .6 .5
forecolor 1 1 1 1
border 1
bordercolor 0 0 .6 1
visible 1
decoration
}
// DONE GLOW, used for several buttons
itemDef
{
name doneButton
group none
style WINDOW_STYLE_SHADER
rect 140 186 80 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// BUTTONS //
itemDef
{
name misc_glow
group glows
style WINDOW_STYLE_SHADER
rect 0 35 120 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name miscbutton
group grpbutton
text @MENUS_GENERAL
descText @MENUS_ADJUST_GAME_OPTIONS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 10 35 103 30
font 3
textscale 0.9
textalignx 100
textaligny 5
textstyle 3
textalign ITEM_ALIGN_RIGHT
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpCallVote ;
show misc ;
setitemcolor grpbutton forecolor 1 .682 0 1 ;
setitemcolor miscbutton forecolor 1 1 1 1 ;
}
mouseEnter
{
show misc_glow
}
mouseExit
{
hide misc_glow
}
}
itemDef
{
name gametype_glow
group glows
style WINDOW_STYLE_SHADER
rect 0 65 120 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name gametypebutton
group grpbutton
text @MENUS_GAMETYPE
descText @MENUS_START_A_DIFFERENT_TYPE
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 10 65 103 30
font 3
textscale 0.9
textalignx 100
textaligny 5
textstyle 3
textalign ITEM_ALIGN_RIGHT
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpCallVote ;
show type ;
setitemcolor grpbutton forecolor 1 .682 0 1 ;
setitemcolor gametypebutton forecolor 1 1 1 1 ;
}
forecolor .615 .615 .956 1
mouseEnter
{
show gametype_glow
}
mouseExit
{
hide gametype_glow
}
}
itemDef
{
name changemap_glow
group glows
style WINDOW_STYLE_SHADER
rect 0 95 120 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name changemapbutton
text @MENUS_MAP
descText @MENUS_CHANGE_TO_A_NEW_MAP
group grpbutton
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 10 95 103 30
font 3
textscale 0.9
textalignx 100
textaligny 5
textstyle 3
textalign ITEM_ALIGN_RIGHT
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpCallVote ;
show maplist ;
show map ;
setitemcolor grpbutton forecolor 1 .682 0 1 ;
setitemcolor changemapbutton forecolor 1 1 1 1 ;
}
mouseEnter
{
show changemap_glow
}
mouseExit
{
hide changemap_glow
}
}
itemDef
{
name kick_glow
group glows
style WINDOW_STYLE_SHADER
rect 0 125 120 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name kickbutton
group grpbutton
text @MENUS_KICK
descText @MENUS_BANISH_A_PLAYER_FROM
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 10 125 103 30
font 3
textscale 0.9
textalignx 100
textaligny 5
textstyle 3
textalign ITEM_ALIGN_RIGHT
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpCallVote ;
show kick ;
setitemcolor grpbutton forecolor 1 .682 0 1 ;
setitemcolor kickbutton forecolor 1 1 1 1 ;
}
mouseEnter
{
show kick_glow
}
mouseExit
{
hide kick_glow
}
}
//----------------------------------
// MISC VOTE PANEL
//----------------------------------
itemDef
{
name misc
text @MENUS_RESTART_MAP
descText @MENUS_BEGIN_VOTE_TO_RESTART
group grpCallVote
rect 112 35 245 30
type 1
textalign ITEM_ALIGN_CENTER
textalignx 122
textaligny 2
font 2
textscale 1
forecolor 1 .682 0 1
visible 0
action
{
play "sound/interface/button1.wav" ;
exec "cmd callvote map_restart" ;
uiScript closeingame
}
}
itemDef
{
name misc
group grpCallVote
text @MENUS_NEXT_MAP
descText @MENUS_BEGIN_VOTE_TO_CYCLE_TO
rect 112 65 245 30
type 1
textalign ITEM_ALIGN_CENTER
textalignx 122
textaligny 2
font 2
textscale 1
forecolor 1 .682 0 1
visible 0
action
{
play "sound/interface/button1.wav" ;
exec "cmd callvote nextmap" ;
uiScript closeingame
}
}
itemDef
{
name misc
group grpCallVote
text @MENUS_WARMUP
descText @MENUS_BEGIN_VOTE_TO_DO_A_WARMUP
rect 112 95 245 30
type 1
textalign ITEM_ALIGN_CENTER
textalignx 122
textaligny 2
font 2
textscale 1
forecolor 1 .682 0 1
visible 0
action
{
play "sound/interface/button1.wav" ;
exec "cmd callvote g_doWarmup 1" ;
uiScript closeingame
}
}
//----------------------------------
// GAMETYPE VOTE PANEL
//----------------------------------
itemDef
{
name type
group grpCallVote
text @MENUS_GAME_TYPE
descText @MENUS_SELECT_A_NEW_GAME_TYPE
style 0
ownerdraw UI_NETGAMETYPE
rect 120 65 230 30
textalign ITEM_ALIGN_RIGHT
textalignx 50
textaligny 2
font 2
textscale 1
forecolor 1 .682 0 1
visible 0
}
itemDef
{
name type
group grpCallVote
text @MENUS_OKAY
descText @MENUS_BEGIN_VOTE_FOR_THIS_GAME
type 1
style WINDOW_STYLE_FILLED
rect 140 186 80 30
textalign ITEM_ALIGN_CENTER
textalignx 40
textaligny 0
font 3
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript voteGame ;
uiScript closeingame
}
mouseEnter
{
show doneButton
}
mouseExit
{
hide doneButton
}
}
//----------------------------------
// MAP VOTE PANEL
//----------------------------------
itemDef
{
name map
group grpCallVote
text @MENUS_NEW_MAP
ownerdraw UI_ALLMAPS_SELECTION
rect 120 35 230 20
textalign 0
textalignx 5
textaligny -2
font 2
textscale .8
forecolor .549 .854 1 1
decoration
visible 0
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name maplist
group grpCallVote
descText @MENUS_SELECT_DESIRED_MAP
rect 120 55 230 108
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 15
elementtype LISTBOX_TEXT
feeder FEEDER_ALLMAPS
border 1
bordercolor 1 .682 0 .8
backcolor 0 0 .5 .25
outlinecolor .1 .1 .7 .5
visible 0
font 2
textaligny 12
textscale .8
forecolor .615 .615 .956 1
mouseEnter
{
fadein message_arena ;
setitemcolor map bordercolor .7 0 0 1
}
mouseExit
{
fadeout message_arena ;
setitemcolor map bordercolor .5 .5 .5 .5
}
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name map
text @MENUS_OKAY
descText @MENUS_BEGIN_VOTE_TO_SWITCH
type 1
group grpCallVote
style WINDOW_STYLE_FILLED
rect 140 186 80 30
textalign ITEM_ALIGN_CENTER
textalignx 40
textaligny 0
font 3
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript voteMap ;
uiScript closeingame
}
mouseEnter
{
show doneButton
}
mouseExit
{
hide doneButton
}
}
//----------------------------------
// KICK VOTE PANEL
//----------------------------------
itemDef
{
name kick
group grpCallVote
text @MENUS_KICK_PLAYER
rect 120 35 230 20
textalign 0
textalignx 5
textaligny -2
font 2
textscale .8
forecolor .549 .854 1 1
visible 0
decoration
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name kick
group grpCallVote
descText @MENUS_SELECT_PLAYER_TO_KICK
rect 120 55 230 108
style WINDOW_STYLE_FILLED
type ITEM_TYPE_LISTBOX
elementwidth 120
elementheight 15
elementtype LISTBOX_TEXT
feeder FEEDER_PLAYER_LIST
border 1
bordercolor 1 .682 0 .8
backcolor 0 0 .5 .25
outlinecolor .1 .1 .7 .5
font 2
textaligny 12
textscale .8
forecolor .615 .615 .956 1
visible 0
mouseEnter
{
fadein message_arena ;
setitemcolor kick bordercolor .7 0 0 1
}
mouseExit
{
fadeout message_arena ;
setitemcolor kick bordercolor .5 .5 .5 1
}
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name kick
text @MENUS_OKAY
descText @MENUS_BEGIN_VOTE_TO_BANISH
type 1
group grpCallVote
style WINDOW_STYLE_FILLED
rect 140 186 80 30
textalign ITEM_ALIGN_CENTER
textalignx 40
textaligny 0
font 3
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript voteKick ;
uiScript closeingame
}
mouseEnter
{
show doneButton
}
mouseExit
{
hide doneButton
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,393 @@
//----------------------------------------------------------------------------------------------
// INGAME_JOIN MENU
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "ingame_join"
visible 1
fullScreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 55 40 128 128
focusColor 1 1 1 1
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 128 128
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
//---------------------------------
// BUTTONS
//---------------------------------
itemDef
{
name button1
group buttons
style WINDOW_STYLE_SHADER
rect 2 4 124 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name button2
group buttons
style WINDOW_STYLE_SHADER
rect 2 34 124 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name button3
group buttons
style WINDOW_STYLE_SHADER
rect 2 64 124 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name button4
group buttons
style WINDOW_STYLE_SHADER
rect 2 94 124 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
//---------------------------------
// TEAM JOIN
//---------------------------------
itemDef
{
name team
text @MENUS_AUTO_TEAM
type 1
style 2
rect 2 4 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
cvarTest "ui_about_gametype"
showCvar
{
"6" ;
"7" ;
"8" ;
"9"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd team free" ;
uiScript closeingame
}
mouseEnter
{
show button1
}
mouseExit
{
hide button1
}
}
itemDef
{
name team
text @MENUS_TEAM_RED
type 1
style 2
rect 2 34 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 1 0.2 0.2 1
cvarTest "ui_about_gametype"
showCvar
{
"6" ;
"7" ;
"8" ;
"9"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd team red" ;
uiScript closeingame
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
itemDef
{
name team
text @MENUS_TEAM_BLUE
type 1
style 2
rect 2 64 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 0.2 0.2 1 1
cvarTest "ui_about_gametype"
showCvar
{
"6" ;
"7" ;
"8" ;
"9"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd team blue" ;
uiScript closeingame
}
mouseEnter
{
show button3
}
mouseExit
{
hide button3
}
}
itemDef
{
name team
text @MP_INGAME_JOIN_SINGLE
type 1
style 2
rect 2 34 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 1 0.2 0.2 1
cvarTest "ui_about_gametype"
showCvar
{
"4"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd duelteam single" ;
uiScript closeingame
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
itemDef
{
name team
text @MP_INGAME_JOIN_DOUBLE
type 1
style 2
rect 2 64 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 0.2 0.2 1 1
cvarTest "ui_about_gametype"
showCvar
{
"4"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd duelteam double" ;
uiScript closeingame
}
mouseEnter
{
show button3
}
mouseExit
{
hide button3
}
}
itemDef
{
name team
text @MENUS_SPECTATE
type 1
style 2
rect 2 94 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
cvarTest "ui_about_gametype"
showCvar
{
"6" ;
"7" ;
"8" ;
"9"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd team s" ;
uiScript closeingame
}
mouseEnter
{
show button4
}
mouseExit
{
hide button4
}
}
//---------------------------------
// NON-TEAM JOIN
//---------------------------------
itemDef
{
name team
text @MENUS_JOIN_GAME
type 1
style 2
rect 2 34 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
cvarTest "ui_about_gametype"
hideCvar
{
"4" ;
"6" ;
"7" ;
"8" ;
"9"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd team free" ;
uiScript closeingame
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
itemDef
{
name team
text @MENUS_SPECTATE
type 1
style 2
rect 2 64 124 30
textalign ITEM_ALIGN_CENTER
textalignx 62
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
cvarTest "ui_about_gametype"
hideCvar
{
"4" ;
"6" ;
"7" ;
"8" ;
"9"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "cmd team s" ;
uiScript closeingame
}
mouseEnter
{
show button3
}
mouseExit
{
hide button3
}
}
}
}

View File

@@ -0,0 +1,423 @@
\\ 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 474 40 156 100
focusColor 1 1 1 1
onOpen
{
show grpMenu ;
hide grpConfirm
}
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 156 100
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
//
// BUTTONS
//
itemDef
{
name button1
group buttons
style WINDOW_STYLE_SHADER
rect 2 5 152 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name button2
group buttons
style WINDOW_STYLE_SHADER
rect 2 35 152 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name button3
group buttons
style WINDOW_STYLE_SHADER
rect 2 65 152 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
//
// LEAVE MAIN MENU
//
itemDef
{
name leave
text @MENUS_MAIN_MENU
group grpMenu
style 2
type 1
rect 2 5 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpMenu ;
hide buttons ;
show leaveConfirm
}
mouseEnter
{
show button1
}
mouseExit
{
hide button1
}
}
itemDef
{
name leave
group grpMenu
text @MENUS_RESTART_MATCH
style 2
type 1
rect 2 35 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
cvarTest "cl_currentServerAddress"
enableCvar
{
"Localhost"
}
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpMenu ;
hide buttons ;
show restartConfirm
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
itemDef
{
name leave
group grpMenu
type 1
text @MENUS_QUIT_PROGRAM
style 2
rect 2 65 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpMenu ;
hide buttons ;
show quitConfirm
}
mouseEnter
{
show button3
}
mouseExit
{
hide button3
}
}
//---------------------------------
// MAIN MENU CONFIRM
//---------------------------------
itemDef
{
name leaveConfirm
text @MENUS_GO_TO_MAIN_MENU
group grpConfirm
style 2
rect 2 5 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor .549 .854 1 1
decoration
visible 1
}
itemDef
{
name leaveConfirm
text @MENUS_YES
group grpConfirm
type 1
style 0
rect 2 35 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript leave
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
itemDef
{
name leaveConfirm
text @MENUS_NO
group grpConfirm
type 1
style 0
rect 2 65 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpConfirm ;
show grpMenu
}
mouseEnter
{
show button3
}
mouseExit
{
hide button3
}
}
//---------------------------------
// RESTART MATCH CONFIRM
//---------------------------------
itemDef
{
name restartConfirm
text @MENUS_MATCH
group grpConfirm
style 2
rect 2 5 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor .549 .854 1 1
decoration
visible 1
}
itemDef
{
name restartConfirm
text @MENUS_YES
group grpConfirm
type 1
rect 2 35 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "map_restart" ;
close ingame_leave ;
close ingame
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
itemDef
{
name restartConfirm
text @MENUS_NO
group grpConfirm
type 1
rect 2 65 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpConfirm ;
show grpMenu
}
mouseEnter
{
show button3
}
mouseExit
{
hide button3
}
}
//---------------------------------
// RESTART MATCH CONFIRM
//---------------------------------
itemDef
{
name quitConfirm
text @MENUS_PROGRAM
group grpConfirm
style 2
rect 2 5 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor .549 .854 1 1
decoration
visible 1
}
itemDef
{
name quitConfirm
text @MENUS_YES
group grpConfirm
type 1
rect 2 35 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript quit
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
itemDef
{
name quitConfirm
text @MENUS_NO
group grpConfirm
type 1
rect 2 65 152 30
textalign ITEM_ALIGN_CENTER
textalignx 76
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide grpConfirm ;
show grpMenu
}
mouseEnter
{
show button3
}
mouseExit
{
hide button3
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,386 @@
{
\\ SETUP MENU \\
{
menuDef
{
name "ingame_orders"
visible 0
fullscreen 0
rect 45 30 200 240
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
focusColor 1 .75 0 1
style 1
border 1
disableColor .5 .5 .5 1
onopen
{
hide grpicon ;
show attack
}
itemDef
{
name window
rect 10 15 180 225
style 1
backcolor 0 .1 0 1
visible 1
decoration
}
itemDef
{
name orders
group grporders
text @MENUS_NAME
style 0
ownerdraw UI_SELECTEDPLAYER
// As cycle through playerlist selected player in HUD cycles //
rect 10 20 200 20
textalign 0
textalignx 10
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
}
// GIVE ORDERS TO OTHERS //
itemDef
{
name orders
group grporders
text @MENUS_YOU_DECIDE
rect 0 80 200 20
type 1
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 0"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_ATTACK_THE_ENEMY_S_BASE
rect 0 100 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"5" ;
"6"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 1"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_DEFEND_OUR_BASE
rect 0 120 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"5" ;
"6"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 2"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_GET_OUR_FLAG_BACK
rect 0 140 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"5" ;
"6"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 3"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
text @MENUS_GUARD_OUR_FLAG_CARRIER
type 1
rect 0 160 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"5" ;
"6"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 4"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_GET_ENEMY_FLAG_BACK_TO
rect 0 180 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"5" ;
"6"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 5"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_COMPLETE_THE_CURRENT
rect 0 100 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"5" ;
"7"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 1"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_PREVENT_THE_ENEMY_FROM
rect 0 120 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"5" ;
"7"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 2"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_FOLLOW_ME
rect 0 100 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"6" ;
"7"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 1"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_ASSIST_ME
rect 0 120 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"6" ;
"7"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 2"
}
ownerdrawflag UI_SHOW_LEADER
}
itemDef
{
name orders
group grporders
type 1
text @MENUS_REGROUP
rect 0 140 200 20
textalign 1
textalignx 100
textaligny 2
textscale .25
forecolor 1 1 1 1
visible 1
cvarTest "g_gametype"
hideCvar
{
"6" ;
"7"
}
mouseenter
{
hide grpicon
}
action
{
uiScript voiceOrders "cmd bot_order %d 3"
}
ownerdrawflag UI_SHOW_LEADER
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,558 @@
//-----------------------------------
// Custom Player
//-----------------------------------
{
menuDef
{
name "ingame_player2"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 105 40 430 425
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 320
descY 450
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
uiScript "getcharcvars"
uiScript "character"
uiScript updateForceStatus
hide highlights
}
onClose
{
uiScript updateForceStatus
hide highlights
}
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 430 425
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------
// Player Configuration
//----------------------------------------
// Player Configuration title
itemDef
{
name playerconfigtitle
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_CUSTOM_CHARACTER
rect 35 5 360 28
textalign ITEM_ALIGN_CENTER
textalignx 180
textaligny 2
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 3
textscale 0.9
forecolor .549 .854 1 1
border 0
bordercolor 0 0 0 0
visible 1
}
// Character model
itemDef
{
name character
group models
type ITEM_TYPE_MODEL
rect 270 84 200 225
model_g2anim "BOTH_WALK1"
asset_model "ui_char_model"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins -30 -15 -14
model_g2maxs 20 15 30
model_rotation 50
model_fovx 50
model_fovy 50
isCharacter 1
visible 1
decoration
}
//////////////////
// SPECIES BUTTON
//////////////////
itemDef
{
name species
group none
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 15 48 140 24
forecolor .549 .854 1 1
text @MENUS_SPECIES
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -1
font 3
textscale 1
visible 1
decoration
}
itemDef
{
name speciesbut_glow
group none
style WINDOW_STYLE_SHADER
rect 161 52 150 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name speciesbut
group none
text " "
descText @MENUS_CHOOSE_SPECIES
type ITEM_TYPE_MULTI
style WINDOW_STYLE_EMPTY
rect 161 52 150 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor .615 .615 .956 1
feeder 19 //FEEDER_PLAYER_SPECIES
cvar "ui_char_model"
cvarStrList feeder
visible 1
mouseEnter
{
show speciesbut_glow
}
mouseExit
{
hide speciesbut_glow
}
action
{
play "sound/interface/button1.wav"
uiScript "characterchanged"
uiScript "resetcharacterlistboxes"
}
}
////////////////////
// COLOR TINT AREA
////////////////////
itemDef
{
name color
group none
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 15 80 160 24
forecolor .549 .854 1 1
text @MENUS_COLOR
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -1
font 3
textscale 1
visible 1
decoration
}
itemDef
{
name colorbox
group tints
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 32
elementheight 32
elementtype 1 //LISTBOX_IMAGE
feeder 23 //FEEDER_COLORCHOICES
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
rect 15 104 292 48
visible 1
action
{
play "sound/interface/choose_color.wav"
}
}
///////////////////////
//APPEARANCE
//////////////////////
itemDef
{
name appear
group none
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 15 160 180 24
forecolor .549 .854 1 1
text @MENUS_APPEARANCE
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -1
font 3
textscale 1
visible 1
decoration
}
// HEAD BUTTON
itemDef
{
name headbut_glow
group none
style WINDOW_STYLE_SHADER
rect 15 184 90 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name headbut
group none
text @MENUS_HEAD
descText @MENUS_SELECT_HEAD
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 15 184 90 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show headbut_glow
}
mouseExit
{
hide headbut_glow
}
action
{
play "sound/interface/button1.wav"
show heads
hide torso
hide lower
}
}
// TORSO BUTTON
itemDef
{
name torsobut_glow
group none
style WINDOW_STYLE_SHADER
rect 111 184 90 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name torsobut
group none
text @MENUS_TORSO
descText @MENUS_SELECT_TORSO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 111 184 90 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show torsobut_glow
}
mouseExit
{
hide torsobut_glow
}
action
{
play "sound/interface/button1.wav"
show torso
hide heads
hide lower
}
}
// LEGS BUTTON
itemDef
{
name legsbut_glow
group none
style WINDOW_STYLE_SHADER
rect 209 184 90 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name legsbut
group none
text @MENUS_LEGS
descText @MENUS_SELECT_LEGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 209 184 90 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show legsbut_glow
}
mouseExit
{
hide legsbut_glow
}
action
{
play "sound/interface/button1.wav"
show lower
hide heads
hide torso
}
}
//////////////////////
//LISTBOXES
//////////////////////
itemDef
{
name headlistbox
group heads
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 20 //FEEDER_PLAYER_SKIN_HEAD
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
forecolor -1 //use playercolor
rect 15 206 292 93
visible 1
action
{
play "sound/interface/choose_head.wav"
uiScript "char_skin"
}
}
itemDef
{
name torsolistbox
group torso
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 21 //FEEDER_PLAYER_SKIN_TORSO
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
forecolor -1 //use playercolor
rect 15 206 292 93
visible 0
action
{
play "sound/interface/choose_torso.wav"
uiScript "char_skin"
}
}
itemDef
{
name lowerlistbox
group lower
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 22 //FEEDER_PLAYER_SKIN_LEGS
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
forecolor -1 //use playercolor
rect 15 206 292 93
visible 0
action
{
play "sound/interface/choose_head.wav"
uiScript "char_skin"
}
}
itemDef
{
name backButton
group highlights
style WINDOW_STYLE_SHADER
rect 30 370 110 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// BACK button
itemDef
{
name backmenu_button
text @MENUS_BACK
descText @MENUS_RETURN_PREVIOUS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 30 370 110 32
font 2
textscale .9
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 55
textaligny 2
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show backButton
}
mouseExit
{
hide backButton
}
action
{
play "sound/interface/esc.wav" ;
close ingame_player2 ;
open ingame_player ;
}
}
//---------------------------------------------
// APPLY BUTTON
//---------------------------------------------
// APPLY, already on a team
itemDef
{
name applyjoinButton
group highlights
style WINDOW_STYLE_SHADER
rect 290 370 110 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name applycurrent
group "playerapply"
text @MENUS_APPLY
type 1
style WINDOW_STYLE_EMPTY
rect 290 370 110 32
textalign ITEM_ALIGN_CENTER
textalignx 55
textaligny 2
font 2
textscale .9
forecolor 1 .682 0 1
descText @MENUS_APPLY_CHANGES_AND_JOIN
visible 1
action
{
play "sound/interface/button1"
uiScript "updatecharmodel"
hide highlights
close ingame_player2
open ingame_player
}
mouseEnter
{
show applyjoinButton
}
mouseExit
{
hide applyjoinButton
}
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,987 @@
{
menuDef
{
name "ingame_siegeobjectives"
visible 0
fullscreen 0
outOfBoundsClick
//rect 105 40 430 425
rect 15 40 610 425
focusColor 1 1 1 1
style 1
border 1
descX 320
descY 438
descScale 0.7
descColor .79 .64 .22 .7
descAlignment ITEM_ALIGN_CENTER
onClose
{
hide seconddescA
hide seconddescB
hide seconddescC
hide seconddescD
hide seconddescE
hide seconddescF
hide seconddescG
hide secondpicA
hide secondpicB
hide secondpicC
hide secondpicD
hide secondpicE
hide secondpicF
hide secondpicG
hide secondpic_text
hide missionpics
}
onOpen
{
show primeicon
hide seconddescA
hide seconddescB
hide seconddescC
hide seconddescD
hide seconddescE
hide seconddescF
hide seconddescG
hide secondpicA
hide secondpicB
hide secondpicC
hide secondpicD
hide secondpicE
hide secondpicF
hide secondpicG
exec "siegeCvarUpdate"
setitembackground mappic "*siege_mapgraphic"
setitembackground primeicon "*siege_primobj_mapicon"
setitembackground primepic "*siege_primobj_gfx"
setitembackground secondpicA "*siege_objective1_gfx"
setitembackground secondpicB "*siege_objective2_gfx"
setitembackground secondpicC "*siege_objective3_gfx"
setitembackground secondpicD "*siege_objective4_gfx"
setitembackground secondpicE "*siege_objective5_gfx"
setitembackground secondpicF "*siege_objective6_gfx"
setitembackground secondpicG "*siege_objective7_gfx"
setitembackground secondiconA "*siege_objective1_mapicon"
setitembackground secondiconB "*siege_objective2_mapicon"
setitembackground secondiconC "*siege_objective3_mapicon"
setitembackground secondiconD "*siege_objective4_mapicon"
setitembackground secondiconE "*siege_objective5_mapicon"
setitembackground secondiconF "*siege_objective6_mapicon"
setitembackground secondiconG "*siege_objective7_mapicon"
setitemrectcvar primeicon "siege_primobj_mappos"
setitemrectcvar secondiconA "siege_objective1_mappos"
setitemrectcvar secondiconB "siege_objective2_mappos"
setitemrectcvar secondiconC "siege_objective3_mappos"
setitemrectcvar secondiconD "siege_objective4_mappos"
setitemrectcvar secondiconE "siege_objective5_mappos"
setitemrectcvar secondiconF "siege_objective6_mappos"
setitemrectcvar secondiconG "siege_objective7_mappos"
}
onESC
{
hide seconddescA
hide seconddescB
hide seconddescC
hide seconddescD
hide seconddescE
hide seconddescF
hide seconddescG
hide secondpicA
hide secondpicB
hide secondpicC
hide secondpicD
hide secondpicE
hide secondpicF
hide secondpicG
hide secondpic_text
hide missionpics
close all;
}
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 610 425
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name mappic
group none
style WINDOW_STYLE_SHADER
rect 420 42 180 348
forecolor 1 1 1 .6
visible 1
border 1
bordercolor .2 .3 .7 1
decoration
background "*siege_mapgraphic"
}
itemDef
{
name objectivetitle
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_MISSION_OBJECTIVES
rect 120 5 390 28
textalign ITEM_ALIGN_CENTER
textalignx 195
textaligny 2
outlinecolor 1 .5 .5 .5
font 3
textscale 0.9
forecolor 1 1 1 1
visible 1
decoration
}
//-------------------------------------------
//
// PRIMARY OBJECTIVE
//
//-------------------------------------------
itemDef
{
name primaryobj
rect 10 42 200 24
type ITEM_TYPE_TEXT
style WINDOW_STYLE_FILLED
text @MENUS_PRIMARY_OBJECTIVES
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 5
textaligny -2
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
decoration
}
itemDef
{
name primedesc
rect 10 68 402 76
type ITEM_TYPE_TEXT
cvar "siege_primobj_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 1
autowrapped
decoration
}
//-------------------------------------------
//
// SECONDARY OBJECTIVES
//
//-------------------------------------------
//-------------------------------------------
// TITLE
//-------------------------------------------
itemDef
{
name secondobj
rect 10 150 200 24
type ITEM_TYPE_TEXT
style WINDOW_STYLE_FILLED
text @MENUS_SECONDARY_OBJECTIVES
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 5
textaligny -2
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
decoration
}
//-------------------------------------------
// OBJECTIVES
//-------------------------------------------
itemDef
{
name secondobjA
rect 215 150 24 24
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
text @MENUS_1
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_CENTER
textalignx 12
textaligny -1
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
cvartest "siege_objective1_inuse"
showcvar
{
"2"
}
action
{
show secondpic_text
show seconddescA
hide seconddescB
hide seconddescC
hide seconddescD
hide seconddescE
hide seconddescF
hide seconddescG
show secondpicA
hide secondpicB
hide secondpicC
hide secondpicD
hide secondpicE
hide secondpicF
hide secondpicG
show secondiconA
hide secondiconB
hide secondiconC
hide secondiconD
hide secondiconE
hide secondiconF
hide secondiconG
}
}
itemDef
{
name secondobjB
rect 244 150 24 24
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
text @MENUS_2
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_CENTER
textalignx 12
textaligny -1
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
cvartest "siege_objective2_inuse"
showcvar
{
"2"
}
action
{
show secondpic_text
hide seconddescA
show seconddescB
hide seconddescC
hide seconddescD
hide seconddescE
hide seconddescF
hide seconddescG
hide secondpicA
show secondpicB
hide secondpicC
hide secondpicD
hide secondpicE
hide secondpicF
hide secondpicG
hide secondiconA
show secondiconB
hide secondiconC
hide secondiconD
hide secondiconE
hide secondiconF
hide secondiconG
}
}
itemDef
{
name secondobjC
rect 273 150 24 24
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
text @MENUS_3
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_CENTER
textalignx 12
textaligny -1
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
cvartest "siege_objective3_inuse"
showcvar
{
"2"
}
action
{
show secondpic_text
hide seconddescA
hide seconddescB
show seconddescC
hide seconddescD
hide seconddescE
hide seconddescF
hide seconddescG
hide secondpicA
hide secondpicB
show secondpicC
hide secondpicD
hide secondpicE
hide secondpicF
hide secondpicG
hide secondiconA
hide secondiconB
show secondiconC
hide secondiconD
hide secondiconE
hide secondiconF
hide secondiconG
}
}
itemDef
{
name secondobjD
rect 302 150 24 24
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
text @MENUS_4
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_CENTER
textalignx 12
textaligny -1
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
cvartest "siege_objective4_inuse"
showcvar
{
"2"
}
action
{
show secondpic_text
hide seconddescA
hide seconddescB
hide seconddescC
show seconddescD
hide seconddescE
hide seconddescF
hide seconddescG
hide secondpicA
hide secondpicB
hide secondpicC
show secondpicD
hide secondpicE
hide secondpicF
hide secondpicG
hide secondiconA
hide secondiconB
hide secondiconC
show secondiconD
hide secondiconE
hide secondiconF
hide secondiconG
}
}
itemDef
{
name secondobjE
rect 331 150 24 24
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
text @MENUS_5
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_CENTER
textalignx 12
textaligny -1
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
cvartest "siege_objective5_inuse"
showcvar
{
"2"
}
action
{
show secondpic_text
hide seconddescA
hide seconddescB
hide seconddescC
hide seconddescD
show seconddescE
hide seconddescF
hide seconddescG
hide secondpicA
hide secondpicB
hide secondpicC
hide secondpicD
show secondpicE
hide secondpicF
hide secondpicG
hide secondiconA
hide secondiconB
hide secondiconC
hide secondiconD
show secondiconE
hide secondiconF
hide secondiconG
}
}
itemDef
{
name secondobjF
rect 360 150 24 24
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
text @MENUS_6
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_CENTER
textalignx 12
textaligny -1
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
cvartest "siege_objective6_inuse"
showcvar
{
"2"
}
action
{
show secondpic_text
hide seconddescA
hide seconddescB
hide seconddescC
hide seconddescD
hide seconddescE
show seconddescF
hide seconddescG
hide secondpicA
hide secondpicB
hide secondpicC
hide secondpicD
hide secondpicE
show secondpicF
hide secondpicG
hide secondiconA
hide secondiconB
hide secondiconC
hide secondiconD
hide secondiconE
show secondiconF
hide secondiconG
}
}
itemDef
{
name secondobjG
rect 389 150 24 24
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_FILLED
text @MENUS_7
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_CENTER
textalignx 12
textaligny -1
backcolor .2 .3 .7 1
forecolor 1 1 1 1
visible 1
border 1
bordercolor .79 .64 .22 1
cvartest "siege_objective7_inuse"
showcvar
{
"2"
}
action
{
show secondpic_text
hide seconddescA
hide seconddescB
hide seconddescC
hide seconddescD
hide seconddescE
hide seconddescF
show seconddescG
hide secondpicA
hide secondpicB
hide secondpicC
hide secondpicD
hide secondpicE
hide secondpicF
show secondpicG
hide secondiconA
hide secondiconB
hide secondiconC
hide secondiconD
hide secondiconE
hide secondiconF
show secondiconG
}
}
//-------------------------------------------
//
// SECONDARY OBJECTIVES DESCRIPTIONS
//
//-------------------------------------------
itemDef
{
name seconddescA
rect 10 176 402 76
type ITEM_TYPE_TEXT
cvar "siege_objective1_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 0
autowrapped
decoration
}
itemDef
{
name seconddescB
rect 10 176 402 76
type ITEM_TYPE_TEXT
cvar "siege_objective2_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 0
autowrapped
decoration
}
itemDef
{
name seconddescC
rect 10 176 402 76
type ITEM_TYPE_TEXT
cvar "siege_objective3_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 0
autowrapped
decoration
}
itemDef
{
name seconddescD
rect 10 176 402 76
type ITEM_TYPE_TEXT
cvar "siege_objective4_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 0
autowrapped
decoration
}
itemDef
{
name seconddescE
rect 10 176 402 76
type ITEM_TYPE_TEXT
cvar "siege_objective5_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 0
autowrapped
decoration
}
itemDef
{
name seconddescF
rect 10 176 402 76
type ITEM_TYPE_TEXT
cvar "siege_objective6_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 0
autowrapped
decoration
}
itemDef
{
name seconddescG
rect 10 176 402 76
type ITEM_TYPE_TEXT
cvar "siege_objective7_desc"
font 2
textscale .8
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 6
forecolor 1 1 1 1
visible 0
autowrapped
decoration
}
//-------------------------------------------
//
// MAP ICONS
//
//-------------------------------------------
itemDef
{
name primeicon
group missionpics
//rectcvar "siege_primobj_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name secondiconA
group missionpics
//rectcvar "siege_objective1_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name secondiconB
group missionpics
//rectcvar "siege_objective2_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name secondiconC
group missionpics
//rectcvar "siege_objective3_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name secondiconD
group missionpics
//rectcvar "siege_objective4_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name secondiconE
group missionpics
//rectcvar "siege_objective5_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name secondiconF
group missionpics
//rectcvar "siege_objective6_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name secondiconG
group missionpics
//rectcvar "siege_objective7_mappos"
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
visible 0
decoration
}
//-------------------------------------------
//
// OBJECTIVE PICTURES
//
//-------------------------------------------
itemDef
{
name primepic_text
rect 10 382 192 14
type ITEM_TYPE_TEXT
text @MENUS_PRIMARY_OBJECTIVES
font 2
textscale .6
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 2
forecolor .79 .64 .22 1
visible 1
autowrapped
decoration
}
itemDef
{
name secondpic_text
rect 212 382 192 14
type ITEM_TYPE_TEXT
text @MENUS_SECONDARY_OBJECTIVES
font 2
textscale .6
textstyle 0
textalign ITEM_ALIGN_LEFT
textalignx 2
forecolor .79 .64 .22 1
visible 0
autowrapped
decoration
}
itemDef
{
name primepic
group primepic
rect 10 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 1
decoration
}
itemDef
{
name secondpicA
group missionpics
rect 212 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 0
decoration
}
itemDef
{
name secondpicB
group missionpics
rect 212 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 0
decoration
}
itemDef
{
name secondpicC
group missionpics
rect 212 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 0
decoration
}
itemDef
{
name secondpicD
group missionpics
rect 212 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 0
decoration
}
itemDef
{
name secondpicE
group missionpics
rect 212 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 0
decoration
}
itemDef
{
name secondpicF
group missionpics
rect 212 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 0
decoration
}
itemDef
{
name secondpicG
group missionpics
rect 212 254 192 128
style WINDOW_STYLE_SHADER
background "gfx/2d/select"
forecolor 1 1 1 1
border 1
bordercolor .79 .64 .22 1
visible 0
decoration
}
itemDef
{
name exit
text @MENUS_OKAY
type 1
textscale 1
group grpControlbutton
type ITEM_TYPE_BUTTON
rect 160 392 300 26
textalign ITEM_ALIGN_CENTER
textalignx 150
forecolor .79 .64 .22 1
backcolor .37 .1 .1 1
visible 1
action
{
play "sound/misc/nomenu.wav" ;
hide missionpics
close ingame_siegeobjectives ;
}
mouseEnter
{
setitemcolor 1 1 1 1
}
mouseExit
{
setitemcolor .79 .64 .22 1
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,112 @@
// SERVER INFO MENU
{
menuDef
{
name "ingame_vote"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 430 40 80 68
focusColor 1 1 1 1
style 1
border 1
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 80 68
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name button1
group buttons
style WINDOW_STYLE_SHADER
rect 2 4 76 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name yes
text @MENUS_YES
type 1
style 2
rect 2 4 76 30
textalign ITEM_ALIGN_CENTER
textalignx 38
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "vote yes" ;
uiScript closeingame
}
mouseEnter
{
show button1
}
mouseExit
{
hide button1
}
}
itemDef
{
name button2
group buttons
style WINDOW_STYLE_SHADER
rect 2 34 76 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name no
text @MENUS_NO
type 1
style 2
rect 2 34 76 30
textalign ITEM_ALIGN_CENTER
textalignx 38
textaligny 0
font 2
textscale 1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
exec "vote no" ;
uiScript closeingame
}
mouseEnter
{
show button2
}
mouseExit
{
hide button2
}
}
}
}

1224
base/ui/jamp/joinserver.menu Normal file

File diff suppressed because it is too large Load Diff

523
base/ui/jamp/main.menu Normal file
View File

@@ -0,0 +1,523 @@
//----------------------------------------------------------------------------------------------
//
// MULTIPLAYER - MAIN MENU
//
// Opening menu. Called when game is first started.
//
//----------------------------------------------------------------------------------------------
{
assetGlobalDef
{
font "ergoec" 18 // font
smallFont "aurabesh" 18 // font
bigFont "anewhope" 20 // font
small2Font "arialnb" 14
cursor "cursor" // cursor
gradientBar "ui/assets/gradientbar2.tga" // gradient bar
itemFocusSound "sound/interface/menuroam.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
moveRollSound "sound/player/roll1"
moveJumpSound "sound/weapons/force/jump"
shadowColor 0.1 0.1 0.1 0.25 // shadow color
focuscolor 0 0 1 1
precacheSound
{
"sound/interface/choose_color.wav" ;
"sound/interface/choose_head.wav" ;
"sound/interface/choose_torso.wav" ;
"sound/interface/choose_saber.wav" ;
"sound/interface/choose_hilt.wav" ;
"sound/interface/choose_blade.wav" ;
"sound/interface/transition.wav" ;
"sound/interface/esc.wav" ;
"sound/interface/sub_select.wav" ;
}
}
menuDef
{
name "main"
fullScreen 1
rect 0 0 640 480 // Size and position of the menu
visible 1 // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
exec "music music/t2_dpred/ImpBaseB_Action" ;
}
onESC
{
play "sound/interface/esc.wav"
close all
open quitMenu
}
onClose
{
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background_video
group none
style WINDOW_STYLE_SHADER
rect 200 144 256 256
background "gfx/menus/videologo"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name ring
group none
style WINDOW_STYLE_SHADER
rect 193 145 256 256
background "gfx/menus/main_ring"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name centerwindow
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerwindow"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name leftwindow
group none
style WINDOW_STYLE_SHADER
rect 0 150 320 240
background "gfx/menus/main_leftwindow"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name rightwindow
group none
style WINDOW_STYLE_SHADER
rect 320 150 320 240
background "gfx/menus/main_rightwindow"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name multiplayer_title
style WINDOW_STYLE_EMPTY
rect 200 120 240 24
text @MENUS_MULTIPLAYER
font 2
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 120
forecolor .695 .760 .861 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// TOP MENU BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name playbutton_undertext
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 36 194 130 24
text @MENUS_NEW
font 1
textscale .7
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor .02 0 .33 1
visible 0
decoration
}
itemDef
{
name playbutton
group main_button
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 36 212 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 16 210 210 32
show playbutton_undertext
}
mouseExit
{
hide button_glow
hide playbutton_undertext
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
}
// Big button "PLAYER PROFILE"
itemDef
{
name profilebutton_undertext
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 36 293 130 24
text @MENUS_LOAD
font 1
textscale .7
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor .02 0 .33 1
visible 0
decoration
}
itemDef
{
name profilebutton
group main_button
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 36 310 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 16 308 210 32
show profilebutton_undertext
}
mouseExit
{
hide button_glow
hide profilebutton_undertext
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open playerMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_undertext
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 448 194 146 24
text @MENUS_CONTROLS2
font 1
textscale .7
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor .02 0 .33 1
visible 0
decoration
}
itemDef
{
name controlsbutton
group main_button
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 441 212 160 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 416 210 210 32
show controlsbutton_undertext
}
mouseExit
{
hide button_glow
hide controlsbutton_undertext
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open controlsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_undertext
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 456 292 130 24
text @MENUS_SETUP
font 1
textscale .7
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor .02 0 .33 1
visible 0
decoration
}
itemDef
{
name setupbutton
group main_button
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 456 310 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 416 308 210 32
show setupbutton_undertext
}
mouseExit
{
hide button_glow
hide setupbutton_undertext
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
// OTHER MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// Credits hidden button
itemDef
{
name creditsbutton
group othermain
// text @CREDITS
descText @MENUS_SHOW_GAME_CREDITS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 200 144 256 256
font 2
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textalignx 46
backcolor 0 0 0 0
forecolor 0.65 0.65 1 1
visible 0
mouseEnter
{
}
mouseExit
{
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open creditsMenu
}
}
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 215 440 210 32
}
mouseExit
{
hide button_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
}
}

388
base/ui/jamp/menudef.h Normal file
View File

@@ -0,0 +1,388 @@
#define CT_LTBLUE1 0.367 0.261 0.722
#define CT_DKBLUE1 0.199 0.0 0.398
#define CT_LTCYAN 0 0.5 0.5
#define CT_DKCYAN 0 0.25 0.25
#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_TYPE_TEXTSCROLL 14 // scrolls text
#define ITEM_ALIGN_LEFT 0 // left alignment
#define ITEM_ALIGN_CENTER 1 // center alignment
#define ITEM_ALIGN_RIGHT 2 // right alignment
#define ITEM_TEXTSTYLE_NORMAL 0 // normal text
#define ITEM_TEXTSTYLE_BLINK 1 // fast blinking
#define ITEM_TEXTSTYLE_PULSE 2 // slow pulsing
#define ITEM_TEXTSTYLE_SHADOWED 3 // drop shadow ( need a color for this )
#define ITEM_TEXTSTYLE_OUTLINED 4 // drop shadow ( need a color for this )
#define ITEM_TEXTSTYLE_OUTLINESHADOWED 5 // drop shadow ( need a color for this )
#define ITEM_TEXTSTYLE_SHADOWEDMORE 6 // drop shadow ( need a color for this )
#define WINDOW_BORDER_NONE 0 // no border
#define WINDOW_BORDER_FULL 1 // full border based on border color ( single pixel )
#define WINDOW_BORDER_HORZ 2 // horizontal borders only
#define WINDOW_BORDER_VERT 3 // vertical borders only
#define WINDOW_BORDER_KCGRADIENT 4 // horizontal border using the gradient bars
#define WINDOW_STYLE_EMPTY 0 // no background
#define WINDOW_STYLE_FILLED 1 // filled with background color
#define WINDOW_STYLE_GRADIENT 2 // gradient bar based on background color
#define WINDOW_STYLE_SHADER 3 // gradient bar based on background color
#define WINDOW_STYLE_TEAMCOLOR 4 // team color
#define WINDOW_STYLE_CINEMATIC 5 // cinematic
#define MENU_TRUE 1 // uh.. true
#define MENU_FALSE 0 // and false
#define HUD_VERTICAL 0x00
#define HUD_HORIZONTAL 0x01
// list box element types
#define LISTBOX_TEXT 0x00
#define LISTBOX_IMAGE 0x01
// list feeders
//#define FEEDER_HEADS 0x00 // model heads
#define FEEDER_MAPS 0x01 // text maps based on game type
#define FEEDER_SERVERS 0x02 // servers
//#define FEEDER_CLANS 0x03 // clan names
#define FEEDER_ALLMAPS 0x04 // all maps available, in graphic format
#define FEEDER_REDTEAM_LIST 0x05 // red team members
#define FEEDER_BLUETEAM_LIST 0x06 // blue team members
#define FEEDER_PLAYER_LIST 0x07 // players
#define FEEDER_TEAM_LIST 0x08 // team members for team voting
#define FEEDER_MODS 0x09 // team members for team voting
#define FEEDER_DEMOS 0x0a // team members for team voting
#define FEEDER_SCOREBOARD 0x0b // team members for team voting
#define FEEDER_Q3HEADS 0x0c // model heads
#define FEEDER_SERVERSTATUS 0x0d // server status
#define FEEDER_FINDPLAYER 0x0e // find player
#define FEEDER_CINEMATICS 0x0f // cinematics
#define FEEDER_FORCECFG 0x10 // force config list
#define FEEDER_SIEGE_TEAM1 0x11 // siege class list for team1
#define FEEDER_SIEGE_TEAM2 0x12 // siege class list for team2
#define FEEDER_PLAYER_SPECIES 0x13 // models/player/*
#define FEEDER_PLAYER_SKIN_HEAD 0x14 // head*.skin files in species folder
#define FEEDER_PLAYER_SKIN_TORSO 0x15 // torso*.skin files in species folder
#define FEEDER_PLAYER_SKIN_LEGS 0x16 // lower*.skin files in species folder
#define FEEDER_COLORCHOICES 0x17 // special hack to feed text/actions from playerchoice.txt in species folder
#define FEEDER_TEAM1_INFANTRY 0x18 // for siege team choice
#define FEEDER_TEAM1_VANGUARD 0x19 // for siege team choice
#define FEEDER_TEAM1_SUPPORT 0x1a // for siege team choice
#define FEEDER_TEAM1_JEDI 0x1b // for siege team choice
#define FEEDER_TEAM1_DEMO 0x1c // for siege team choice
#define FEEDER_TEAM1_HEAVY 0x1d // for siege team choice
#define FEEDER_TEAM2_INFANTRY 0x1e // for siege team choice
#define FEEDER_TEAM2_VANGUARD 0x1f // for siege team choice
#define FEEDER_TEAM2_SUPPORT 0x20 // for siege team choice
#define FEEDER_TEAM2_JEDI 0x21 // for siege team choice
#define FEEDER_TEAM2_DEMO 0x22 // for siege team choice
#define FEEDER_TEAM2_HEAVY 0x23 // for siege team choice
#define FEEDER_SIEGE_BASE_CLASS 0x24 // for siege team choice
#define FEEDER_SIEGE_CLASS_WEAPONS 0x25 // for siege team choice
#define FEEDER_SIEGE_CLASS_INVENTORY 0x26 // for siege team choice
#define FEEDER_SIEGE_CLASS_FORCE 0x27 // for siege team choice
#define FEEDER_LANGUAGES 0x28 // for language choice
#define FEEDER_MOVES 0x29 // moves for the data pad moves screen
#define FEEDER_MOVES_TITLES 0x2a // move titles for the data pad moves screen
#define FEEDER_SABER_SINGLE_INFO 0x2b // saber single
#define FEEDER_SABER_STAFF_INFO 0x2c // saber staff
// Xbox specific, hope no one minds
#define FEEDER_XBL_ACCOUNTS 0xA0 // list of available XBL accounts
#define FEEDER_XBL_PLAYERS 0xA1 // players (current and recent)
#define FEEDER_XBL_FRIENDS 0xA2 // friends
#define FEEDER_XBL_SERVERS 0xA3 // results of an optimatch query
// display flags
#define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001
#define CG_SHOW_RED_TEAM_HAS_BLUEFLAG 0x00000002
#define CG_SHOW_ANYTEAMGAME 0x00000004
#define CG_SHOW_HARVESTER 0x00000008
#define CG_SHOW_ONEFLAG 0x00000010
#define CG_SHOW_CTF 0x00000020
#define CG_SHOW_OBELISK 0x00000040
#define CG_SHOW_HEALTHCRITICAL 0x00000080
#define CG_SHOW_SINGLEPLAYER 0x00000100
#define CG_SHOW_TOURNAMENT 0x00000200
#define CG_SHOW_DURINGINCOMINGVOICE 0x00000400
#define CG_SHOW_IF_PLAYER_HAS_FLAG 0x00000800
#define CG_SHOW_LANPLAYONLY 0x00001000
#define CG_SHOW_MINED 0x00002000
#define CG_SHOW_HEALTHOK 0x00004000
#define CG_SHOW_TEAMINFO 0x00008000
#define CG_SHOW_NOTEAMINFO 0x00010000
#define CG_SHOW_OTHERTEAMHASFLAG 0x00020000
#define CG_SHOW_YOURTEAMHASENEMYFLAG 0x00040000
#define CG_SHOW_ANYNONTEAMGAME 0x00080000
#define CG_SHOW_2DONLY 0x10000000
#define UI_SHOW_LEADER 0x00000001
#define UI_SHOW_NOTLEADER 0x00000002
#define UI_SHOW_FAVORITESERVERS 0x00000004
#define UI_SHOW_ANYNONTEAMGAME 0x00000008
#define UI_SHOW_ANYTEAMGAME 0x00000010
#define UI_SHOW_NEWHIGHSCORE 0x00000020
#define UI_SHOW_DEMOAVAILABLE 0x00000040
#define UI_SHOW_NEWBESTTIME 0x00000080
#define UI_SHOW_FFA 0x00000100
#define UI_SHOW_NOTFFA 0x00000200
#define UI_SHOW_NETANYNONTEAMGAME 0x00000400
#define UI_SHOW_NETANYTEAMGAME 0x00000800
#define UI_SHOW_NOTFAVORITESERVERS 0x00001000
// owner draw types
// ideally these should be done outside of this file but
// this makes it much easier for the macro expansion to
// convert them for the designers ( from the .menu files )
#define CG_OWNERDRAW_BASE 1
#define CG_PLAYER_ARMOR_ICON 1
#define CG_PLAYER_ARMOR_VALUE 2
#define CG_PLAYER_HEAD 3
#define CG_PLAYER_HEALTH 4
#define CG_PLAYER_AMMO_ICON 5
#define CG_PLAYER_AMMO_VALUE 6
#define CG_SELECTEDPLAYER_HEAD 7
#define CG_SELECTEDPLAYER_NAME 8
#define CG_SELECTEDPLAYER_LOCATION 9
#define CG_SELECTEDPLAYER_STATUS 10
#define CG_SELECTEDPLAYER_WEAPON 11
#define CG_SELECTEDPLAYER_POWERUP 12
#define CG_FLAGCARRIER_HEAD 13
#define CG_FLAGCARRIER_NAME 14
#define CG_FLAGCARRIER_LOCATION 15
#define CG_FLAGCARRIER_STATUS 16
#define CG_FLAGCARRIER_WEAPON 17
#define CG_FLAGCARRIER_POWERUP 18
#define CG_PLAYER_ITEM 19
#define CG_PLAYER_SCORE 20
#define CG_BLUE_FLAGHEAD 21
#define CG_BLUE_FLAGSTATUS 22
#define CG_BLUE_FLAGNAME 23
#define CG_RED_FLAGHEAD 24
#define CG_RED_FLAGSTATUS 25
#define CG_RED_FLAGNAME 26
#define CG_BLUE_SCORE 27
#define CG_RED_SCORE 28
#define CG_RED_NAME 29
#define CG_BLUE_NAME 30
#define CG_HARVESTER_SKULLS 31 // only shows in harvester
#define CG_ONEFLAG_STATUS 32 // only shows in one flag
#define CG_PLAYER_LOCATION 33
#define CG_TEAM_COLOR 34
#define CG_CTF_POWERUP 35
#define CG_AREA_POWERUP 36
#define CG_AREA_LAGOMETER 37 // painted with old system
#define CG_PLAYER_HASFLAG 38
#define CG_GAME_TYPE 39 // not done
#define CG_SELECTEDPLAYER_ARMOR 40
#define CG_SELECTEDPLAYER_HEALTH 41
#define CG_PLAYER_STATUS 42
#define CG_FRAGGED_MSG 43 // painted with old system
#define CG_PROXMINED_MSG 44 // painted with old system
#define CG_AREA_FPSINFO 45 // painted with old system
#define CG_AREA_SYSTEMCHAT 46 // painted with old system
#define CG_AREA_TEAMCHAT 47 // painted with old system
#define CG_AREA_CHAT 48 // painted with old system
#define CG_GAME_STATUS 49
#define CG_KILLER 50
#define CG_PLAYER_ARMOR_ICON2D 51
#define CG_PLAYER_AMMO_ICON2D 52
#define CG_ACCURACY 53
#define CG_ASSISTS 54
#define CG_DEFEND 55
#define CG_EXCELLENT 56
#define CG_IMPRESSIVE 57
#define CG_PERFECT 58
#define CG_GAUNTLET 59
#define CG_SPECTATORS 60
#define CG_TEAMINFO 61
#define CG_VOICE_HEAD 62
#define CG_VOICE_NAME 63
#define CG_PLAYER_HASFLAG2D 64
#define CG_HARVESTER_SKULLS2D 65 // only shows in harvester
#define CG_CAPFRAGLIMIT 66
#define CG_1STPLACE 67
#define CG_2NDPLACE 68
#define CG_CAPTURES 69
#define CG_PLAYER_FORCE_VALUE 70
#define UI_OWNERDRAW_BASE 200
#define UI_HANDICAP 200
#define UI_EFFECTS 201
#define UI_PLAYERMODEL 202
#define UI_CLANNAME 203
#define UI_CLANLOGO 204
#define UI_GAMETYPE 205
#define UI_MAPPREVIEW 206
#define UI_SKILL 207
#define UI_BLUETEAMNAME 208
#define UI_REDTEAMNAME 209
#define UI_BLUETEAM1 210
#define UI_BLUETEAM2 211
#define UI_BLUETEAM3 212
#define UI_BLUETEAM4 213
#define UI_BLUETEAM5 214
#define UI_REDTEAM1 215
#define UI_REDTEAM2 216
#define UI_REDTEAM3 217
#define UI_REDTEAM4 218
#define UI_REDTEAM5 219
#define UI_NETSOURCE 220
#define UI_NETMAPPREVIEW 221
#define UI_NETFILTER 222
#define UI_TIER 223
#define UI_OPPONENTMODEL 224
#define UI_TIERMAP1 225
#define UI_TIERMAP2 226
#define UI_TIERMAP3 227
#define UI_PLAYERLOGO 228
#define UI_OPPONENTLOGO 229
#define UI_PLAYERLOGO_METAL 230
#define UI_OPPONENTLOGO_METAL 231
#define UI_PLAYERLOGO_NAME 232
#define UI_OPPONENTLOGO_NAME 233
#define UI_TIER_MAPNAME 234
#define UI_TIER_GAMETYPE 235
#define UI_ALLMAPS_SELECTION 236
#define UI_OPPONENT_NAME 237
#define UI_VOTE_KICK 238
#define UI_BOTNAME 239
#define UI_BOTSKILL 240
#define UI_REDBLUE 241
#define UI_CROSSHAIR 242
#define UI_SELECTEDPLAYER 243
#define UI_MAPCINEMATIC 244
#define UI_NETGAMETYPE 245
#define UI_NETMAPCINEMATIC 246
#define UI_SERVERREFRESHDATE 247
#define UI_SERVERMOTD 248
#define UI_GLINFO 249
#define UI_KEYBINDSTATUS 250
#define UI_CLANCINEMATIC 251
#define UI_MAP_TIMETOBEAT 252
#define UI_JOINGAMETYPE 253
#define UI_PREVIEWCINEMATIC 254
#define UI_STARTMAPCINEMATIC 255
#define UI_MAPS_SELECTION 256
#define UI_FORCE_SIDE 257
#define UI_FORCE_RANK 258
#define UI_FORCE_RANK_HEAL 259
#define UI_FORCE_RANK_LEVITATION 260
#define UI_FORCE_RANK_SPEED 261
#define UI_FORCE_RANK_PUSH 262
#define UI_FORCE_RANK_PULL 263
#define UI_FORCE_RANK_TELEPATHY 264
#define UI_FORCE_RANK_GRIP 265
#define UI_FORCE_RANK_LIGHTNING 266
#define UI_FORCE_RANK_RAGE 267
#define UI_FORCE_RANK_PROTECT 268
#define UI_FORCE_RANK_ABSORB 269
#define UI_FORCE_RANK_TEAM_HEAL 270
#define UI_FORCE_RANK_TEAM_FORCE 271
#define UI_FORCE_RANK_DRAIN 272
#define UI_FORCE_RANK_SEE 273
#define UI_FORCE_RANK_SABERATTACK 274
#define UI_FORCE_RANK_SABERDEFEND 275
#define UI_FORCE_RANK_SABERTHROW 276
#define UI_VERSION 277
#define UI_TOTALFORCESTARS 278
#define UI_AUTOSWITCHLIST 279
//How handy it would be if this were an enum.
#define UI_BLUETEAM6 280
#define UI_BLUETEAM7 281
#define UI_BLUETEAM8 282
#define UI_REDTEAM6 283
#define UI_REDTEAM7 284
#define UI_REDTEAM8 285
// Yes it would be handy
#define UI_FORCE_MASTERY_SET 286
#define UI_SKIN_COLOR 287
#define UI_FORCE_POINTS 288
//extra, for patch
#define UI_JEDI_NONJEDI 289
// Xbox-only, for complicated passcode entry screen. Sorry.
#define UI_XBOX_PASSCODE 290
#define UI_CHAT_MAIN 291
#define UI_CHAT_ATTACK 292
#define UI_CHAT_DEFEND 293
#define UI_CHAT_REQUEST 294
#define UI_CHAT_REPLY 295
#define UI_CHAT_SPOT 296
#define UI_CHAT_TACTICAL 297
#define VOICECHAT_GETFLAG "getflag" // command someone to get the flag
#define VOICECHAT_OFFENSE "offense" // command someone to go on offense
#define VOICECHAT_DEFEND "defend" // command someone to go on defense
#define VOICECHAT_DEFENDFLAG "defendflag" // command someone to defend the flag
#define VOICECHAT_PATROL "patrol" // command someone to go on patrol (roam)
#define VOICECHAT_CAMP "camp" // command someone to camp (we don't have sounds for this one)
#define VOICECHAT_FOLLOWME "followme" // command someone to follow you
#define VOICECHAT_RETURNFLAG "returnflag" // command someone to return our flag
#define VOICECHAT_FOLLOWFLAGCARRIER "followflagcarrier" // command someone to follow the flag carrier
#define VOICECHAT_YES "yes" // yes, affirmative, etc.
#define VOICECHAT_NO "no" // no, negative, etc.
#define VOICECHAT_ONGETFLAG "ongetflag" // I'm getting the flag
#define VOICECHAT_ONOFFENSE "onoffense" // I'm on offense
#define VOICECHAT_ONDEFENSE "ondefense" // I'm on defense
#define VOICECHAT_ONPATROL "onpatrol" // I'm on patrol (roaming)
#define VOICECHAT_ONCAMPING "oncamp" // I'm camping somewhere
#define VOICECHAT_ONFOLLOW "onfollow" // I'm following
#define VOICECHAT_ONFOLLOWCARRIER "onfollowcarrier" // I'm following the flag carrier
#define VOICECHAT_ONRETURNFLAG "onreturnflag" // I'm returning our flag
#define VOICECHAT_INPOSITION "inposition" // I'm in position
#define VOICECHAT_IHAVEFLAG "ihaveflag" // I have the flag
#define VOICECHAT_BASEATTACK "baseattack" // the base is under attack
#define VOICECHAT_ENEMYHASFLAG "enemyhasflag" // the enemy has our flag (CTF)
#define VOICECHAT_STARTLEADER "startleader" // I'm the leader
#define VOICECHAT_STOPLEADER "stopleader" // I resign leadership
#define VOICECHAT_TRASH "trash" // lots of trash talk
#define VOICECHAT_WHOISLEADER "whoisleader" // who is the team leader
#define VOICECHAT_WANTONDEFENSE "wantondefense" // I want to be on defense
#define VOICECHAT_WANTONOFFENSE "wantonoffense" // I want to be on offense
#define VOICECHAT_KILLINSULT "kill_insult" // I just killed you
#define VOICECHAT_TAUNT "taunt" // I want to taunt you
#define VOICECHAT_DEATHINSULT "death_insult" // you just killed me
#define VOICECHAT_KILLGAUNTLET "kill_gauntlet" // I just killed you with the gauntlet
#define VOICECHAT_PRAISE "praise" // you did something good

View File

@@ -0,0 +1,571 @@
//----------------------------------------------------------------------------------------------
//
// MULTIPLAYER MENU
//
// Allows player to start a game or join one in progress
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "multiplayermenu"
fullScreen 1
rect 0 0 640 480 // Size and position of the menu
visible 1 // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onESC
{
play "sound/interface/esc.wav" ;
close all;
open mainMenu
}
onOpen
{
setfocus quickserver_button
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 50 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// TOP MENU BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
// Big button "PLAY"
itemDef
{
name playbutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 1 1 1
visible 1
action
{
}
}
// Big button "PLAYER PROFILE"
itemDef
{
name profilebutton
group toprow
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 120 124 230 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open playerMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton
group toprow
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 290 124 230 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open controlsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton
group toprow
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 452 124 230 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
// MULTIPLAYER MENU SPECIFIC
//----------------------------------------------------------------------------------------------
itemDef
{
name title_glow
group none
style WINDOW_STYLE_SHADER
rect 150 162 340 20
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name title
group none
text @MENUS_START_PLAYING
style WINDOW_STYLE_EMPTY
rect 225 164 190 16
font 3
textscale .7
textalign ITEM_ALIGN_CENTER
textalignx 95
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
// QUICK START
itemDef
{
name quickserver_button
group none
text @MENUS_SOLO_GAME
descText @MENUS_QUICKSTART_DESC
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 191 190 36
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 175 197 300 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close multiplayermenu ;
open quickgame
}
}
// JOIN SERVER
itemDef
{
name joinserver_button
group none
text @MENUS_JOIN_SERVER_CAPS
descText @MENUS_SEARCH_FOR_SERVERS_TO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 226 190 36
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 175 232 300 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close multiplayermenu ;
open joinserver
}
}
// CREATE SERVER
itemDef
{
name startserver_button
group none
text @MENUS_CREATE_SERVER_CAPS
descText @MENUS_CREATE_YOUR_OWN_SERVER
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 261 190 36
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 175 267 300 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close multiplayermenu ;
open createserver
}
}
// PLAY DEMO FILE
itemDef
{
name playdemo_button
group none
text @MENUS_PLAY_DEMO_CAPS
descText @MENUS_PLAY_BACK_A_RECORDED
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 296 190 36
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 175 302 300 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close multiplayermenu ;
open demo
}
}
// GAME RULES
itemDef
{
name rules_button
group none
text @MENUS_RULES
descText @MENUS_RULES_DESC
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 331 190 36
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 175 337 300 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close multiplayermenu ;
open rulesMenu
}
}
//----------------------------------------------------------------------------------------------
// BOTTOM BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button
itemDef
{
name backbutton
group fade_buttons
text @MENUS_BACK
descText @MENUS_BACKTOMAIN
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 30 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/esc.wav" ;
close all ;
open mainMenu
}
}
// EXIT button
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 225 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
}
}

140
base/ui/jamp/password.menu Normal file
View File

@@ -0,0 +1,140 @@
//----------------------------------------------------------------------------------------------
//
// PASSWORD POPUP MENU
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "password_popmenu"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 200 150 240 180
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 320
descY 312
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
popup
onESC
{
play "sound/interface/esc.wav" ;
close password_popmenu
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 0 0 240 180
backcolor 0 0 .35 .9
forecolor 1 1 1 1
border 1
bordercolor 0 0 .8 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// PASSWORD
//----------------------------------------------------------------------------------------------
itemDef
{
name passwordTitle
text @MENUS_ENTER_PASSWORD
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
rect 10 5 220 20
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 110
textaligny 1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name passwordEntry
style 1
descText @MENUS_INPUT_PASSWORD_1
text @MENUS_BLANK_1
maxchars 15
font 2
textscale .8
TYPE 4
cvar "password"
rect 20 50 200 30
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny 3
forecolor 1 1 1 1
backcolor .25 .25 .25 .5
visible 1
border 1
bordercolor .79 .64 .22 1
mouseenter
{
setitemcolor passwordEntry backcolor .25 .25 .25 .75
}
mouseexit
{
setitemcolor passwordEntry backcolor .25 .25 .25 .5
}
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name doneText
text @MENUS_DONE
descText @MENUS_FINISHED_INPUTTING_INFO
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 20 110 200 30
textalign ITEM_ALIGN_CENTER
textalignx 100
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
close password_popmenu
}
mouseEnter
{
show button_glow
setitemrect button_glow 10 113 240 26
}
mouseExit
{
hide button_glow
}
}
}
}

View File

@@ -0,0 +1,173 @@
//----------------------------------------------------------------------------------------------
//
// PASSWORD POPUP MENU
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "password_request"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 200 150 240 180
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 320
descY 312
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
popup
onESC
{
play "sound/interface/esc.wav" ;
close password_request
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 0 0 240 180
backcolor 0 0 .35 .9
forecolor 1 1 1 1
border 1
bordercolor 0 0 .8 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// PASSWORD
//----------------------------------------------------------------------------------------------
itemDef
{
name passwordTitle
text @MENUS_ENTER_PASSWORD
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
rect 10 5 220 20
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 110
textaligny 1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name passwordEntry
style 1
descText @MENUS_INPUT_PASSWORD_1
text @MENUS_BLANK_1
maxchars 15
font 2
textscale .8
TYPE 4
cvar "password"
rect 20 50 200 30
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny 3
forecolor 1 1 1 1
backcolor .25 .25 .25 .5
visible 1
border 1
bordercolor .79 .64 .22 1
mouseenter
{
setitemcolor passwordEntry backcolor .25 .25 .25 .75
}
mouseexit
{
setitemcolor passwordEntry backcolor .25 .25 .25 .5
}
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name doneText
text @MENUS_DONE
descText @MENUS_FINISHED_INPUTTING_INFO
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 20 90 200 30
textalign ITEM_ALIGN_CENTER
textalignx 100
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
uiscript JoinServer
close password_request
}
mouseEnter
{
show button_glow
setitemrect button_glow 10 93 240 26
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name cancel
text @MENUS_VC_CANCEL
descText @MP_SVGAME_CANCEL_PASSWORD
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 20 125 200 30
textalign ITEM_ALIGN_CENTER
textalignx 100
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
close password_request
}
mouseEnter
{
show button_glow
setitemrect button_glow 10 128 240 26
}
mouseExit
{
hide button_glow
}
}
}
}

638
base/ui/jamp/player.menu Normal file
View File

@@ -0,0 +1,638 @@
// CHARACTER CREATION MENU
{
menuDef
{
name "playerMenu"
fullScreen 1
rect 0 0 640 480
focusColor 1 1 1 1
descX 320
descY 430
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
uiScript update "ui_GetName"
}
onESC
{
play "sound/interface/menuroam.wav"
close playerMenu
open mainMenu
}
onClose
{
uiScript update "ui_SetName"
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
//background "gfx/menus/charmenu"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 50 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
// Box around character models
itemDef
{
name background
group none
style WINDOW_STYLE_EMPTY
rect 13 186 610 245
border 1
bordercolor .298 .305 .690 1
bordersize 2
forecolor 1 1 1 1
visible 1
decoration
}
// Title box for character models
itemDef
{
name background
group none
style WINDOW_STYLE_FILLED
rect 15 186 610 20
backcolor .298 .305 .690 1
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// TOP MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 7 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name newgamebutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show newgamebutton_glow
}
mouseExit
{
hide newgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
}
// Big button "PLAYER PROFILE"
itemDef
{
name profilebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name profilebutton
group toprow
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 1 1 1
visible 1
mouseEnter
{
//show profilebutton_glow
}
mouseExit
{
//hide profilebutton_glow
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group toprow
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show controlsbutton_glow
}
mouseExit
{
hide controlsbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open controlsmenu
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name setupbutton
group toprow
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// EXIT button in lower left corner
itemDef
{
name exitgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 59 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef
{
name exitgamebutton
group exit
text @MENUS_EXIT
descText @MENUS_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show exitgamebutton_glow
}
mouseExit
{
hide exitgamebutton_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3"
close all
open quitMenu
}
}
//-------------------------------
//
// PLAYER MENU SPECIFIC STUFF
//
//-------------------------------
// Name entry field
itemDef
{
name nameglow
group mods
style WINDOW_STYLE_SHADER
rect 20 156 300 32
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name namefield
type ITEM_TYPE_EDITFIELD
style 0
text @MENUS_NAME1
cvar "ui_Name"
maxchars 26
rect 15 163 300 28
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -5
font 2
textscale 1
forecolor .615 .615 .956 1
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
border 0
bordercolor 0 0 0 0
descText @MENUS_ENTER_YOUR_NAME_HERE
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show nameglow
}
mouseexit
{
hide nameglow
}
}
// Player Model label
itemDef
{
name modeltitle
style 0
text @MENUS_CHARACTER_MODEL
rect 320 184 0 0
textalign ITEM_ALIGN_CENTER
textalignx 0
textaligny -3
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 2
textscale 1
forecolor .549 .854 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav" ;
}
}
// Skin/Team Color Chooser
itemDef
{
name setcolor
style 0
text @MENUS_TEAM_COLOR
ownerdraw UI_SKIN_COLOR
rect 50 209 160 20
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -5
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 2
textscale .9
forecolor .615 .615 .956 1
border 0
bordercolor 0 0 0 0
descText @MENUS_CHOOSE_THE_COLOR_FOR
visible 1
action
{
play "sound/interface/button1.wav" ;
}
}
// Scroll box with portraits.
itemDef
{
name headlist
rect 30 224 404 194
// rect 126 215 80 200
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 64
elementheight 64
elementtype LISTBOX_IMAGE
feeder FEEDER_Q3HEADS
// horizontalscroll
backcolor 0 0 0 1
border 1
bordercolor .5 .5 .5 1
forecolor 1 1 1 1
descText @MENUS_CHOOSE_THE_MODEL_FOR
visible 1
textscale 0.7
action
{
play "sound/interface/button1.wav" ;
}
mouseenter
{
setitemcolor headlist bordercolor 1 0 0 1
}
mouseexit
{
setitemcolor headlist bordercolor .5 .5 .5 1
}
}
// Custom skin
itemDef
{
name customtitle
style 0
text @MENUS_CUSTOM
rect 425 250 200 26
textalign ITEM_ALIGN_CENTER
textalignx 100
textaligny -3
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 2
textscale 1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name custom
group none
background "gfx/mp/custom_mp_default"
descText @MENUS_CUSTOMPLAYER_DESC
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_SHADER
rect 480 280 96 96
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 3
forecolor .5 .5 .5 1
visible 1
mouseenter
{
setitemcolor custom forecolor 1 1 1 1
}
mouseexit
{
setitemcolor custom forecolor .5 .5 .5 1
}
action
{
play "sound/interface/button1.wav"
close playerMenu
open playerMenu2
}
}
itemDef
{
name next_glow
group mods
style WINDOW_STYLE_SHADER
rect 455 444 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef
{
name next
group none
text @MENUS_APPLY_CAPS
descText @MENUS_APPLY_PLAYER_SABER
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 455 444 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 3
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
close all
// uiScript "updatecharmodel"
// uiScript "updatecharcvars"
open saberMenu
// open mainMenu
}
mouseEnter
{
show next_glow
}
mouseExit
{
hide next_glow
}
}
}
}

821
base/ui/jamp/player2.menu Normal file
View File

@@ -0,0 +1,821 @@
// CHARACTER CREATION MENU
{
menuDef
{
name "playerMenu2"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 430
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
uiScript "getcharcvars"
uiScript "character"
}
onESC
{
play "sound/interface/menuroam.wav"
close playerMenu2
open playerMenu
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
// background "gfx/menus/main_background"
background "gfx/menus/charmenu"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 -60 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 -60 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
// CREATION title
itemDef
{
name creation_title
group title
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_CHARACTER_CREATION
rect 100 54 440 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name character
group models
type ITEM_TYPE_MODEL
//rect 95 84 820 1000
rect 52 84 900 1000
model_g2anim "BOTH_WALK1"
asset_model "ui_char_model"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
//model_g2mins -20 -15 -10
//model_g2maxs 10 15 20
model_g2mins -10 -15 -10
model_g2maxs 20 15 30
model_rotation 50
//model_fovx 75
model_fovx 50
//model_fovy 75
model_fovy 50
isCharacter 1
visible 1
decoration
}
itemDef
{
name background2
group none
style WINDOW_STYLE_SHADER
rect 320 360 320 120
background "gfx/menus/charmenu_bottom"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// TOP MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 7 16 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name newgamebutton
group nbut
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 16 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show newgamebutton_glow
}
mouseExit
{
hide newgamebutton_glow
}
action
{
close all ;
open multiplayermenu
}
}
// Big button "PROFILE"
itemDef
{
name profilebutton
group lbut
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 16 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 1 1 1
visible 1
mouseEnter
{
}
mouseExit
{
}
action
{
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 16 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 16 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show controlsbutton_glow
}
mouseExit
{
hide controlsbutton_glow
}
action
{
close all ;
open controlsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 502 16 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name setupbutton
group sbut
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 16 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
//
// CHARACTER MENU specific stuff
//
//----------------------------------------------------------------------------------------------
//////////////////
// SPECIES BUTTON
//////////////////
itemDef
{
name species
group none
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 30 88 140 24
forecolor .549 .854 1 1
text @MENUS_SPECIES
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -1
font 3
textscale 1
visible 1
decoration
}
itemDef
{
name speciesbut_glow
group none
style WINDOW_STYLE_SHADER
rect 176 92 150 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name speciesbut
group none
text " "
descText @MENUS_CHOOSE_SPECIES
type ITEM_TYPE_MULTI
style WINDOW_STYLE_EMPTY
rect 176 92 150 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor .615 .615 .956 1
feeder 19 //FEEDER_PLAYER_SPECIES
cvar "ui_char_model"
cvarStrList feeder
visible 1
mouseEnter
{
show speciesbut_glow
}
mouseExit
{
hide speciesbut_glow
}
action
{
play "sound/interface/button1.wav"
uiScript "characterchanged"
uiScript "resetcharacterlistboxes"
}
}
////////////////////
// COLOR TINT AREA
////////////////////
itemDef
{
name color
group none
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 30 144 160 24
text @MENUS_COLOR
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -1
font 3
textscale 1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name colorbox
group tints
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 32
elementheight 32
elementtype 1 //LISTBOX_IMAGE
feeder 23 //FEEDER_COLORCHOICES
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
rect 30 168 292 48
visible 1
action
{
play "sound/interface/choose_color.wav"
}
}
///////////////////////
//APPEARANCE
//////////////////////
itemDef
{
name appear
group none
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 30 252 180 24
forecolor .549 .854 1 1
text @MENUS_APPEARANCE
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -1
font 3
textscale 1
visible 1
decoration
}
// HEAD BUTTON
itemDef
{
name headbut_glow
group none
style WINDOW_STYLE_SHADER
rect 30 280 90 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name headbut
group none
text @MENUS_HEAD
descText @MENUS_SELECT_HEAD
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 30 280 90 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show headbut_glow
}
mouseExit
{
hide headbut_glow
}
action
{
play "sound/interface/button1.wav"
show heads
hide torso
hide lower
transition2 character 52 84 900 1000 20 25
}
}
// TORSO BUTTON
itemDef
{
name torsobut_glow
group none
style WINDOW_STYLE_SHADER
rect 126 280 90 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name torsobut
group none
text @MENUS_TORSO
descText @MENUS_SELECT_TORSO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 126 280 90 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show torsobut_glow
}
mouseExit
{
hide torsobut_glow
}
action
{
play "sound/interface/button1.wav"
show torso
hide heads
hide lower
transition2 character 355 84 300 340 20 25
}
}
// LEGS BUTTON
itemDef
{
name legsbut_glow
group none
style WINDOW_STYLE_SHADER
rect 224 280 90 16
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name legsbut
group none
text @MENUS_LEGS
descText @MENUS_SELECT_LEGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 224 280 90 16
font 2
textscale .9
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle 0
textalignx 0
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show legsbut_glow
}
mouseExit
{
hide legsbut_glow
}
action
{
play "sound/interface/button1.wav"
show lower
hide heads
hide torso
transition2 character 355 84 300 340 20 25
}
}
//////////////////////
//LISTBOXES
//////////////////////
itemDef
{
name headlistbox
group heads
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 20 //FEEDER_PLAYER_SKIN_HEAD
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
forecolor -1 //use playercolor
rect 30 306 292 93
visible 1
action
{
play "sound/interface/choose_head.wav"
uiScript "char_skin"
}
}
itemDef
{
name torsolistbox
group torso
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 21 //FEEDER_PLAYER_SKIN_TORSO
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
forecolor -1 //use playercolor
rect 30 306 292 93
visible 0
action
{
play "sound/interface/choose_torso.wav"
uiScript "char_skin"
}
}
itemDef
{
name lowerlistbox
group lower
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 22 //FEEDER_PLAYER_SKIN_LEGS
horizontalscroll
border 1
bordersize 1
backcolor .66 .66 1 .25
bordercolor .66 .66 1 1
forecolor -1 //use playercolor
rect 30 306 292 93
visible 0
action
{
play "sound/interface/choose_head.wav"
uiScript "char_skin"
}
}
// EXIT button in lower left corner
itemDef
{
name exitgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 59 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef
{
name exitgamebutton
group exit
text @MENUS_BACK
descText @MENUS_BACK_2_PROFILE
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show exitgamebutton_glow
}
mouseExit
{
hide exitgamebutton_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3"
close playerMenu2
open playerMenu
}
}
itemDef
{
name next_glow
group mods
style WINDOW_STYLE_SHADER
rect 455 444 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
// appearance_slot 1
decoration
}
itemDef
{
name next
group none
text @MENUS_APPLY_CAPS
descText @MENUS_APPLY_PLAYER_SABER
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 455 444 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 3
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
close all
uiScript "updatecharmodel"
// uiScript "updatecharcvars"
open saberMenu
// open mainMenu
}
mouseEnter
{
show next_glow
}
mouseExit
{
hide next_glow
}
}
}
}

652
base/ui/jamp/quickbots.menu Normal file
View File

@@ -0,0 +1,652 @@
//----------------------------------------------------------------------------------------------
// QUICK GAME BOT MENU -
// Set up the roster of bots and humans for a game. Called from Quick Game2 menu.
//
//ui_net_gametype
// 0 = FFA
// 1 = DUEL
// 2 = POWER DUEL
// 3 = TEAM FFA
// 4 = SIEGE
// 5 = CTF
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "quickbots"
fullScreen MENU_FALSE
rect 100 50 440 380 // Size and position of the menu
visible MENU_FALSE // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 380
descScale 1
descColor 1 .682 0 1 // Focus color for text and items
descAlignment ITEM_ALIGN_CENTER
popup
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
onESC
{
play "sound/interface/esc.wav" ;
close quickbots ;
open quickgame2 ;
}
itemDef
{
name frame_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 440 380
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
decoration
border 1
bordercolor .265 .824 .886 .25
bordersize 3
visible 1
}
//----------------------------------------------------------------------------------------------
// TITLE
//----------------------------------------------------------------------------------------------
// Bots title
itemDef
{
name title
group none
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_BOTS
rect 55 5 330 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 165
textaligny -1
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
// BOT LIST FOR NON-TEAMGAMES
//----------------------------------------------------------------------------------------------
itemDef
{
name botlist_slot
style 0
text @MENUS_1_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM1
rect 20 55 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 51 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_2_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM1
rect 20 75 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 71 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_3_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM2
rect 20 95 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 91 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_4_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM2
rect 20 115 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 111 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_5_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM3
rect 20 135 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 131 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_6_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM3
rect 20 155 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 151 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_7_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM4
rect 20 175 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 171 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_8_1
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM4
rect 20 195 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 191 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_9
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM5
rect 220 55 196 20
textalign ITEM_ALIGN_LEFT
textalignx 20
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 51 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_10
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM5
rect 220 75 196 20
textalign ITEM_ALIGN_LEFT
textalignx 10
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 71 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_11
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM6
rect 220 95 196 20
textalign ITEM_ALIGN_LEFT
textalignx 10
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 91 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_12
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM6
rect 220 115 196 20
textalign ITEM_ALIGN_LEFT
textalignx 10
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 111 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_13
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM7
rect 220 135 196 20
textalign ITEM_ALIGN_LEFT
textalignx 10
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 131 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_14
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM7
rect 220 155 196 20
textalign ITEM_ALIGN_LEFT
textalignx 10
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 151 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_15
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_BLUETEAM8
rect 220 175 196 20
textalign ITEM_ALIGN_LEFT
textalignx 10
textaligny -4
font 2
textscale 1
forecolor 0.65 0.65 1 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 171 250 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name botlist_slot
style 0
text @MENUS_16
descText @MENUS_CLICK_FOR_HUMAN_BOTS
ownerdraw UI_REDTEAM8
rect 220 195 196 20
textalign ITEM_ALIGN_LEFT
textalignx 10
textaligny -4
font 2
textscale 1
forecolor 1 0.2 0.2 1
border 0
bordercolor 0 0 0 0
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 200 191 250 28
}
mouseExit
{
hide button_glow
}
}
//----------------------------------------------------------------------------------------------
// DONE
//----------------------------------------------------------------------------------------------
itemDef
{
name done
text @MENUS_DONE
descText @MENUS_RETURN_PREVIOUS
type ITEM_TYPE_BUTTON
font 3
textscale 1
style WINDOW_STYLE_EMPTY
rect 140 352 160 30
textalignx 80 // Center
textaligny 0
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close quickbots ;
}
mouseEnter
{
show button_glow
setitemrect button_glow 130 350 200 34
}
mouseExit
{
hide button_glow
}
}
}
}

431
base/ui/jamp/quickgame.menu Normal file
View File

@@ -0,0 +1,431 @@
//----------------------------------------------------------------------------------------------
//
// MULTIPLAYER QUICK SERVER MENU
//
// Allows player to quickly create a server
// This is the first screen which allows you to choose a map.
// The next screen lets you set up the rules.
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "quickgame"
fullScreen MENU_TRUE
rect 0 0 640 480 // Size and position of the menu
visible 1 // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onEsc
{
play "sound/interface/esc.wav" ;
close quickgame ;
open multiplayermenu
}
onOpen
{
uiScript loadArenas ;
uiScript checkforsiege ;
hide accept_alt ;
show accept ;
hide back_alt ;
show back ;
hide grpmessage
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
// Quick Game title
itemDef
{
name title_glow
group none
style WINDOW_STYLE_SHADER
rect 150 11 340 30
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name title
group none
style WINDOW_STYLE_EMPTY
background "gfx/menus/menu_blendbox"
text @MENUS_SOLO_GAME
rect 50 14 540 16
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 270
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// GAME TYPE SELECTION
//----------------------------------------------------------------------------------------------
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
// GAME TYPE SELECTION FIELD
// Do NOT change the name of this item - it's been hacked in code
// so that if you hit siege it hops over it to the next game type.
itemDef
{
name solo_gametypefield
style WINDOW_STYLE_EMPTY
ownerdraw UI_NETGAMETYPE
text @MENUS_GAME_TYPE
descText @MENUS_ALLOWS_YOU_TO_SELECT
textstyle 0
rect 170 60 300 32
textalign ITEM_ALIGN_RIGHT
textalignx 85
textaligny -1
font 2
textscale 1
forecolor .615 .615 .956 1
visible 1
border 0
bordercolor 1 1 1 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 125 57 400 38
}
mouseExit
{
hide button_glow
}
}
//----------------------------------------------------------------------------------------------
// MAP LISTING BOX
//----------------------------------------------------------------------------------------------
itemDef
{
name create_title
group none
style WINDOW_STYLE_EMPTY
text @MENUS_MAP_LISTING
rect 30 105 200 24
font 3
textscale .9
textalign ITEM_ALIGN_CENTER
textalignx 100
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name maplist
rect 35 125 194 250
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 20
font 4
textscale 1
elementtype LISTBOX_TEXT
feeder FEEDER_ALLMAPS
textstyle 6
textalign 3
textaligny 2
border 1
bordercolor .79 .64 .22 .5
forecolor .615 .615 .956 1
backcolor 0 0 .5 .75
outlinecolor .25 .464 .578 .5
descText @MENUS_CHOOSE_YOUR_GAME
visible 1
columns 1 2 190 172
action
{
play "sound/interface/button1.wav" ;
}
mouseEnter
{
setitemcolor maplist bordercolor .79 .64 .22 1
}
mouseExit
{
setitemcolor maplist bordercolor .79 .64 .22 .5
}
}
//----------------------------------------------------------------------------------------------
// MAP SCREENSHOT
//----------------------------------------------------------------------------------------------
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 280 104 340 280
backcolor 0 0 .6 .5
forecolor 1 1 1 1
border 1
bordercolor 0 0 .6 1
visible 1
decoration
}
itemDef
{
name mappreview
style 0
ownerdraw UI_STARTMAPCINEMATIC
rect 290 124 320 240
border 1
bordercolor .265 .824 .886 .25
visible 1
}
itemDef
{
name mappreview
style WINDOW_STYLE_FILLED
rect 289 123 322 242
border 1
bordercolor .265 .824 .886 .25
visible 1
}
//----------------------------------------------------------------------------------------------
// BOTTOM BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button
itemDef
{
name backbutton
group fade_buttons
text @MENUS_BACK
descText @MENUS_BACKUP_ONE_MENU
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 30 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/esc.wav" ;
close all ;
open multiplayermenu
}
}
// EXIT button
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 225 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
// NEXT button
itemDef
{
name next_button
text @MENUS_NEXT
descText @MENUS_CHOOSE_RULES
type ITEM_TYPE_BUTTON
font 3
textscale 1.1
textstyle 0
style WINDOW_STYLE_FILLED
rect 455 444 200 32
textalign 1
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close quickgame ;
open quickgame2
}
mouseEnter
{
show button_glow
setitemrect button_glow 425 441 190 30
}
mouseExit
{
hide button_glow
}
}
}
}

View File

@@ -0,0 +1,865 @@
//----------------------------------------------------------------------------------------------
//
// MULTIPLAYER QUICK SERVER MENU
//
// Allows player to choose quickly game server rules
// This is the second screen in the quick game series.
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "quickgame2"
fullScreen MENU_TRUE
rect 0 0 640 480 // Size and position of the menu
visible 1 // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onEsc
{
play "sound/interface/esc.wav" ;
close quickgame2 ;
open quickgame
}
onOpen
{
hide accept_alt ;
show accept ;
hide back_alt ;
show back ;
hide grpmessage
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
// Create Server title
//----------------------------------------------------------------------------------------------
// Quick Game title
itemDef
{
name title_glow
group none
style WINDOW_STYLE_SHADER
rect 150 11 340 30
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name title
group none
style WINDOW_STYLE_EMPTY
background "gfx/menus/menu_blendbox"
text @MENUS_SOLO_GAME
rect 50 14 540 16
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 270
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// GENERAL RULES
//----------------------------------------------------------------------------------------------
itemDef
{
name rules_title
group none
text @MENUS_GENERAL_RULES
rect 5 110 240 20
font 3
textscale 0.8
textalign ITEM_ALIGN_CENTER
textalignx 120
textaligny -2
forecolor .549 .854 1 1
visible 1
decoration
}
// LIGHTSABER ONLY
itemDef
{
name options
group grpOptions
type ITEM_TYPE_YESNO
text @MENUS_LIGHTSABER_ONLY
descText @MENUS_SABER_ONLY_INFO
cvar "g_weaponDisable"
rect 5 130 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
forecolor .615 .615 .956 1
visible 1
cvarTest "ui_netGameType"
//Hide in Duel/Power Duel
hideCvar
{
"1" ;
"2"
}
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 127 260 30
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name options
group grpOptions
type ITEM_TYPE_YESNO
text @MENUS_LIGHTSABER_ONLY
descText @MENUS_SABER_ONLY_INFO
cvar "g_duelWeaponDisable"
rect 5 130 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
forecolor .615 .615 .956 1
visible 1
cvarTest "ui_netGameType"
//hide in everthing but Duel/Power Duel
showCvar
{
"1" ;
"2"
}
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 127 260 30
}
mouseExit
{
hide button_glow
}
}
// FORCE POWER DISABLE
itemDef
{
name options
group grpOptions
type ITEM_TYPE_YESNO
text @MENUS_DISABLE_FORCE
descText @MENUS_DISABLE_FORCE_INFO
cvar "g_forcePowerDisable"
cvarTest "ui_netGameType"
hideCvar
{
"4"
}
rect 5 150 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
forecolor .615 .615 .956 1
visible 1
action
{
uiScript forcePowersDisable ;
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 147 260 30
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name normal
group grpsettings
text @MENUS_FORCE_MASTERY
descText @MENUS_FORCE_MASTERY_INFO
ownerdraw UI_FORCE_MASTERY_SET
cvarTest "ui_netGameType"
hideCvar
{
"4"
}
rect 5 170 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny 0
font 2
textscale .9
forecolor .615 .615 .956 1
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 167 260 30
}
mouseExit
{
hide button_glow
}
}
//----------------------------------------------------------------------------------------------
// END GAME RULES TITLE
//----------------------------------------------------------------------------------------------
itemDef
{
name end_game_title
group none
text @MENUS_ENDGAME_RULES
rect 5 200 240 20
font 3
textscale 0.8
textalign ITEM_ALIGN_CENTER
textalignx 120
textaligny -2
forecolor .549 .854 1 1
visible 1
decoration
}
// TIME LIMIT
itemDef
{
name normal
group grpsettings
type ITEM_TYPE_NUMERICFIELD
text @MENUS_TIME_LIMIT
cvar "timelimit"
rect 5 220 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
maxchars 4
forecolor .615 .615 .956 1
visible 1
descText @MENUS_THIS_VALUE_ADJUSTS_THE
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 217 260 30
}
mouseExit
{
hide button_glow
}
}
// KILL LIMIT / CAPTURE LIMIT /DUEL LIMIT
itemDef
{
name normal
group grpsettings
type ITEM_TYPE_NUMERICFIELD
text @MENUS_KILL_LIMIT
cvar "fraglimit"
cvarTest "ui_netGameType"
showCvar
{
"0" ;
"3" ;
}
rect 5 240 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
maxchars 4
forecolor .615 .615 .956 1
visible 1
descText @MENUS_ESTABLISH_THE_NUMBER
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 237 260 30
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name normal
group grpsettings
type ITEM_TYPE_NUMERICFIELD
text @MENUS_CAPTURE_LIMIT
cvar "capturelimit"
cvarTest "ui_netGameType"
showCvar
{
"5" ;
}
rect 5 240 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
maxchars 8
forecolor .615 .615 .956 1
visible 1
descText @MENUS_THIS_IS_THE_NUMBER_OF
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 237 260 30
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name normal
group grpsettings
type ITEM_TYPE_NUMERICFIELD
text @MENUS_DUEL_LIMIT
descText @MENUS_VALUE_ADJUSTS_THE_TOTAL
cvar "duel_fraglimit"
cvarTest "ui_netGameType"
hideCvar
{
"0" ;
"3" ;
"4" ;
"5" ;
}
rect 5 240 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
maxchars 8
forecolor .615 .615 .956 1
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 237 260 30
}
mouseExit
{
hide button_glow
}
}
//----------------------------------------------------------------------------------------------
// BOTS TITLE
//----------------------------------------------------------------------------------------------
itemDef
{
name bots_title
group none
text @MENUS_BOTS
rect 5 280 240 20
font 3
textscale 0.8
textalign ITEM_ALIGN_CENTER
textalignx 120
textaligny -2
forecolor .549 .854 1 1
visible 1
decoration
}
// MINIMUM BOTS/PLAYERS
itemDef
{
name expert_button
group grpsettings
type ITEM_TYPE_NUMERICFIELD
maxchars 4
text @MENUS_PLAYERS
descText @MENUS_PLAYERS_INFO
cvar "bot_minplayers"
rect 5 300 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
forecolor .615 .615 .956 1
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 297 260 30
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name expert_button
group grpsettings
type ITEM_TYPE_NUMERICFIELD
text @MENUS_MAXIMUM_PLAYERS
cvar "sv_maxclients"
rect 5 320 240 20
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
forecolor .615 .615 .956 1
maxchars 6
visible 1
descText @MENUS_SETS_THE_MAXIMUM_NUMBER
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show settingsButton1
}
mouseExit
{
hide settingsButton1
uiscript clampmaxplayers
}
}
itemDef
{
name difficulty_button
style 0
ownerdraw UI_SKILL
text @MENUS_SKILL
descText @MENUS_ADJUSTS_THE_DIFFICULTY
rect 5 340 240 20
textstyle 0
textalign ITEM_ALIGN_RIGHT
textalignx 165
textaligny -2
font 2
textscale .9
forecolor .615 .615 .956 1
visible 1
action
{
play "sound/interface/button1.wav"
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 337 260 30
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name custombots_button
text @MENUS_SELECT_BOTS
descText @MENUS_SELECT_BOTS_DESC
type ITEM_TYPE_BUTTON
font 2
textscale .9
textstyle 0
style WINDOW_STYLE_FILLED
rect 5 360 240 20
textalignx 120
textaligny -2
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
open quickbots
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 357 260 30
}
mouseExit
{
hide button_glow
}
}
//----------------------------------------------------------------------------------------------
// MAP SCREENSHOT
//----------------------------------------------------------------------------------------------
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 280 104 340 280
backcolor 0 0 .6 .5
forecolor 1 1 1 1
border 1
bordercolor 0 0 .6 1
visible 1
decoration
}
itemDef
{
name mappreview
style 0
ownerdraw UI_STARTMAPCINEMATIC
rect 290 124 320 240
border 1
bordercolor .265 .824 .886 .25
visible 1
}
itemDef
{
name mappreview
style WINDOW_STYLE_FILLED
rect 289 123 322 242
border 1
bordercolor .265 .824 .886 .25
visible 1
}
//----------------------------------------------------------------------------------------------
// BOTTOM BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button
itemDef
{
name back_button
group fade_buttons
text @MENUS_BACK
descText @MENUS_BACKUP_ONE_MENU
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 30 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/esc.wav" ;
close quickgame2 ;
open quickgame
}
}
// EXIT button
itemDef
{
name exitgame_button
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 225 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
// NEXT button
itemDef
{
name next_button
text @MENUS_NEXT
descText @MENUS_START_SERVER
type ITEM_TYPE_BUTTON
font 3
textscale 1.1
textstyle 0
style WINDOW_STYLE_FILLED
rect 455 444 200 32
textalign 1
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 425 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript weaponDisable ; //update the weapondisable cvar for duel or non-duel
setcvar ui_singlePlayerActive "1"
uiScript StartServer ;
close quickgame2 ;
}
}
}
}

505
base/ui/jamp/quit.menu Normal file
View File

@@ -0,0 +1,505 @@
//----------------------------------------------------------------------------------------------
//
// QUIT MENU
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "quitMenu"
visible 0
fullScreen 1 // MENU_TRUE
rect 0 0 640 480 // Size and position of the menu
focusColor 1 1 1 1 // Focus color for text and items
appearanceIncrement 100 // In miliseconds
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
appearanceIncrement 100 // In miliseconds
onESC
{
play "sound/interface/button1.wav" ;
close quitMenu ;
open mainMenu ;
}
onOpen
{
setfocus quitgame_cancel
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 50 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// TOP MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 7 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name newgamebutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show newgamebutton_glow
}
mouseExit
{
hide newgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
}
// Big button "PLAYER PROFILE"
itemDef
{
name profilebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name profilebutton
group toprow
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show profilebutton_glow
}
mouseExit
{
hide profilebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open playerMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group toprow
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show controlsbutton_glow
}
mouseExit
{
hide controlsbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open controlsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name setupbutton
group toprow
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Credits hidden button
itemDef
{
name creditsbutton
group othermain
// text @CREDITS
descText @MENUS_SHOW_GAME_CREDITS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 200 144 256 256
font 2
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textalignx 46
backcolor 0 0 0 0
forecolor 0.65 0.65 1 1
visible 0
mouseEnter
{
}
mouseExit
{
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open creditsMenu
}
}
//----------------------------------------------------------------------------------------------
//
// QUIT MENU specific stuff
//
//----------------------------------------------------------------------------------------------
// Quitting title
itemDef
{
name quit_title
group none
text @MENUS_LEAVING_JEDI_KNIGHT_2
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
rect 100 164 440 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name confirm
group none
text @MENUS_QUIT_JEDI_KNIGHT_II
font 2
textscale 1
textstyle 0
rect 95 250 450 20
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny 0
decoration
forecolor 1 .682 0 1
visible 1
}
itemDef
{
name quitgame_cancel_button
group none
style WINDOW_STYLE_SHADER
rect 59 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// CANCEL button
itemDef
{
name quitgame_cancel
group none
text @MENUS_NO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 0
descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close quitMenu ;
open mainMenu ;
}
mouseEnter
{
show quitgame_cancel_button
}
mouseExit
{
hide quitgame_cancel_button
}
}
itemDef
{
name quitgame_yes_button
group none
style WINDOW_STYLE_SHADER
rect 454 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// YES button
itemDef
{
name quitgame_yes
group none
text @MENUS_YES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 454 444 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 0
descText @MENUS_JEDI_KNIGHT_II
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript Quit // Quit the game
}
mouseEnter
{
show quitgame_yes_button
}
mouseExit
{
hide quitgame_yes_button
}
}
}
}

595
base/ui/jamp/rules.menu Normal file
View File

@@ -0,0 +1,595 @@
//----------------------------------------------------------------------------------------------
// MULTIPLAYER RULES
//
// Rules main menu.From here you can get at any of the rules menus.
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "rulesMenu"
fullScreen 1
rect 0 0 640 480 // Size and position of the menu
visible 0
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
setcvar "ui_rules_backout" 0 ;
}
onESC
{
play "sound/interface/esc.wav" ;
close rulesMenu ;
open multiplayerMenu ;
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 50 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// TOP MENU BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
// Big button "PLAY"
itemDef
{
name playbutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 0 124 180 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
}
// Big button "PLAYER PROFILE"
itemDef
{
name profilebutton
group toprow
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 120 124 230 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open playerMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton
group toprow
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 290 124 230 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open controlsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton
group toprow
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 452 124 230 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
// SECOND ROW MENU BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name title_glow
group none
style WINDOW_STYLE_SHADER
rect 150 162 340 20
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name default_rulesheader
group rulesheader
style WINDOW_STYLE_EMPTY
text @MENUS_RULES
rect 100 164 440 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
// GAMES
itemDef
{
name gamesmenubutton
group default_submenu
text @MENUS_GAMES
descText @MENUS_GAME_RULES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 190 190 40
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 175 196 300 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close "rulesMenu" ;
open "rulesMenu_games" ;
}
}
// Games
itemDef
{
name forcemenubutton
group default_submenu
text @MENUS_FORCE_POWERS
descText @MENUS_FORCE_RULES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 230 190 40
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 175 236 300 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close "rulesMenu" ;
open "rulesMenu_force" ;
}
}
// Weapons
itemDef
{
name weaponmenubutton
group default_submenu
text @MENUS_WEAPONS
descText @MENUS_WEAPON_RULES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 270 190 40
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close "rulesMenu" ;
open "rulesMenu_weapons" ;
}
mouseEnter
{
show button_glow
setitemrect button_glow 175 276 300 30
}
mouseExit
{
hide button_glow
}
}
// Items
itemDef
{
name itemmenubutton
group default_submenu
text @MENUS_ITEMS
descText @MENUS_ITEM_RULES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 310 190 40
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close "rulesMenu" ;
open "rulesMenu_items" ;
}
mouseEnter
{
show button_glow
setitemrect button_glow 175 316 300 30
}
mouseExit
{
hide button_glow
}
}
// Move
itemDef
{
name itemmenubutton
group default_submenu
text @MENUS_MOVES
descText @MENUS_MOVE_RULES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 350 190 40
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close "rulesMenu" ;
open "rulesMenu_moves" ;
}
mouseEnter
{
show button_glow
setitemrect button_glow 175 356 300 30
}
mouseExit
{
hide button_glow
}
}
//----------------------------------------------------------------------------------------------
// BOTTOM BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button
itemDef
{
name backbutton
group fade_buttons
text @MENUS_BACK
descText @MENUS_BACKTOMAIN
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 30 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/esc.wav" ;
close all ;
open mainMenu
}
}
// EXIT button
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 225 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,963 @@
//----------------------------------------------------------------------------------------------
// RULES
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "rulesMenu_games"
fullScreen MENU_TRUE
rect 0 0 640 480 // Size and position of the menu
visible 0
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
hide gamedesc ;
show ffa_desc ;
setitemcolor game_submenu forecolor 1 .682 0 1;
setitemcolor ffamenubutton forecolor 1 1 1 1 ;
}
onESC
{
play "sound/interface/button1.wav" ;
close "rulesMenu_games" ;
open "rulesMenu" ;
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 50 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
//
// TOP MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 7 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name newgamebutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
text @MENUS_PLAY
descText @MENUS_START_PLAYING_NOW
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show newgamebutton_glow
}
mouseExit
{
hide newgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open multiplayermenu
}
}
// Big button "PLAYER PROFILE"
itemDef
{
name profilebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name profilebutton
group toprow
text @MENUS_PROFILE
descText @MENUS_PROFILE_DESC
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show profilebutton_glow
}
mouseExit
{
hide profilebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open playerMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group toprow
text @MENUS_CONTROLS2
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show controlsbutton_glow
}
mouseExit
{
hide controlsbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open controlsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name setupbutton
group toprow
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setup_menu
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Credits hidden button
itemDef
{
name creditsbutton
group othermain
// text @CREDITS
descText @MENUS_SHOW_GAME_CREDITS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 200 144 256 256
font 2
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textalignx 46
backcolor 0 0 0 0
forecolor 0.65 0.65 1 1
visible 0
mouseEnter
{
}
mouseExit
{
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open creditsMenu
}
}
// BACK button
itemDef
{
name backbutton
group fade_buttons
text @MENUS_BACK
descText @MENUS_BACKTORULES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 30 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/esc.wav" ;
close all ;
open rulesMenu
}
}
// EXIT button in lower left corner
itemDef
{
name exitgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 255 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show exitgamebutton_glow
}
mouseExit
{
hide exitgamebutton_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
//----------------------------------------------------------------------------------------------
//
// SECOND ROW MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
itemDef
{
name game_rulesheader
group rulesheader
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_GAME_RULES_TITLE
rect 100 164 440 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
// Main highlights
itemDef
{
group mainhighlight
name mainhighlight1
style WINDOW_STYLE_SHADER
rect 40 185 170 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
group mainhighlight
name mainhighlight2
style WINDOW_STYLE_SHADER
rect 40 215 170 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
group mainhighlight
name mainhighlight3
style WINDOW_STYLE_SHADER
rect 40 245 170 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
group mainhighlight
name mainhighlight4
style WINDOW_STYLE_SHADER
rect 40 275 170 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
group mainhighlight
name mainhighlight5
style WINDOW_STYLE_SHADER
rect 40 305 170 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
group mainhighlight
name mainhighlight6
style WINDOW_STYLE_SHADER
rect 40 335 170 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
group mainhighlight
name mainhighlight7
style WINDOW_STYLE_SHADER
rect 40 365 170 30
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
//
// GAME RULES
//
//----------------------------------------------------------------------------------------------
// ffa button
itemDef
{
name ffamenubutton
group game_submenu
text @MENUS_FFA_CAPS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 40 185 170 30
font 2
textscale 0.8
textalignx 170
textaligny 5
textalign ITEM_ALIGN_RIGHT
textstyle 0
forecolor 1 .682 0 1
visible 1
descText @MENUS_FREE_FOR_ALL_GAME_RULES
mouseEnter
{
show mainhighlight1
}
mouseExit
{
hide mainhighlight1
}
action
{
play "sound/interface/button1.wav" ;
setitemcolor game_submenu forecolor 1 .682 0 1;
setitemcolor ffamenubutton forecolor 1 1 1 1 ;
hide gamedesc ;
show ffa_desc ;
}
}
// ffa button
itemDef
{
name duelmenubutton
group game_submenu
text @MENUS_DUEL_CAPS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 40 215 170 30
font 2
textscale 0.8
textalignx 170
textaligny 5
textalign ITEM_ALIGN_RIGHT
textstyle 0
forecolor 1 .682 0 1
visible 1
descText @MENUS_DUEL_GAMETYPE
mouseEnter
{
show mainhighlight2
}
mouseExit
{
hide mainhighlight2
}
action
{
play "sound/interface/button1.wav" ;
setitemcolor game_submenu forecolor 1 .682 0 1;
setitemcolor duelmenubutton forecolor 1 1 1 1 ;
hide gamedesc ;
show duel_desc ;
}
}
itemDef
{
name pduelmenubutton
group game_submenu
text @MENUS_POWERDUEL_CAPS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 40 245 170 30
font 2
textscale 0.8
textalignx 170
textaligny 5
textstyle 0
textalign ITEM_ALIGN_RIGHT
forecolor 1 .682 0 1
visible 1
descText @MENUS_POWERDUEL_GAME_RULES
mouseEnter
{
show mainhighlight3
}
mouseExit
{
hide mainhighlight3
}
action
{
play "sound/interface/button1.wav" ;
setitemcolor game_submenu forecolor 1 .682 0 1;
setitemcolor pduelmenubutton forecolor 1 1 1 1 ;
hide gamedesc ;
show pduel_desc ;
}
}
itemDef
{
name teamffamenubutton
group game_submenu
text @MENUS_TEAM_FFA_CAPS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 40 275 170 30
font 2
textscale 0.8
textalignx 170
textaligny 5
textstyle 0
textalign ITEM_ALIGN_RIGHT
forecolor 1 .682 0 1
visible 1
descText @MENUS_TEAM_FFA_GAMETYPE
mouseEnter
{
show mainhighlight4
}
mouseExit
{
hide mainhighlight4
}
action
{
play "sound/interface/button1.wav" ;
setitemcolor game_submenu forecolor 1 .682 0 1;
setitemcolor teamffamenubutton forecolor 1 1 1 1 ;
hide gamedesc ;
show teamffa_desc ;
}
}
// force button
itemDef
{
name ctfmenubutton
group game_submenu
text @MENUS_CTF_CAPS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 40 305 170 30
font 2
textscale 0.8
textalignx 170
textaligny 5
textalign ITEM_ALIGN_RIGHT
textstyle 0
forecolor 1 .682 0 1
visible 1
descText @MENUS_CAPTURE_THE_FLAG_RULES
mouseEnter
{
show mainhighlight5
}
mouseExit
{
hide mainhighlight5
}
action
{
play "sound/interface/button1.wav" ;
setitemcolor game_submenu forecolor 1 .682 0 1;
setitemcolor ctfmenubutton forecolor 1 1 1 1 ;
hide gamedesc ;
show ctf_desc ;
}
}
// force button
itemDef
{
name siegemenubutton
group game_submenu
text @MENUS_SIEGE_CAPS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 40 335 170 30
font 2
textscale 0.8
textalignx 170
textaligny 5
textalign ITEM_ALIGN_RIGHT
textstyle 0
forecolor 1 .682 0 1
visible 1
descText @MENUS_SIEGE_GAME_RULES
mouseEnter
{
show mainhighlight6
}
mouseExit
{
hide mainhighlight6
}
action
{
play "sound/interface/button1.wav" ;
setitemcolor game_submenu forecolor 1 .682 0 1 ;
setitemcolor siegemenubutton forecolor 1 1 1 1 ;
hide gamedesc ;
show siege_desc ;
}
}
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 225 183 370 230
backcolor 0 0 .6 .5
forecolor 1 1 1 1
border 1
bordercolor 0 0 .6 1
visible 1
decoration
}
itemDef
{
group gamedesc
name duel_desc
text @MENUS_THE_GAME_OF_DUEL_IS_ALSO
type ITEM_TYPE_TEXTSCROLL
style WINDOW_STYLE_EMPTY
visible 0
rect 235 187 360 225
font 4
textscale 1
textalign ITEM_ALIGN_LEFT
textaligny 12
backcolor 0 0 1 0
forecolor .549 .854 1 1
lineHeight 15
maxLineChars 45
}
itemDef
{
group gamedesc
name teamffa_desc
text @MENUS_THIS_GAME_PITS_TWO_JEDI
type ITEM_TYPE_TEXTSCROLL
style WINDOW_STYLE_EMPTY
visible 0
rect 235 187 360 225
font 4
textscale 1
textalign ITEM_ALIGN_LEFT
textaligny 12
backcolor 0 0 1 0
forecolor .549 .854 1 1
lineHeight 15
maxLineChars 45
}
itemDef
{
group gamedesc
name ctf_desc
text @MENUS_IN_CAPTURE_THE_FLAG_CTF
type ITEM_TYPE_TEXTSCROLL
style WINDOW_STYLE_EMPTY
visible 0
rect 235 187 360 225
font 4
textscale 1
textalign ITEM_ALIGN_LEFT
textaligny 12
backcolor 0 0 1 0
forecolor .549 .854 1 1
lineHeight 15
maxLineChars 45
}
itemDef
{
group gamedesc
name siege_desc
text @MENUS_SIEGE_GAME_RULES_DESC
type ITEM_TYPE_TEXTSCROLL
style WINDOW_STYLE_EMPTY
visible 0
rect 235 187 360 225
font 4
textscale 1
textalign ITEM_ALIGN_LEFT
textaligny 12
backcolor 0 0 1 0
forecolor .549 .854 1 1
lineHeight 15
maxLineChars 45
}
itemDef
{
group gamedesc
name ffa_desc
text @MENUS_THIS_GAME_IS_BEST_SUMMED
type ITEM_TYPE_TEXTSCROLL
style WINDOW_STYLE_EMPTY
visible 0
rect 235 187 360 225
font 4
textscale 1
textalign ITEM_ALIGN_LEFT
textaligny 12
backcolor 0 0 1 0
forecolor .549 .854 1 1
lineHeight 15
maxLineChars 45
}
itemDef
{
group gamedesc
name pduel_desc
text @MENUS_POWERDUEL_GAME_RULES_DESC
type ITEM_TYPE_TEXTSCROLL
style WINDOW_STYLE_EMPTY
visible 0
rect 235 187 360 225
font 4
textscale 1
textalign ITEM_ALIGN_LEFT
textaligny 12
backcolor 0 0 1 0
forecolor .549 .854 1 1
lineHeight 15
maxLineChars 45
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,461 @@
//----------------------------------------------------------------------------------------------
//
// MP - Rules Moves
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "rulesMenu_moves"
fullScreen 1 // MENU_TRUE
rect 0 0 640 480 // Size and position of the menu
visible 1 // Visible on open
focusColor 1 1 1 1 // Focus color for text and items
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onESC
{
play "sound/interface/esc.wav"
close "rulesMenu_moves" ;
open "rulesMenu" ;
}
onOpen
{
setcvar "ui_movesflag" 0
setcvar "ui_move_title" 2
uiScript setMoveCharacter
uiScript setMovesListDefault
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
// MOVES BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name game_rulesheader
group rulesheader
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_MOVES
rect 100 5 440 24
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// DATA
//----------------------------------------------------------------------------------------------
itemDef
{
name move_titles_box
group none
style WINDOW_STYLE_FILLED
rect 25 47 255 23
backcolor 0 0 .6 1
visible 1
decoration
}
itemDef
{
name move_titles_outline
group none
style WINDOW_STYLE_EMPTY
rect 24 68 255 30
border 1
bordersize 1
bordercolor 0 0 .6 1
visible 1
decoration
}
itemDef
{
name move_titles_title
type ITEM_TYPE_TEXT
rect 25 47 255 23
text @MENUS_MOVE_TYPES
font 3
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 125
visible 1
decoration
}
itemDef
{
name move_titles
group none
text " "
descText @MENUS_CHOOSE_MOVE_DESC
type ITEM_TYPE_MULTI
style WINDOW_STYLE_EMPTY
rect 25 77 340 14
font 2
textscale .8
textaligny -5
textalign ITEM_ALIGN_LEFT
textstyle .8
textalignx 0
backcolor 0 0 0 0
forecolor .615 .615 .956 1
feeder 42 //FEEDER_MOVES_TITLES
cvar "ui_move_title"
cvarFloatList
{
"@MENUS_ACROBATICS" 0
"@MENUS_SINGLE_FAST" 1
"@MENUS_SINGLE_MEDIUM" 2
"@MENUS_SINGLE_STRONG" 3
"@MENUS_DUAL_SABERS" 4
"@MENUS_SABER_STAFF" 5
}
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 0 73 320 24
}
mouseExit
{
hide button_glow
}
action
{
uiScript resetMovesList
play "sound/interface/button1.wav"
}
}
itemDef
{
name moveslist_title_box
group none
style WINDOW_STYLE_FILLED
rect 26 110 253 23
backcolor 0 0 .6 1
visible 1
decoration
}
itemDef
{
name moveslist_title
type ITEM_TYPE_TEXT
rect 35 108 253 26
text @MENUS_MOVES
font 3
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 125
visible 1
decoration
}
itemDef
{
name moveslist
group none
rect 25 130 253 250
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 16
font 2
textscale 0.7
border 1
bordersize 1
bordercolor 0 0 .8 1
forecolor .615 .615 .956 1
backcolor 0 0 .5 .25
outlinecolor .5 .5 .5 .5
elementtype LISTBOX_TEXT
feeder 41
desctext @MENUS_MOVE_DESC2
notselectable
visible 1
columns 1 2 55 225
mouseEnter
{
setitemcolor moveslist bordercolor 1 1 1 1
}
mouseExit
{
setitemcolor moveslist bordercolor 0 0 .8 1
}
doubleclick
{
play sound/interface/button1.wav
}
}
itemDef
{
name character_box
group none
style WINDOW_STYLE_EMPTY
rect 285 38 330 370
border 1
bordersize 2
bordercolor 0 0 .6 1
visible 1
decoration
}
itemDef
{
name character
group models
type ITEM_TYPE_MODEL
rect 295 -30 300 340
model_g2anim "BOTH_ROLL_F"
asset_model "ui_char_model"
model_angle 180
model_g2mins -20 -15 -10
model_g2maxs 20 15 45
model_rotation 50
model_fovx 50
model_fovy 50
isCharacter 1
isSaber 1
visible 1
decoration
}
itemDef
{
name item_desc
type ITEM_TYPE_TEXTSCROLL
rect 295 300 320 90
text " "
cvar ui_move_desc
font 4
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_LEFT
textaligny 6
visible 1
lineHeight 13
}
//----------------------------------------------------------------------------------------------
// OTHER MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// Credits hidden button
itemDef
{
name creditsbutton
group othermain
// text @CREDITS
descText @MENUS_SHOW_GAME_CREDITS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 200 144 256 256
font 2
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textalignx 46
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 0
mouseEnter
{
}
mouseExit
{
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open creditsMenu
}
}
// BACK button
itemDef
{
name backbutton
group fade_buttons
text @MENUS_BACK
descText @MENUS_BACKTORULES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 30 441 190 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/esc.wav" ;
close all ;
open rulesMenu
}
}
// EXIT button in lower left corner
itemDef
{
name exitgamebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 255 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_LEAVE_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show exitgamebutton_glow
}
mouseExit
{
hide exitgamebutton_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open quitMenu
}
}
}
}

File diff suppressed because it is too large Load Diff

1381
base/ui/jamp/saber.menu Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,179 @@
//----------------------------------------------------------------------------------------------
//
// SERVER INFORMATION POPUP MENU
//
// List information pertinant to one server
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "serverinfo_popmenu"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 140 60 360 360
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 320
descY 400
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
popup
onOpen
{
uiScript ServerStatus
}
onESC
{
play "sound/interface/esc.wav" ;
close serverinfo_popmenu
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 0 0 360 360
backcolor 0 0 .35 .9
forecolor 1 1 1 1
border 1
bordercolor 0 0 .8 1
visible 1
decoration
}
//---------------------------------------------
// TITLE
//---------------------------------------------
// title
itemDef
{
name screenTitle
text @MENUS_SERVER_INFORMATION
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
rect 10 5 340 20
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 170
textaligny 1
forecolor .549 .854 1 1
visible 1
decoration
}
//---------------------------------------------
// SERVER INFO
//---------------------------------------------
itemDef
{
name serverinfoList
rect 10 27 340 280
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
feeder FEEDER_SERVERSTATUS
elementtype LISTBOX_TEXT
elementwidth 120
elementheight 16
font 4
textscale 1
backcolor 0 0 0 0.5
border 1
bordersize 1
bordercolor .5 .5 .5 1
notselectable
visible 1
columns 4 2 40 148
50 40 50
100 40 45
150 40 165
}
//----------------------------------------------------------------------------------------------
// BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name refresh
text @MENUS_REFRESH_LIST
descText @MENUS_REFRESH_SERVER_LIST
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 10 310 170 30
textalign ITEM_ALIGN_CENTER
textalignx 85
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
uiScript ServerStatus
}
mouseEnter
{
show button_glow
setitemrect button_glow 0 310 200 28
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name doneText
text @MENUS_DONE_CAPS
descText @MENUS_DONE_DESC
type 1
font 3
textscale .8
style WINDOW_STYLE_FILLED
rect 180 310 170 30
textalign ITEM_ALIGN_CENTER
textalignx 85
textaligny 5
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav"
close serverinfo_popmenu
}
mouseEnter
{
show button_glow
setitemrect button_glow 170 310 200 28
}
mouseExit
{
hide button_glow
}
}
}
}

2959
base/ui/jamp/setup.menu Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

123
base/ui/jamp/siege_msg.menu Normal file
View File

@@ -0,0 +1,123 @@
//-----------------------------------------------------------------
// seige_msg.menu
//
// Popup menu that displays messages at the end of a siege game
//
//-----------------------------------------------------------------
{
\\ END OF GAME \\
menuDef
{
name "siege_popmenu"
visible 0
fullscreen 0
rect 158 80 320 320
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
popup
onClose
{
}
onOpen
{
}
onESC
{
close siege_popmenu
open main
}
itemDef
{
name window
rect 10 15 300 320
style 1
backcolor .015 .015 .229 0.25
forecolor 0 0 0 1
border 1
bordercolor .388 .396 .925 1
bordersize 5
visible 1
decoration
}
itemDef
{
name siegeinfo
rect 0 50 320 20
text @MENUS_DATAPAD
textalign 1
textstyle 6
textscale 1
textalignx 160
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name siegeinfo
rect 60 80 200 270
type ITEM_TYPE_TEXT
style 1
textstyle 3
autowrapped
cvar "cg_siegeMessage"
textalign ITEM_ALIGN_CENTER
textalignx 100
textscale 1
forecolor 1 1 1 1
visible 1
decoration
}
// BUTTON //
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 118 295 85 26
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name exit
group grpControlbutton
text @MENUS_OKAY
type 1
textscale 1
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 138 295 45 26
textalign 1
textalignx 22
forecolor .79 .64 .22 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close siege_popmenu
}
mouseEnter
{
show button_glow
}
mouseExit
{
hide button_glow
}
}
}
}

View File

@@ -0,0 +1,464 @@
//------------------------------------------------------------------------------------------------
// SIEGE_TEAM - player chooses team and then from here they choose base class.
//
// ui_team 1 = RED
// ui_team 2 = BLUE
// ui_team 3 = SPECTATOR
//
//------------------------------------------------------------------------------------------------
{
menuDef
{
name "ingame_siegeteam"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 95 34 460 435
focusColor 1 1 1 1 // Focus color for text and items
style 1
border 1
descX 320
descY 440
descScale 0.7
descColor .79 .64 .22 .7 // Focus color for text and items
descAlignment ITEM_ALIGN_CENTER
onOpen
{
uiScript update ui_GetName
uiScript updateForceStatus
hide nextbutton
hide glow
setitemcolor team1_button forecolor .670 .670 .929 1
setitemcolor team2_button forecolor .670 .670 .929 1
}
onClose
{
// uiScript update ui_SetName
// uiScript updateForceStatus
}
// Overall window backdrop
itemDef
{
name background_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 460 435
background "gfx/menus/menu_box_ingame"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------
//
// TITLE BAR
//
//----------------------------------------
itemDef
{
name siegeclassconfigtitle
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text "TEAM CHOICE"
rect 20 5 420 28
textalign ITEM_ALIGN_CENTER
textalignx 210
textaligny 2
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 3
textscale 0.9
forecolor 1 1 1 1
border 0
bordercolor 0 0 0 0
visible 1
}
//----------------------------------------
//
// TEAM SYMBOLS
//
//----------------------------------------
itemDef
{
name team1_impsymbol
group team1_symbol
style WINDOW_STYLE_SHADER
background "gfx/2d/mp_imp_symbol"
cvarTest cg_siegeTeam1Name
showCVar { "Imperial" }
rect 102 87 256 256
forecolor 1 1 1 .3
visible 1
decoration
}
itemDef
{
name team1_rebelsymbol
group team1_symbol
style WINDOW_STYLE_SHADER
background "gfx/2d/mp_rebel_symbol"
cvarTest cg_siegeTeam1Name
showCVar { "Rebel" }
rect 102 87 256 256
forecolor 1 1 1 .3
visible 1
decoration
}
itemDef
{
name team2_impsymbol
group team2_symbol
style WINDOW_STYLE_SHADER
background "gfx/2d/mp_imp_symbol"
cvarTest cg_siegeTeam2Name
showCVar { "Imperial" }
rect 102 87 256 256
forecolor 1 1 1 .3
visible 0
decoration
}
itemDef
{
name team2_rebelsymbol
group team2_symbol
style WINDOW_STYLE_SHADER
background "gfx/2d/mp_rebel_symbol"
cvarTest cg_siegeTeam2Name
showCVar { "Rebel" }
rect 102 87 256 256
forecolor 1 1 1 .3
visible 0
decoration
}
//----------------------------------------
//
// NAME ENTRY FIELD
//
//----------------------------------------
itemDef
{
name namefield
type ITEM_TYPE_EDITFIELD
style 0
text @MENUS_NAME
cvar ui_Name
maxchars 26
rect 80 80 300 20
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -4
font 0
textscale 1
forecolor .670 .670 .929 1
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
border 0
bordercolor 0 0 0 0
descText @MENUS_ENTER_YOUR_NAME_HERE
visible 1
mouseEnter
{
show namefield_glow
}
mouseExit
{
hide namefield_glow
}
}
// The high light
itemDef
{
name namefield_glow
group glow
style WINDOW_STYLE_SHADER
rect 10 80 400 20
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------
// TEAM1 BUTTON
//----------------------------------------
itemDef
{
name team1_button
type ITEM_TYPE_BUTTON
cvar cg_siegeTeam1Name
rect 165 150 130 16
textalign ITEM_ALIGN_CENTER
textalignx 65
textaligny -4
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 2
textscale 0.9
forecolor .670 .670 .929 1
border 0
bordercolor 0 0 0 0
descText "Join this team."
visible 1
mouseEnter
{
show team1_glow
}
mouseExit
{
hide team1_glow
}
action
{
play "sound/interface/button1.wav"
hide team2_symbol
show team1_symbol
exec "cmd team r"
setcvar ui_team 1
uiscript updatesiegeclasscnt 1
uiscript updatesiegecvars
// show nextbutton
// setitemcolor team1_button forecolor 1 1 .807 1
// setitemcolor team2_button forecolor .670 .670 .929 1
uiScript setsiegeclass
close all
open ingame_siegeclass
}
}
// The high light
itemDef
{
name team1_glow
group glow
style WINDOW_STYLE_SHADER
rect 165 145 130 26
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------
// TEAM2 BUTTON
//----------------------------------------
itemDef
{
name team2_button
type ITEM_TYPE_BUTTON
cvar cg_siegeTeam2Name
rect 165 200 130 16
textalign ITEM_ALIGN_CENTER
textalignx 65
textaligny -4
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 2
textscale 0.9
forecolor .670 .670 .929 1
border 0
bordercolor 0 0 0 0
descText "Join this team."
visible 1
action
{
play "sound/interface/button1.wav"
hide team1_symbol
show team2_symbol
exec "cmd team b"
setcvar ui_team 2
uiscript updatesiegeclasscnt 2
uiscript updatesiegecvars
// show nextbutton
// setitemcolor team1_button forecolor .670 .670 .929 1
// setitemcolor team2_button forecolor 1 1 .807 1
uiScript setsiegeclass
close all
open ingame_siegeclass
}
mouseEnter
{
show team2_glow
}
mouseExit
{
hide team2_glow
}
}
// The high light
itemDef
{
name team2_glow
group glow
style WINDOW_STYLE_SHADER
rect 165 195 130 26
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------
// AUTOTEAM BUTTON
//----------------------------------------
itemDef
{
name autoteam
text @MENUS_AUTO_TEAM
type 1
style 2
rect 165 250 130 16
textalign ITEM_ALIGN_CENTER
textalignx 65
textaligny -4
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
font 2
textscale 0.9
forecolor .670 .670 .929 1
descText "Let server automatically decide the team."
visible 1
action
{
play "sound/interface/button1.wav"
exec "cmd team free"
uiScript closeingame
}
mouseEnter
{
show autoteam_glow
}
mouseExit
{
hide autoteam_glow
}
}
// The high light
itemDef
{
name autoteam_glow
group glow
style WINDOW_STYLE_SHADER
rect 165 245 130 26
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------
// SPECTATOR BUTTON
//----------------------------------------
itemDef
{
name spectate
text @MENUS_SPECTATE
type 1
style 2
rect 165 300 130 16
textalign ITEM_ALIGN_CENTER
textalignx 65
textaligny -4
font 2
textscale .9
forecolor .670 .670 .929 1
visible 1
descText "Watch the game."
action
{
play "sound/interface/button1.wav"
exec "cmd team s"
uiScript closeingame
}
mouseEnter
{
show spectate_glow
}
mouseExit
{
hide spectate_glow
}
}
// The high light
itemDef
{
name spectate_glow
group glow
style WINDOW_STYLE_SHADER
rect 165 295 130 26
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------
// NEXT BUTTON
//----------------------------------------
/* itemDef
{
name nextbutton
group playerapply
text @MENUS_NEXT
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 10 370 440 16
textalign ITEM_ALIGN_CENTER
textalignx 220
textaligny -4
font 2
textscale .9
forecolor .79 .64 .22 1
descText "Select a class on the chosen team."
visible 0
action
{
play "sound/interface/button1.wav"
uiScript setsiegeclass
close all
open ingame_siegeclass
}
mouseEnter
{
show next_glow
}
mouseExit
{
hide next_glow
}
}
// The high light
itemDef
{
name next_glow
group glow
style WINDOW_STYLE_SHADER
rect 10 365 440 26
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
} */
}

View File

@@ -0,0 +1,205 @@
// VIDEO WARNING
{
menuDef
{
name "videowarningMenu"
visible 0
fullScreen 0 // MENU_TRUE
rect 0 0 640 480
focusColor 1 1 1 1 // Focus color for text and items
outOfBoundsClick // this closes the window if it gets a click out of the rectangle // In miliseconds
descX 320
descY 434
descScale 1
descColor .79 .64 .22 .7 // Focus color for text and items
descAlignment ITEM_ALIGN_CENTER
popup
onESC
{
play "sound/interface/button1.wav" ;
close "videowarningMenu" ;
setcvar "ui_r_modified" 0 ;
rundeferred ;
}
onClose
{
play "sound/interface/button1.wav" ;
}
itemDef
{
name warn_background
group none
style WINDOW_STYLE_SHADER
rect 100 100 440 320
background "gfx/menus/menu_boxred" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// VIDEO WARNING
//
//----------------------------------------------------------------------------------------------
// Video Warning title
itemDef
{
name vidwarn_title
group vidwarn
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_UNAPPLIED_VIDEO_CHANGES
rect 120 129 400 20
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 200
textaligny -3
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name vidwarn_text1
group vidwarn
text @MENUS_YOU_HAVE_MADE_CHANGES
rect 210 230 220 20
textalign ITEM_ALIGN_CENTER
text2aligny 18
textalignx 110
font 2
textscale 1
forecolor .79 .64 .22 1
visible 1
decoration
}
itemDef
{
name vidwarn_text2
group vidwarn
text @MENUS_APPLY_THESE_CHANGES_OR
rect 210 250 220 20
textalign ITEM_ALIGN_CENTER
textalignx 110
font 2
textscale 1
forecolor .79 .64 .22 1
visible 1
}
// DISCARD button - return to Video Data screen
itemDef
{
name vidwarn_no_button
group vidwarn
style WINDOW_STYLE_SHADER
rect 180 386 120 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name vidwarn_no
group vidwarn
text @MENUS_DISCARD
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 180 386 120 24
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny -3
descText @MENUS_DO_NOT_APPLY_CHANGES
forecolor .79 .64 .22 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close "videowarningMenu" ;
setcvar "ui_r_modified" 0 ;
rundeferred ;
}
mouseEnter
{
show vidwarn_no_button
}
mouseExit
{
hide vidwarn_no_button
}
}
// APPLY button, use settings
itemDef
{
name vidwarn_yes_button
group vidwarn
style WINDOW_STYLE_SHADER
rect 340 386 120 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name vidwarn_yes
group vidwarn
text @MENUS_APPLY
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 386 120 24
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny -3
descText @MENUS_APPLY_CHANGES_AND_THEN
forecolor .79 .64 .22 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript updatevideosetup ;
// uiScript setvid1data setupMenu ; // Set video settings
close all
}
mouseEnter
{
show vidwarn_yes_button
}
mouseExit
{
hide vidwarn_yes_button
}
}
}
}

View File

@@ -0,0 +1,114 @@
// VIDEODRIVER MENU
{
menuDef
{
name "videodriverMenu"
visible 0
fullScreen 0 // MENU_TRUE
rect 100 120 440 320
focusColor 1 1 1 1 // Focus color for text and items
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
descX 320
descY 450
descScale 1
descColor .79 .64 .22 .7 // Focus color for text and items
descAlignment ITEM_ALIGN_CENTER
popup
onESC
{
play "sound/interface/button1.wav"
close all
open setupMenu
}
onClose
{
play "sound/interface/button1.wav" ;
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name driver_background
group none
style WINDOW_STYLE_SHADER
rect 0 0 440 320
background "gfx/menus/menu_boxred" // Frame
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name driver_done_button
group none
style WINDOW_STYLE_SHADER
rect 150 293 140 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name driver_done
group none
text @MENUS_DONE_CAPS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 150 293 140 24
forecolor 1 1 1 1
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 70
textaligny 0
font 3
textscale 1
forecolor .79 .64 .22 1
visible 1
mouseEnter
{
show driver_done_button
}
mouseExit
{
hide driver_done_button
}
action
{
close videodriverMenu
}
}
//----------------------------------------------------------------------------------------------
//
// VIDEO DRIVER INFO
//
//----------------------------------------------------------------------------------------------
itemDef // Drivers
{
name game_version
group none
ownerdraw UI_GLINFO // UI_GLINFO
font 4
textscale 1
rect 10 3 430 280
forecolor .79 .64 .22 1
style WINDOW_STYLE_EMPTY
textalign ITEM_ALIGN_LEFT
textaligny 14
visible 1
decoration
}
}
}

BIN
base/ui/jamp/vssver.scc Normal file

Binary file not shown.