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

898
base/ui/character.menu Normal file
View File

@@ -0,0 +1,898 @@
//----------------------------------------------------------------------------------------------
// CHARACTER CREATION MENU
//
//
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "characterMenu"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
uiScript "getcharcvars"
uiScript "character"
hide heads
show torso
hide lower
}
onESC
{
play "sound/interface/esc.wav"
close characterMenu
open newgameMenu
}
//----------------------------------------------------------------------------------------------
// 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
}
// The starwars logo on the top
/*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 -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
}
//----------------------------------------------------------------------------------------------
// CHARACTER MENU specific stuff
//----------------------------------------------------------------------------------------------
// 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 52 84 900 1000
rect 355 84 300 340
model_g2anim "BOTH_WALK1"
asset_model "ui_char_model"
model_angle 180
model_g2mins -10 -15 -10
model_g2maxs 20 15 30
model_rotation 50
model_fovx 50
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
}
//----------------------------------------------------------------------------------------------
// 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 1
textalignx 0
backcolor 0 0 0 0
forecolor .615 .615 .956 1
feeder 16 //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
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
desctext @MENUS_CHANGE_PLAYER_TINT
elementwidth 32
elementheight 32
elementtype 1 //LISTBOX_IMAGE
feeder 20 //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 TABS
//----------------------------------------------------------------------------------------------
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 1
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
setitemcolor legsbut forecolor 1 .682 0 1
setitemcolor torsobut forecolor 1 .682 0 1
setitemcolor headbut forecolor 1 1 1 1
}
}
// 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 1
textalignx 0
backcolor 0 0 0 0
forecolor 1 1 1 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
setitemcolor legsbut forecolor 1 .682 0 1
setitemcolor torsobut forecolor 1 1 1 1
setitemcolor headbut forecolor 1 .682 0 1
}
}
// 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 1
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
setitemcolor legsbut forecolor 1 1 1 1
setitemcolor torsobut forecolor 1 .682 0 1
setitemcolor headbut forecolor 1 .682 0 1
}
}
//----------------------------------------------------------------------------------------------
// APPEARANCE LISTBOXES
//----------------------------------------------------------------------------------------------
itemDef
{
name headlistbox
group heads
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
descText @MENUS_SELECT_HEAD
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 17 //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 0
action
{
play "sound/interface/choose_head.wav"
uiScript "char_skin"
}
}
itemDef
{
name torsolistbox
group torso
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
descText @MENUS_SELECT_TORSO
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 18 //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 1
action
{
play "sound/interface/choose_torso.wav"
uiScript "char_skin"
}
}
itemDef
{
name lowerlistbox
group lower
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
descText @MENUS_SELECT_LEGS
elementwidth 72
elementheight 72
elementtype 1 //LISTBOX_IMAGE
feeder 19 //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"
}
}
//----------------------------------------------------------------------------------------------
// 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_NEW
descText @MENUS_START_A_NEW_GAME
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 1 1 1
visible 1
mouseEnter
{
show newbutton_glow
}
mouseExit
{
hide newbutton_glow
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group none
style WINDOW_STYLE_SHADER
rect 170 16 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav"
close all
open loadgameMenu
}
}
// 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_CONTROLS
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 1
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 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 1
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 setupMenu
}
}
//----------------------------------------------------------------------------------------------
// LOWER MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button in lower left corner
itemDef
{
name backbutton_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
decoration
}
itemDef
{
name backbutton
group exit
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 backbutton_glow
}
mouseExit
{
hide backbutton_glow
}
action
{
play "sound/interface/esc.wav"
close all ;
open newgameMenu
}
}
// 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 exit
text @MENUS_EXIT
descText @MENUS_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 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
}
}
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
decoration
}
itemDef
{
name next
group none
text @MENUS_NEXT
descText @MENUS_NEXT_DESC
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 "updatecharcvars"
setcvar saber_menu 0
setcvar ui_saber_type single
open saberMenu
}
mouseEnter
{
show next_glow
}
mouseExit
{
hide next_glow
}
}
}
}

3121
base/ui/controls.menu Normal file

File diff suppressed because it is too large Load Diff

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

@@ -0,0 +1,441 @@
// CREDITS MENU
{
menuDef
{
name "creditsMenu"
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
appearanceIncrement 75 // In miliseconds
descX 320
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 30 0 90 480
background "gfx/menus/menu3" // Frame
forecolor 0.8 0.8 0.8 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 -425 -185 1000 1000
background "gfx/menus/menu2" // Frame
forecolor 0.5 0.5 0.5 1
visible 1
decoration
}
itemDef
{
name logomodel
group none
type ITEM_TYPE_MODEL
rect -123 48 400 400
model_angle 90
model_rotation 3.5
asset_model "models/map_objects/bespin/jk2logo.md3"
// model_fovx 37
// model_fovy 34
// model_origin 100 100 100
visible 1
decoration
}
// The saber halo on the left
itemDef
{
name saberhalo2
group none
style WINDOW_STYLE_SHADER
rect -225 15 600 600
background "gfx/menus/menu2b" // Frame
forecolor 0.25 0.25 0.25 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// TOP MAIN 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_NEW
descText @MENUS_START_A_NEW_GAME
font 3
textscale 0.9
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
forecolor 0.64 0.65 1 1
visible 1
mouseEnter
{
show newgamebutton_glow
}
mouseExit
{
hide newgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open newgameMenu
}
}
// 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_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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.64 0.65 1 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open loadgameMenu
}
}
// 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.64 0.65 1 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 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.64 0.65 1 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open setupMenu ;
}
}
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
}
}
}

View File

@@ -0,0 +1,368 @@
// Data Pad : Force Powers Screen
//
// defines from ui_shared.h
{
menuDef
{
name "datapadForcePowersMenu"
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 444
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onESC
{
play "sound/interface/esc.wav"
uiScript closedatapad // Close menu
}
onOpen
{
uiScript nextDataPadForcePower
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
rect 0 0 640 480
style WINDOW_STYLE_SHADER
background "gfx/menus/datapad"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MISSION TEXT
//----------------------------------------------------------------------------------------------
itemDef
{
name forcepowers
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_OWNERDRAW
rect 50 40 95 40
textscale .4
forecolor .509 .609 .847 1
visible 1
ownerdraw 206 // UI_DATAPAD_FORCEPOWERS
}
itemDef
{
name screen_title
type ITEM_TYPE_TEXT
rect 170 3 300 26
text @MENUS_DATAPADTITLE
font 3
forecolor .549 .854 1 1
textscale 1.2
textalign ITEM_ALIGN_CENTER
textalignx 150
visible 1
decoration
}
itemDef
{
name prevpower_on
group none
style WINDOW_STYLE_SHADER
rect 245 382 32 26
background "gfx/menus/dp_arrow_lon" // Frame
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name prevpower_off
group none
style WINDOW_STYLE_SHADER
rect 245 382 32 26
background "gfx/menus/dp_arrow_l" // Frame
forecolor 1 1 1 1
decoration
visible 1
}
itemDef
{
name prevpower
group none
descText @MENUS_DP_FORCE_PREV
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 245 382 32 26
font 2
textscale 1
textalignx 48
textalign ITEM_ALIGN_CENTER
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript prevDataPadForcePower
}
mouseEnter
{
hide prevpower_off
show prevpower_on
}
mouseExit
{
show prevpower_off
hide prevpower_on
}
}
itemDef
{
name nextpower_on
group none
style WINDOW_STYLE_SHADER
rect 364 382 32 26
background "gfx/menus/dp_arrow_ron" // Frame
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name nextpower_off
group none
style WINDOW_STYLE_SHADER
rect 364 382 32 26
background "gfx/menus/dp_arrow_r" // Frame
forecolor 1 1 1 1
decoration
visible 1
}
itemDef
{
name nextpower
group none
style WINDOW_STYLE_EMPTY
descText @MENUS_DP_FORCE_NEXT
type ITEM_TYPE_BUTTON
rect 364 382 32 26
background "gfx/menus/dp_arrow_r" // Frame
font 2
textscale 1
textalignx 48
textalign ITEM_ALIGN_CENTER
forecolor .509 .609 .847 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript nextDataPadForcePower
}
mouseEnter
{
hide nextpower_off
show nextpower_on
}
mouseExit
{
show nextpower_off
hide nextpower_on
}
}
//----------------------------------------------------------------------------------------------
// LOWER BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name mission
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 20 420 120 25
text @MENUS_DP_MISSION
descText @MENUS_AN_OVERVIEW_OF_MISSION
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 10 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadMissionMenu
}
}
itemDef
{
name weapons
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 140 420 120 25
text @MENUS_WEAPONS
descText @MENUS_VIEW_CURRENTLY_OWNED
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 130 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadWeaponsMenu
}
}
itemDef
{
name force
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 260 420 120 25
text @MENUS_DP_FORCE
descText @MENUS_VIEW_CURRENT_FORCE_POWERS
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name moves
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 380 420 120 25
text @MENUS_MOVES
descText @MENUS_MOVES_DESC
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 370 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadMovesMenu
}
}
itemDef
{
name exit
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 500 420 120 25
text @MENUS_RESUME
descText @MENUS_RETURN_TO_GAME
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 490 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closedatapad // Close menu
}
}
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 scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

View File

@@ -0,0 +1,307 @@
// Data Pad : Inventory Screen
//
// defines from ui_shared.h
{
menuDef
{
name "datapadInventoryMenu"
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
appearanceIncrement 75 // In miliseconds
descX 320
descY 441
descScale 1
descColor .96 .933 .40 1 // Focus color for text and items
descAlignment ITEM_ALIGN_CENTER
onESC
{
uiScript closedatapad // Close menu
}
onOpen
{
uiScript nextDataPadInventory
}
//----------------------------------------------------------------------------------------------
//
// MENU BACKGROUND
//
//----------------------------------------------------------------------------------------------
itemDef
{
name frame_pic
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "*white"
forecolor 0 0 0 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// MISSION TEXT
//
//----------------------------------------------------------------------------------------------
itemDef
{
name mission2
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_OWNERDRAW
rect 50 40 95 40
textscale .4
forecolor .509 .609 .847 1
visible 1
ownerdraw 205 // UI_DATAPAD_INVENTORY
}
itemDef
{
name screen_title
type ITEM_TYPE_TEXT
rect 170 8 300 26
text @MENUS_DATAPADTITLE
font 3
forecolor .509 .609 .847 1
textscale 1.25
textalign ITEM_ALIGN_CENTER
textalignx 150
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// LOWER MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
itemDef
{
name mission
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 22 417 100 25
text @MENUS_DP_MISSION
descText @MENUS_AN_OVERVIEW_OF_MISSION
font 2
textscale 1
textalignx 50
textalign ITEM_ALIGN_CENTER
forecolor .79 .64 .22 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadMissionMenu
}
}
itemDef
{
name weapons
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 142 417 100 25
text @MENUS_WEAPONS
descText @MENUS_VIEW_CURRENTLY_OWNED
font 2
textscale 1
textalignx 50
textalign ITEM_ALIGN_CENTER
forecolor .79 .64 .22 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadWeaponsMenu
}
}
itemDef
{
name force
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 262 417 100 25
text @MENUS_DP_FORCE
descText @MENUS_VIEW_CURRENT_FORCE_POWERS
font 2
textscale 1
textalignx 50
textalign ITEM_ALIGN_CENTER
forecolor .79 .64 .22 1
visible 1
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadForcePowersMenu
}
}
itemDef
{
name inventory
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 382 417 100 0
text @MENUS_INVENTORY
descText @MENUS_VIEW_CURRENT_INVENTORY
font 2
textscale 1
textalignx 50
textalign ITEM_ALIGN_CENTER
forecolor .79 .64 .22 1
visible 1
}
itemDef
{
name exit
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 502 417 95 25
text @MENUS_RESUME
descText @MENUS_RETURN_TO_GAME
font 2
textscale 1
textalignx 50
textalign ITEM_ALIGN_CENTER
forecolor .79 .64 .22 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript closedatapad // Close menu
}
}
itemDef
{
name previnv_on
group none
style WINDOW_STYLE_SHADER
rect 245 382 32 26
background "gfx/menus/dp_arrow_lon" // Frame
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name previnv_off
group none
style WINDOW_STYLE_SHADER
rect 245 382 32 26
background "gfx/menus/dp_arrow_l" // Frame
forecolor 1 1 1 1
decoration
visible 1
}
itemDef
{
name previnv
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 245 382 32 26
font 2
textscale 1
textalignx 48
textalign ITEM_ALIGN_CENTER
forecolor .509 .609 .847 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript prevDataPadInventory
}
mouseEnter
{
hide previnv_off
show previnv_on
}
mouseExit
{
show previnv_off
hide previnv_on
}
}
itemDef
{
name nextinv_on
group none
style WINDOW_STYLE_SHADER
rect 364 382 32 26
background "gfx/menus/dp_arrow_ron" // Frame
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name nextinv_off
group none
style WINDOW_STYLE_SHADER
rect 364 382 32 26
background "gfx/menus/dp_arrow_r" // Frame
forecolor 1 1 1 1
decoration
visible 1
}
itemDef
{
name nextinv
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 364 382 32 26
font 2
textscale 1
textalignx 48
textalign ITEM_ALIGN_CENTER
forecolor .509 .609 .847 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript nextDataPadInventory
}
mouseEnter
{
hide nextinv_off
show nextinv_on
}
mouseExit
{
show nextinv_off
hide nextinv_on
}
}
}
}

258
base/ui/datapadmission.menu Normal file
View File

@@ -0,0 +1,258 @@
//----------------------------------------------------------------------------------------------
// Data Pad : Mission Objectives Screen
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "datapadMissionMenu"
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 444
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onESC
{
play "sound/interface/esc.wav"
uiScript closedatapad // Close menu
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
rect 0 0 640 480
style WINDOW_STYLE_SHADER
background "gfx/menus/datapad"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MISSION TEXT
//----------------------------------------------------------------------------------------------
itemDef
{
name mission2
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_OWNERDRAW
rect 50 40 0 0 //This is set in the code
textscale .4
forecolor .509 .609 .847 1
visible 1
ownerdraw 203 // UI_DATAPAD_MISSION
}
itemDef
{
name screen_title
type ITEM_TYPE_TEXT
rect 170 3 300 26
text @MENUS_DATAPADTITLE
font 3
forecolor .549 .854 1 1
textscale 1.2
textalign ITEM_ALIGN_CENTER
textalignx 150
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// LOWER BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name mission
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 20 420 120 25
text @MENUS_DP_MISSION
descText @MENUS_AN_OVERVIEW_OF_MISSION
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name weapons
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 140 420 120 25
text @MENUS_WEAPONS
descText @MENUS_VIEW_CURRENTLY_OWNED
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 130 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadWeaponsMenu
}
}
itemDef
{
name force
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 260 420 120 25
text @MENUS_DP_FORCE
descText @MENUS_VIEW_CURRENT_FORCE_POWERS
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 250 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadForcePowersMenu
}
}
itemDef
{
name moves
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 380 420 120 25
text @MENUS_MOVES
descText @MENUS_MOVES_DESC
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 370 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadMovesMenu
}
}
itemDef
{
name exit
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 500 420 120 25
text @MENUS_RESUME
descText @MENUS_RETURN_TO_GAME
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 490 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closedatapad // Close menu
}
}
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 scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

458
base/ui/datapadmoves.menu Normal file
View File

@@ -0,0 +1,458 @@
// Data Pad : Force Powers Screen
//
// defines from ui_shared.h
{
menuDef
{
name "datapadMovesMenu"
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 444
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onESC
{
play "sound/interface/esc.wav"
uiScript closedatapad // Close menu
}
onOpen
{
setcvar "ui_movesflag" 0
setcvar "ui_move_title" 0
uiScript setMoveCharacter
setcvar "ui_move_title" 2
uiScript resetMovesDesc
uiScript setMovesListDefault
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
rect 0 0 640 480
style WINDOW_STYLE_SHADER
background "gfx/menus/datapad2"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MISSION TEXT
//----------------------------------------------------------------------------------------------
itemDef
{
name screen_title
type ITEM_TYPE_TEXT
rect 170 3 300 26
text @MENUS_DATAPADTITLE
font 3
forecolor .549 .854 1 1
textscale 1.2
textalign ITEM_ALIGN_CENTER
textalignx 150
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 22 //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
uiScript resetMovesDesc
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 4
textaligny 8
textscale 1
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 21
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
}
action
{
uiScript resetMovesDesc
}
doubleclick
{
play sound/interface/button1.wav
uiScript resetMovesDesc
}
}
itemDef
{
name character_box
group none
style WINDOW_STYLE_EMPTY
rect 285 38 330 360
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"
isSaber 1
isCharacter 1
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
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
}
//----------------------------------------------------------------------------------------------
// LOWER BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name mission
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 20 420 120 25
text @MENUS_DP_MISSION
descText @MENUS_AN_OVERVIEW_OF_MISSION
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 10 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadMissionMenu
}
}
itemDef
{
name weapons
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 140 420 120 25
text @MENUS_WEAPONS
descText @MENUS_VIEW_CURRENTLY_OWNED
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 130 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadWeaponsMenu
}
}
itemDef
{
name force
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 260 420 120 25
text @MENUS_DP_FORCE
descText @MENUS_VIEW_CURRENT_FORCE_POWERS
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 250 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadForcePowersMenu
}
}
itemDef
{
name moves
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 380 420 120 25
text @MENUS_MOVES
descText @MENUS_MOVES_DESC
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name exit
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 500 420 120 25
text @MENUS_RESUME
descText @MENUS_RETURN_TO_GAME
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 490 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closedatapad // Close menu
}
}
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 scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

411
base/ui/datapadweapons.menu Normal file
View File

@@ -0,0 +1,411 @@
//----------------------------------------------------------------------------------------------
// Data Pad : Weapons Screen
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "datapadWeaponsMenu"
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 444
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onESC
{
play "sound/interface/esc.wav"
uiScript closedatapad // Close menu
}
onOpen
{
uiScript nextDataPadWeapon
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
rect 0 0 640 480
style WINDOW_STYLE_SHADER
background "gfx/menus/datapad"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MISSION TEXT
//----------------------------------------------------------------------------------------------
itemDef
{
name weapons
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_OWNERDRAW
rect 50 150 95 40
textscale .8
forecolor .509 .609 .847 1
visible 1
ownerdraw 204 // UI_DATAPAD_WEAPONS
}
itemDef
{
name screen_title
type ITEM_TYPE_TEXT
rect 170 3 300 26
text @MENUS_DATAPADTITLE
font 3
forecolor .549 .854 1 1
textscale 1.2
textalign ITEM_ALIGN_CENTER
textalignx 150
visible 1
decoration
}
itemDef
{
name weapon1
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
forecolor 1 1 1 1
visible 0
decoration
}
// Weapon Line 1
itemDef
{
name weapon1_line1
group none
text @MENUS_THIS_IS_LINE_1
font 2
textscale 1
textstyle 3
rect 320 220 110 20
textalign ITEM_ALIGN_LEFT
textalignx 30
textaligny 100
decoration
forecolor .433 .703 .722 1
visible 0
}
itemDef
{
name prevweapon_on
group none
style WINDOW_STYLE_SHADER
rect 245 382 32 26
background "gfx/menus/dp_arrow_lon" // Frame
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name prevweapon_off
group none
style WINDOW_STYLE_SHADER
rect 245 382 32 26
background "gfx/menus/dp_arrow_l" // Frame
forecolor 1 1 1 1
decoration
visible 1
}
itemDef
{
name prevweapon
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
desctext @MENUS_DP_WEAPON_PREV
rect 245 382 32 26
font 2
textscale 1
textalignx 48
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript prevDataPadWeapon
}
mouseEnter
{
hide prevweapon_off
show prevweapon_on
}
mouseExit
{
show prevweapon_off
hide prevweapon_on
}
}
itemDef
{
name nextweapon_on
group none
style WINDOW_STYLE_SHADER
rect 364 382 32 26
background "gfx/menus/dp_arrow_ron" // Frame
forecolor 1 1 1 1
decoration
visible 0
}
itemDef
{
name nextweapon_off
group none
style WINDOW_STYLE_SHADER
rect 364 382 32 26
background "gfx/menus/dp_arrow_r" // Frame
forecolor 1 1 1 1
decoration
visible 1
}
itemDef
{
name nextweapon
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 364 382 32 26
font 2
desctext @MENUS_DP_WEAPON_NEXT
textscale 1
textalignx 48
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript nextDataPadWeapon
}
mouseEnter
{
hide nextweapon_off
show nextweapon_on
}
mouseExit
{
show nextweapon_off
hide nextweapon_on
}
}
//----------------------------------------------------------------------------------------------
// LOWER BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name mission
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 20 420 120 25
text @MENUS_DP_MISSION
descText @MENUS_AN_OVERVIEW_OF_MISSION
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 10 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadMissionMenu
}
}
itemDef
{
name weapons
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 140 420 120 25
text @MENUS_WEAPONS
descText @MENUS_VIEW_CURRENTLY_OWNED
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name force
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 260 420 120 25
text @MENUS_DP_FORCE
descText @MENUS_VIEW_CURRENT_FORCE_POWERS
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 250 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadForcePowersMenu
}
}
itemDef
{
name moves
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 380 420 120 25
text @MENUS_MOVES
descText @MENUS_MOVES_DESC
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 370 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open datapadMovesMenu
}
}
itemDef
{
name exit
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 500 420 120 25
text @MENUS_RESUME
descText @MENUS_RETURN_TO_GAME
font 2
textscale 1
textalignx 60
textalign ITEM_ALIGN_CENTER
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 490 419 150 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closedatapad // Close menu
}
}
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 scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

File diff suppressed because it is too large Load Diff

190
base/ui/demo_GotoTier.menu Normal file
View File

@@ -0,0 +1,190 @@
//----------------------------------------------------------------------------------------------
// Mission Select Menu
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "demo_GotoTier"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
fadeClamp 1.0 // sets the fadeup alpha
fadeCycle 20 // how often fade happens in milliseconds
fadeAmount 0.1 // amount to adjust alpha per cycle
onOpen
{
fadein background
playVoice "sound/chars/storyinfo/1.mp3"
}
onESC
{
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/mission_back"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name eyecandy1
group none
style WINDOW_STYLE_SHADER
rect 17 309 357 153
background "gfx/menus/mission_bottomleft_grid"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name botlf
group none
style WINDOW_STYLE_SHADER
rect 0 300 80 180
background "gfx/menus/mission_bottom_left"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MODELS FOR V-O
//----------------------------------------------------------------------------------------------
itemDef
{
name luke
group storyheads
type ITEM_TYPE_MODEL
rect 415 285 149 149
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/luke/model_menu.skin"
asset_model "models/players/luke/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
//
// BUTTONS
//
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//Sound is automatic
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//coming from Yavin2
//----------------------------------------------------------------------------------------------
itemDef
{
name story1
type ITEM_TYPE_BUTTON
rect 550 440 172 24
text @MENUS_OKAY
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
mouseEnter
{
}
mouseExit
{
}
action
{
close all
open demo_MissionSelect
}
}
itemDef
{
name story1text
type ITEM_TYPE_TEXTSCROLL
rect 44 313 304 145
text @TIER1_1
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 2
textaligny -1
lineHeight 18
visible 1
autowrapped
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 48 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// SCANLINES OVER WHOLE MENU
//----------------------------------------------------------------------------------------------
itemDef
{
name scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

View File

@@ -0,0 +1,955 @@
//------------------------------------------------------------------------------------------------
// Mission Select 1 Menu
//
// Select missions from the 1st tier.
//
//------------------------------------------------------------------------------------------------
{
menuDef
{
name "demo_MissionSelect"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 200
descY 444
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
fadeClamp 1.0 // sets the fadeup alpha
fadeCycle 25 // how often fade happens in milliseconds
fadeAmount 0.05 // amount to adjust alpha per cycle
onOpen
{
show mission_button
stopVoice
}
onESC
{
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/mission_back"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name eyecandy1
group none
style WINDOW_STYLE_SHADER
rect 17 309 357 153
background "gfx/menus/mission_bottomleft_grid"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name botlf
group none
style WINDOW_STYLE_SHADER
rect 0 300 80 180
background "gfx/menus/mission_bottom_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starfield
group none
style WINDOW_STYLE_FILLED
rect 20 20 600 256
background "gfx/menus/star_field"
backcolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name stars_close
group none
style WINDOW_STYLE_FILLED
rect 20 20 600 256
background "gfx/menus/star_field_zoom"
backcolor 1 1 1 0
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// BIG PLANET GRAPHICS
//----------------------------------------------------------------------------------------------
itemDef
{
name tatooine
group none
style WINDOW_STYLE_FILLED
rect 320 148 0 0
background "gfx/menus/planets/tatooine"
backcolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name chandrila
group none
style WINDOW_STYLE_FILLED
rect 320 148 0 0
background "gfx/menus/planets/chandrila"
backcolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// GALAXY MAP
//----------------------------------------------------------------------------------------------
itemDef
{
name galaxy
group none
style WINDOW_STYLE_FILLED
rect 64 20 512 256
background "gfx/menus/mission_galaxy"
backcolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name map_title
type ITEM_TYPE_TEXT
rect 40 14 600 18
text @MENUS_GALACTIC_MAP
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 300
textaligny -1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// TIER 1 LOCATION MARKERS ON GALAXY MAP
//----------------------------------------------------------------------------------------------
itemDef
{
name loc_but01_off
group location_marker_off
style WINDOW_STYLE_SHADER
rect 239 188 32 32
background "gfx/menus/mission_loc_but_off"
forecolor 1 1 1 1
visible 1
decoration
cvartest "tiers_complete"
disablecvar
{
"t1_sour"
}
cvarSubString
}
itemDef
{
name loc_but01_on
group location_marker_on
style WINDOW_STYLE_SHADER
rect 239 188 32 32
background "gfx/menus/mission_loc_but_on"
forecolor 1 1 1 1
visible 0
decoration
cvartest "tiers_complete"
disablecvar
{
"t1_sour"
}
cvarSubString
}
itemDef
{
name loc_but02_off
group location_marker
style WINDOW_STYLE_SHADER
rect 270 109 20 20
background "gfx/menus/mission_loc_but_off"
forecolor 1 1 1 1
visible 1
decoration
cvartest "tiers_complete"
disablecvar
{
"t3_rift"
}
cvarSubString
}
itemDef
{
name loc_but02_on
group location_marker
style WINDOW_STYLE_SHADER
rect 270 109 20 20
background "gfx/menus/mission_loc_but_on"
forecolor 1 1 1 1
visible 0
decoration
cvartest "tiers_complete"
disablecvar
{
"t3_rift"
}
cvarSubString
}
itemDef
{
name planet_name
type ITEM_TYPE_TEXT
rect 52 316 288 24
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 0
autowrapped
decoration
}
//----------------------------------------------------------------------------------------------
// TIER 1 MISSION BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name map_title
type ITEM_TYPE_TEXT
rect 10 305 400 20
text @MENUS_MISSIONS
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 200
textaligny -1
visible 1
}
itemDef
{
name miss1
group mission_button
type ITEM_TYPE_BUTTON
rect 52 330 224 20
text @MENUS_T1_SOUR_TITLE
desctext @MENUS_CLICK_BRIEFING
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tiers_complete"
disablecvar
{
"t1_sour"
}
cvarSubString
mouseEnter
{
hide loc_but01_off
show loc_but01_on
show planet_name
setitemtext planet_name @MENUS_TATOOINE
setitemrect planet_name 150 230 120 26
show button_glow
setitemrect button_glow 20 328 380 22
}
mouseExit
{
hide loc_but01_on
show loc_but01_off
hide planet_name
hide button_glow
}
action
{
play "sound/weapons/force/protect.wav"
fadeout starfield
fadeout galaxy
fadein stars_close
transition2 loc_but01_off 255 204 0 0 20 25
transition2 loc_but02_off 270 109 0 0 20 25
transition2 planet_name 270 250 256 20 20 15
transition2 tatooine 192 20 256 256 10 15
hide mission_button
hide location_marker_on
show backbut
show accbut1
show briefing_background
show briefing_text
setitemtext briefing_text @BRIEFINGS_T1_SOUR
hide button_glow
hide map_title
}
}
itemDef
{
name FAKE_miss0
group mission_button
type ITEM_TYPE_BUTTON
rect 52 353 224 20
text @MENUS_T1_FATAL_TITLE
desctext @MENUS_CLICK_BRIEFING
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tiers_complete"
enablecvar
{
"fake"
}
mouseEnter
{
hide loc_but02_off
show loc_but02_on
show planet_name
setitemtext planet_name @MENUS_BAKURA
setitemrect planet_name 150 230 120 26
show button_glow
setitemrect button_glow 20 351 380 22
}
mouseExit
{
hide loc_but02_on
show loc_but02_off
hide planet_name
hide button_glow
}
}
itemDef
{
name NA_button1
group na_button1
type ITEM_TYPE_BUTTON
rect 52 353 224 20
desctext @OBJECTIVES_DEMO_NOT_AVAILABLE
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
mouseEnter
{
}
mouseExit
{
}
}
itemDef
{
name FAKE_miss1
group mission_button
type ITEM_TYPE_BUTTON
rect 52 376 224 20
text @MENUS_T1_RAIL_TITLE
desctext @MENUS_CLICK_BRIEFING
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tiers_complete"
enablecvar
{
"fake"
}
mouseEnter
{
hide loc_but02_off
show loc_but02_on
show planet_name
setitemtext planet_name @MENUS_CORELLIA
setitemrect planet_name 150 230 120 26
show button_glow
setitemrect button_glow 20 351 380 22
}
mouseExit
{
hide loc_but02_on
show loc_but02_off
hide planet_name
hide button_glow
}
}
itemDef
{
name NA_button2
group na_button2
type ITEM_TYPE_BUTTON
rect 52 376 224 20
desctext @OBJECTIVES_DEMO_NOT_AVAILABLE
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
mouseEnter
{
}
mouseExit
{
}
}
itemDef
{
name miss2
group mission_button
type ITEM_TYPE_BUTTON
rect 52 399 224 20
text @MENUS_T3_RIFT_TITLE
desctext @MENUS_CLICK_BRIEFING
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tiers_complete"
disablecvar
{
"t3_rift"
}
cvarSubString
mouseEnter
{
hide loc_but02_off
show loc_but02_on
show planet_name
setitemtext planet_name @MENUS_CHANDRILA
setitemrect planet_name 150 90 120 26
show button_glow
setitemrect button_glow 20 397 380 22
}
mouseExit
{
hide loc_but02_on
show loc_but02_off
hide planet_name
hide button_glow
}
action
{
play "sound/weapons/force/protect.wav"
fadeout starfield
fadeout galaxy
fadein stars_close
transition2 loc_but01_off 280 119 0 0 20 25
transition2 loc_but02_off 395 137 0 0 20 25
transition2 loc_but03_off 181 163 0 0 20 25
transition2 loc_but04_off 305 114 0 0 20 25
transition2 loc_but05_off 389 79 0 0 20 25
hide loc_but01_on
hide loc_but02_on
transition2 chandrila 192 20 256 256 10 15
transition2 planet_name 270 250 256 256 20 15
hide mission_button
show backbut
show accbut2
show briefing_background
show briefing_text
setitemtext briefing_text @BRIEFINGS_T3_RIFT
hide map_title
hide button_glow
}
}
itemDef
{
name miss4
group mission_button
type ITEM_TYPE_BUTTON
rect 52 422 224 20
text @MENUS_T3_BYSS_TITLE
desctext @MENUS_CLICK_BRIEFING
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tiers_complete"
enablecvar
{
"fake"
}
mouseEnter
{
hide loc_but04_off
show loc_but04_on
show planet_name
setitemtext planet_name @MENUS_BYSS
setitemrect planet_name 240 40 120 26
show button_glow
setitemrect button_glow 20 397 380 22
}
mouseExit
{
hide loc_but04_on
show loc_but04_off
hide planet_name
hide button_glow
}
}
itemDef
{
name NA_button1
group na_button1
type ITEM_TYPE_BUTTON
rect 52 422 224 20
desctext @OBJECTIVES_DEMO_NOT_AVAILABLE
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
mouseEnter
{
}
mouseExit
{
}
}
//----------------------------------------------------------------------------------------------
// MISSION BRIEF TEXT
//----------------------------------------------------------------------------------------------
itemDef
{
name briefing_background
group none
style WINDOW_STYLE_FILLED
rect 42 314 320 114
backcolor 0 0 .35 .7
forecolor 1 1 1 1
border 1
bordercolor 0 0 .8 1
visible 0
decoration
}
itemDef
{
name briefing_text
type ITEM_TYPE_TEXTSCROLL
rect 42 314 320 114
text @BRIEFINGS_T1_SOUR
font 4
forecolor 1 1 1 1
textscale 1
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -1
lineHeight 18
visible 0
autowrapped
}
//----------------------------------------------------------------------------------------------
// GENERAL BACK BUTTON - if you don't want this mission
//----------------------------------------------------------------------------------------------
itemDef
{
name backbut
type ITEM_TYPE_BUTTON
rect 52 430 172 24
text @MENUS_BACK_CAPS
desctext @MENUS_DIFF_MISSION
font 2
forecolor 1 .682 0 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 0
mouseEnter
{
show button_glow
setitemrect button_glow 15 430 200 20
}
mouseExit
{
hide button_glow
}
action
{
play "sound/interface/esc.wav"
fadein starfield
fadein galaxy
fadeout stars_close
transition2 loc_but01_off 239 188 32 32 20 25
transition2 loc_but02_off 270 109 32 32 20 25
hide backbut
hide planet_name
hide accbuttons
hide briefing_text
hide tatooine
hide chandrila
hide briefing_background
hide button_glow
show mission_button
show map_title
}
}
//----------------------------------------------------------------------------------------------
// ACCEPT BUTTONS - IF YOU CHOOSE A PARTICULAR MISSION
//----------------------------------------------------------------------------------------------
itemDef
{
name accbut1
group accbuttons
type ITEM_TYPE_BUTTON
rect 268 430 172 24
text @MENUS_ACCEPT
desctext @MENUS_ACCEPT_MISSION
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 0
mouseEnter
{
show button_glow
setitemrect button_glow 200 430 200 20
}
mouseExit
{
hide button_glow
}
action
{
hide backbut
hide briefing_text
show kyle
show nextscreen_button
show accept1text
playVoice "sound/chars/kyle/07kyk001.mp3"
hide accbuttons
setfocus nextscreen_button
setcvar tier_mapname "maptransition t1_sour"
setcvar ui_demo_level "t1_sour"
hide button_glow
hide briefing_background
}
}
itemDef
{
name accbut2
group accbuttons
type ITEM_TYPE_BUTTON
rect 268 430 172 24
text @MENUS_ACCEPT
desctext @MENUS_ACCEPT_MISSION
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 0
mouseEnter
{
show button_glow
setitemrect button_glow 200 430 200 20
}
mouseExit
{
hide button_glow
}
action
{
hide backbut
hide briefing_text
show kyle
show nextscreen_button
show accept2text
playVoice "sound/chars/kyle/demo_rift_intro.mp3"
hide accbuttons
setfocus nextscreen_button
setcvar tier_mapname "maptransition t3_rift"
setcvar ui_demo_level "t3_rift"
hide button_glow
hide briefing_background
}
}
//----------------------------------------------------------------------------------------------
// MODELS FOR V-O
//----------------------------------------------------------------------------------------------
itemDef
{
name luke
group models
type ITEM_TYPE_MODEL
rect 415 285 149 149
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/luke/model_menu.skin"
asset_model "models/players/luke/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 0
decoration
}
itemDef
{
name kyle
group models
type ITEM_TYPE_MODEL
rect 415 288 145 145
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/kyle/model_menu.skin"
asset_model "models/players/kyle/model.glm"
model_angle 180
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
// BRIEFING SUBTITLES
//----------------------------------------------------------------------------------------------
itemDef
{
name accept1text
type ITEM_TYPE_TEXTSCROLL
rect 30 316 320 130
text @T1_SOUR_07KYK001
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
lineHeight 18
visible 0
autowrapped
}
itemDef
{
name accept2text
type ITEM_TYPE_TEXT
rect 30 316 320 130
text @OBJECTIVES_DEMO_RIFT_INTRO
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 0
autowrapped
}
//----------------------------------------------------------------------------------------------
// NEXT BUTTONS - to go to next screen
//----------------------------------------------------------------------------------------------
itemDef
{
name nextscreen_button
type ITEM_TYPE_BUTTON
rect 530 440 172 24
text @MENUS_NEXT
desctext @MENUS_ADVANCE_NEXT
font 2
forecolor 1 .682 0 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 0
mouseEnter
{
}
mouseExit
{
}
action
{
play "sound/interface/menuroam.wav"
close all
open demo_ForceSelect
}
}
//----------------------------------------------------------------------------------------------
// SCANLINES OVER WHOLE MENU
//----------------------------------------------------------------------------------------------
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 scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

1471
base/ui/demo_WpnSelect.menu Normal file

File diff suppressed because it is too large Load Diff

34
base/ui/demo_ingame.txt Normal file
View File

@@ -0,0 +1,34 @@
// menu defs
//
{
loadMenu { "ui/ingame.menu" }
loadMenu { "ui/ingamesave.menu" }
loadMenu { "ui/ingameload.menu" }
loadMenu { "ui/ingamecontrols.menu" }
loadMenu { "ui/ingamesetup.menu" }
loadMenu { "ui/ingamequit.menu" }
loadMenu { "ui/demo_MissionSelect.menu" }
loadMenu { "ui/demo_ingameMissionSelect.menu" }
loadMenu { "ui/ingameGotoTier.menu" }
loadMenu { "ui/demo_ForceSelect.menu" }
loadMenu { "ui/demo_WpnSelect.menu" }
loadMenu { "ui/ingameForceStatus.menu" }
loadMenu { "ui/ingameForceHelp.menu" }
loadMenu { "ui/ingameWpnSelectHelp.menu" }
loadMenu { "ui/datapadforcepowers.menu" }
loadMenu { "ui/datapadmission.menu" }
loadMenu { "ui/datapadweapons.menu" }
loadMenu { "ui/datapadmoves.menu" }
loadMenu { "ui/error.menu" }
loadMenu { "ui/ingamevid_warning.menu" }
loadMenu { "ui/videodriver.menu" }
loadMenu { "ui/saber.menu" }
loadMenu { "ui/saberstyle.menu" }
loadMenu { "ui/missionfailed.menu" }
loadMenu { "ui/loadscreen.menu" }
loadMenu { "ui/demo_sellscreen1.menu" }
}

View File

@@ -0,0 +1,847 @@
//----------------------------------------------------------------------------------------------
// Mission Select Menu
//
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "ingameMissionSelect"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
fadeClamp 1.0 // sets the fadeup alpha
fadeCycle 20 // how often fade happens in milliseconds
fadeAmount 0.1 // amount to adjust alpha per cycle
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/mission_back"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name eyecandy1
group none
style WINDOW_STYLE_SHADER
rect 17 309 357 153
background "gfx/menus/mission_bottomleft_grid"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name botlf
group none
style WINDOW_STYLE_SHADER
rect 0 300 80 180
background "gfx/menus/mission_bottom_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name complete
type ITEM_TYPE_TEXT
rect 170 16 300 32
text @MENUS_MISSION_COMPLETE
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 150
textaligny -1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Killed, Secrets
//----------------------------------------------------------------------------------------------
itemDef
{
name killed
group stats
rect 0 52 320 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_ENEMIESKILLED
cvar "ui_stats_enemieskilled"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_CENTER
textalignx 160
textaligny -1
visible 1
decoration
}
itemDef
{
name secretsfound
group stats
rect 320 52 320 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_SECRETAREAS
cvar "ui_stats_secretsfound"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_CENTER
textalignx 160
textaligny -1
visible 1
decoration
cvartest "ui_stats_secretsfound"
hidecvar
{
"0"
}
}
// Lines above and below lightsaber info
itemDef
{
name border
group none
type ITEM_TYPE_TEXT
rect 70 80 500 2
forecolor 1 1 1 1
border 1
bordercolor .403 .584 .741 1
visible 1
decoration
}
itemDef
{
name border
group none
type ITEM_TYPE_TEXT
rect 70 165 500 2
forecolor 1 1 1 1
border 1
bordercolor .403 .584 .741 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Saber use data
//----------------------------------------------------------------------------------------------
itemDef
{
name saberuse
type ITEM_TYPE_TEXT
rect 0 87 640 32
text @SP_INGAME_LIGHTSABERUSE
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 320
textaligny -1
visible 1
decoration
}
itemDef
{
name saber_thrown
rect 20 115 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_THROWN
cvar "ui_stats_thrown"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name saber_blocks
rect 20 140 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_BLOCKS
cvar "ui_stats_blocks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name leg_attacks
rect 220 115 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_LEGATTACKS
cvar "ui_stats_legattacks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name arm_attacks
rect 220 140 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_ARMATTACKS
cvar "ui_stats_armattacks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name body_attacks
rect 420 115 300 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_BODYATTACKS
cvar "ui_stats_bodyattacks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name forceuse
type ITEM_TYPE_TEXT
rect 250 173 150 32
text @SP_INGAME_FORCEUSE
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 75
textaligny -1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 1st column of force stats (light side powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name absorb
rect -20 195 150 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_ABSORB
cvar "ui_stats_absorb"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name heal
rect -20 215 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_HEAL
cvar "ui_stats_heal"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name mindtrick
rect -20 235 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_MINDTRICK
cvar "ui_stats_mindtrick"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name protection
rect -20 255 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_PROTECTION
cvar "ui_stats_protect"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 2nd column of force stats (neutral powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name jump
rect 130 195 160 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_JUMP
cvar "ui_stats_jump"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name pull
rect 130 215 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_PULL
cvar "ui_stats_pull"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name push
rect 130 235 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_PUSH
cvar "ui_stats_push"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name sense
rect 130 255 160 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_SENSE
cvar "ui_stats_sense"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 3rd column of force stats (neutral powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name speed
rect 280 195 150 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_SPEED
cvar "ui_stats_speed"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name defense
rect 280 215 300 32
type ITEM_TYPE_EDITFIELD
text @MENUS_DEFENSE
cvar "ui_stats_defense"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -1
visible 1
decoration
}
itemDef
{
name offense
rect 280 235 300 32
type ITEM_TYPE_EDITFIELD
text @MENUS_OFFENSE
cvar "ui_stats_offense"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -1
visible 1
decoration
}
itemDef
{
name throw
rect 280 255 300 32
type ITEM_TYPE_EDITFIELD
text @MENUS_THROW
cvar "ui_stats_throw"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 4th column of force stats (dark powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name grip
rect 430 195 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_DRAIN
cvar "ui_stats_drain"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name grip
rect 430 215 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_GRIP
cvar "ui_stats_grip"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name lightning
rect 430 235 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_LIGHTNING
cvar "ui_stats_lightning"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name rage
rect 430 255 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_RAGE
cvar "ui_stats_rage"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MODELS FOR V-O
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//
// THESE HEADS APPEAR WHEN YOU SUCCESSFULLY COMPLETE A TIER LEVEL.
//
// THE SOUNDS ARE IN sounds/tiervictory AND ARE THE NAME OF THE LEVEL.
// IT IS HARDCODED TO LOOK FOR AND PLAY A SOUND MATCHING THE MAP NAME IN THIS DIR.
//
//----------------------------------------------------------------------------------------------
itemDef
{
name luke
group models
type ITEM_TYPE_MODEL
rect 415 285 149 149
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/luke/model_menu.skin"
asset_model "models/players/luke/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
decoration
cvartest "storyhead"
showcvar
{
"luke"
"t1_surprise"
"t1_sour"
"t3_hevil"
"t1_test"
"t1_rail"
}
}
//t1_rail has conversation; luke, kyle, luke, kyle, luke.
itemDef
{
name kyle
group models
type ITEM_TYPE_MODEL
rect 415 288 145 145
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/kyle/model_menu.skin"
asset_model "models/players/kyle/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
decoration
cvartest "storyhead"
showcvar
{
"t1_fatal"
"t1_danger"
"t2_rogue"
"t2_dpred"
"t2_rancor"
"t2_trip"
"t3_rift"
"t3_byss"
"t3_stamp"
"t3_bounty"
"kyle"
}
}
//----------------------------------------------------------------------------------------------
// SUBTITLES FOR TIER VICTORY MESSAGES.
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
// 1ST TIER
//----------------------------------------------------------------------------------------------
itemDef
{
name vic_text_t1_sour
group victorytext
type ITEM_TYPE_TEXT
rect 44 313 304 145
text @TIERVICTORY_T1_SOUR
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 2
textaligny -1
visible 1
autowrapped
decoration
cvartest "storyhead"
showcvar
{
"t1_sour"
}
}
//----------------------------------------------------------------------------------------------
// 3RD TIER
//----------------------------------------------------------------------------------------------
itemDef
{
name vic_text_t2_rift
group victorytext
type ITEM_TYPE_TEXT
rect 44 313 304 145
text @TIERVICTORY_T2_TRIP
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 2
textaligny -1
visible 1
autowrapped
decoration
cvartest "storyhead"
showcvar
{
"t3_rift"
}
}
//----------------------------------------------------------------------------------------------
// BUTTONS
//
// AFTER THE VICTORY MESSAGE ABOVE, YOU GET A STORY MESSAGE BEFORE CHOOSING NEXT MISSION.
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//TIER ONE - INITIATE TIER
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//THIS IS THE DEMO!!!!
//SO THERE IS NO STORY INFO.
//----------------------------------------------------------------------------------------------
itemDef
{
name victory2
type ITEM_TYPE_BUTTON
rect 394 440 200 24
text @MENUS_CONTINUE
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_RIGHT
textalignx 200
textaligny -1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"0" "1"
}
mouseEnter
{
}
mouseExit
{
}
action
{
hide victory2
hide victorytext
hide models
close all
open demo_MissionSelect
}
}
itemDef
{
name victory2
type ITEM_TYPE_BUTTON
rect 394 440 200 24
text @MENUS_CONTINUE
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_RIGHT
textalignx 200
textaligny -1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"2"
}
mouseEnter
{
}
mouseExit
{
}
action
{
hide victory2
hide victorytext
stopVoice
hide models
close all
open demo_sellscreen1
}
}
itemDef
{
name kyle2
group models2
type ITEM_TYPE_MODEL
rect 415 285 149 149
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/kyle/model_menu.skin"
asset_model "models/players/kyle/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
//
// SCANLINES OVER WHOLE MENU
//
//----------------------------------------------------------------------------------------------
itemDef
{
name static
group none
style WINDOW_STYLE_SHADER
rect 396 314 175 120
background "gfx/menus/static"
backcolor 1 0 0 .2
forecolor 1 0 0 .2
visible 0
decoration
cvartest "storyhead"
showcvar
{
"t2_trip"
}
}
itemDef
{
name scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

28
base/ui/demo_menus.txt Normal file
View File

@@ -0,0 +1,28 @@
// menu defs
//
{
loadMenu { "ui/main.menu" }
loadMenu { "ui/newgame.menu" }
loadMenu { "ui/newgame_first.menu" }
loadMenu { "ui/character.menu" }
loadMenu { "ui/demo_saber.menu" }
loadMenu { "ui/loadgame.menu" }
loadMenu { "ui/controls.menu" }
loadMenu { "ui/setup.menu" }
loadMenu { "ui/quit.menu" }
loadMenu { "ui/error.menu" }
loadMenu { "ui/vid_warning.menu" }
loadMenu { "ui/videodriver.menu" }
loadMenu { "ui/demo_GotoTier.menu" }
loadMenu { "ui/demo_MissionSelect.menu" }
loadMenu { "ui/demo_ForceSelect.menu" }
loadMenu { "ui/ingameForcehelp.menu" }
loadMenu { "ui/demo_WpnSelect.menu" }
loadMenu { "ui/ingameWpnSelectHelp.menu" }
loadMenu { "ui/demo_sellscreen1.menu" }
loadMenu { "ui/loadscreen.menu" }
}

1512
base/ui/demo_saber.menu Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,98 @@
//----------------------------------------------------------------------------------------------
// SELL SCREEN
//
// HEY BUY THIS GAME DUDE
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "demo_sellscreen1"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
onOpen
{
setfocus next_button
}
onEsc
{
play "sound/interface/button1.wav"
uiScript Quit
}
itemDef
{
name screen1
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "menu/sellscreen1"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name screen2
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "menu/sellscreen2"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name next_button
type ITEM_TYPE_BUTTON
rect 0 0 640 480
forecolor 1 1 1 1
action
{
play "sound/interface/transition"
hide screen1
show screen2
show quit_button
}
}
itemDef
{
name quit_button
type ITEM_TYPE_BUTTON
rect 0 0 640 480
forecolor 1 1 1 1
visible 0
action
{
play "sound/interface/button1"
uiScript Quit
}
}
}
}

128
base/ui/error.menu Normal file
View File

@@ -0,0 +1,128 @@
//--------------------------------------------------------------
//
// ERROR MENU
//
// Displays error messages
//
//--------------------------------------------------------------
{
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 mainMenu
}
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
//--------------------------------------------------------------------------------
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 mainMenu
}
mouseEnter
{
show button_glow
}
mouseExit
{
hide button_glow
}
}
}
}

1069
base/ui/hud.menu Normal file

File diff suppressed because it is too large Load Diff

473
base/ui/ingame.menu Normal file
View File

@@ -0,0 +1,473 @@
//----------------------------------------------------------------------------------------------
// INGAME MAIN MENU
//
// Ingame main menu
//
//----------------------------------------------------------------------------------------------
{
assetGlobalDef
{
smallFont "aurabesh" 18
mediumFont "ergoec" 18
bigFont "anewhope" 20
smallFont "arialnb" 18
cursor "cursor"
itemFocusSound "sound/interface/menuroam.wav"
itemFocusForce "fffx/interface/menuroam"
forceChosenSound "sound/effects/hologram_on"
forceUnchosenSound "sound/effects/hologram_off"
datapadmoveRollSound "sound/player/roll1"
datapadmoveJumpSound "sound/weapons/force/jump"
datapadmoveSaberSound1 "sound/weapons/saber/saberhup1"
datapadmoveSaberSound2 "sound/weapons/saber/saberhup2"
datapadmoveSaberSound3 "sound/weapons/saber/saberhup3"
datapadmoveSaberSound4 "sound/weapons/saber/saberhup4"
datapadmoveSaberSound5 "sound/weapons/saber/saberhup5"
datapadmoveSaberSound6 "sound/weapons/saber/saberhup6"
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.0 // 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 "ingameMainMenu"
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 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
setfocus resume ;
}
onESC
{
play "sound/interface/esc.wav"
uiScript closeingame // Close menu
}
//----------------------------------------------------------------------------------------------
//
// 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 "SAVE"
itemDef
{
name savegamebutton_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 savegamebutton
group nbut
text @MENUS_SAVE
descText @MENUS_SAVE_CURRENT_GAME
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show savegamebutton_glow
}
mouseExit
{
hide savegamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open ingamesaveMenu
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group none
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open ingameloadMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS
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 1
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 ingamecontrolsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback"
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 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
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 ingamesetupMenu ;
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// 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 exit
text @MENUS_EXIT
descText @MENUS_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 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 ingamequitMenu
}
}
// RESUME button in the lower right corner
itemDef
{
name resumebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 455 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name resume
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 455 444 130 24
text @MENUS_RESUME
descText @MENUS_RESUME_CURRENT_GAME
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show resumebutton_glow
}
mouseExit
{
hide resumebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closeingame // Close menu
}
}
}
}

32
base/ui/ingame.txt Normal file
View File

@@ -0,0 +1,32 @@
// menu defs
//
{
loadMenu { "ui/ingame.menu" }
loadMenu { "ui/ingamesave.menu" }
loadMenu { "ui/ingameload.menu" }
loadMenu { "ui/ingamecontrols.menu" }
loadMenu { "ui/ingamesetup.menu" }
loadMenu { "ui/ingamequit.menu" }
loadMenu { "ui/ingameMissionSelect.menu" }
loadMenu { "ui/ingameGotoTier.menu" }
loadMenu { "ui/ingameForceSelect.menu" }
loadMenu { "ui/ingameWpnSelect.menu" }
loadMenu { "ui/ingameForceStatus.menu" }
loadMenu { "ui/ingameForceHelp.menu" }
loadMenu { "ui/ingameWpnSelectHelp.menu" }
loadMenu { "ui/datapadforcepowers.menu" }
loadMenu { "ui/datapadmission.menu" }
loadMenu { "ui/datapadweapons.menu" }
loadMenu { "ui/datapadmoves.menu" }
loadMenu { "ui/error.menu" }
loadMenu { "ui/ingamevid_warning.menu" }
loadMenu { "ui/videodriver.menu" }
loadMenu { "ui/saber.menu" }
loadMenu { "ui/saberstyle.menu" }
loadMenu { "ui/missionfailed.menu" }
loadMenu { "ui/loadscreen.menu" }
}

View File

@@ -0,0 +1,127 @@
//--------------------------------------------------------------
//
// ERROR MENU
//
// Displays error messages
//
//--------------------------------------------------------------
{
menuDef
{
name "ingameForceHelp"
visible 0
fullscreen 0
rect 140 70 350 375
focusColor 1 1 1 1
style WINDOW_STYLE_FILLED
border 1
popup
outOfBoundsClick
descX 240
descY 425
descScale 1
descColor 1 .682 0 .8
itemDef
{
name window
rect 0 0 350 375
style WINDOW_STYLE_FILLED
backcolor .015 .015 .229 1
forecolor 0 0 0 1
border 1
bordercolor .388 .396 .925 1
bordersize 5
visible 1
decoration
}
itemDef
{
name instruction_title
group inst_stuff
type ITEM_TYPE_TEXT
rect 0 25 350 18
text @MENUS_HELP
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 175
visible 1
decoration
}
itemDef
{
name instruction_text
group inst_stuff
type ITEM_TYPE_TEXTSCROLL
rect 25 80 300 250
text @MENUS_FORCE_UPGRADE_HELP
font 4
forecolor 1 1 1 1
textscale 1.0
textalign ITEM_ALIGN_LEFT
visible 1
decoration autowrapped
textaligny 0
lineHeight 13
}
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
}
//--------------------------------------------------------------------------------
// BUTTON
//--------------------------------------------------------------------------------
itemDef
{
name inst_done_button
group inst_stuff
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 0 315 350 18
text @MENUS_OKAY
descText @MENUS_HELP_DESC
font 3
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 175
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 230 384 170 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/misc/nomenu.wav"
close ingameForceHelp
// open ingameForceSelect
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,654 @@
//----------------------------------------------------------------------------------------------
// Force Status Menu
//
// The screen where after calculating the amount of light side force powers you allocated,
// Luke or Kyle will congratulate or warn you, depending on which way you're going.
//
// 90 % - 100 : very light
// 60 % - 89 : semi-light
// 41 % - 59 : neutral
// 11 % - 40 : semi-dark
// 0% - 10 : very dark
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "ingameForceStatus"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 424
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
fadeClamp 1.0 // sets the fadeup alpha
fadeCycle 25 // how often fade happens in milliseconds
fadeAmount 0.05 // amount to adjust alpha per cycle
onOpen
{
// Compare light/dark force powers allocated
uiScript "calcforcestatus"
uiScript "initallocforcepower" "absorb"
uiScript "initallocforcepower" "heal"
uiScript "initallocforcepower" "mindtrick"
uiScript "initallocforcepower" "protect"
uiScript "initallocforcepower" "drain"
uiScript "initallocforcepower" "grip"
uiScript "initallocforcepower" "lightning"
uiScript "initallocforcepower" "rage"
}
onESC
{
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/mission_back"
forecolor 1 1 1 1
visible 1
decoration
}
// Allocate force point
itemDef
{
name allocate_text
type ITEM_TYPE_TEXT
rect 0 30 640 18
text @MENUS_CUR_FORCE_ALLOC
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 320
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Light Force Icons
//----------------------------------------------------------------------------------------------
//----------------------------------
// Absorb Icon
//----------------------------------
// The hex powerlevel graphic (this has to print first because it's additive)
itemDef
{
name absorb_hexpic
group lighthexes
style WINDOW_STYLE_SHADER
rect 96 91 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name absorb_iconpic
style WINDOW_STYLE_SHADER
rect 53 80 64 64
background "gfx/mp/NEW_f_icon_lt_absorb"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------
// Heal Icon
//----------------------------------
itemDef
{
name heal_hexpic
group lighthexes
style WINDOW_STYLE_SHADER
rect 236 91 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name heal_iconpic
style WINDOW_STYLE_SHADER
rect 193 80 64 64
background "gfx/mp/NEW_f_icon_lt_heal"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------
// Mindtrick Icon
//----------------------------------
itemDef
{
name mindtrick_hexpic
group lighthexes
style WINDOW_STYLE_SHADER
rect 376 91 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name mindtrick_iconpic
style WINDOW_STYLE_SHADER
rect 333 80 64 64
background "gfx/mp/NEW_f_icon_lt_mind_trick"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------
// Protect Icon
//----------------------------------
itemDef
{
name protect_hexpic
group lighthexes
style WINDOW_STYLE_SHADER
rect 516 91 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name protect_iconpic
style WINDOW_STYLE_SHADER
rect 473 80 64 64
background "gfx/mp/NEW_f_icon_lt_protect"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Dark Force Icons
//----------------------------------------------------------------------------------------------
//----------------------------------
// Drain Icon
//----------------------------------
// The hex powerlevel graphic (this has to print first because it's additive
itemDef
{
name drain_hexpic
group darkhexes
style WINDOW_STYLE_SHADER
rect 96 191 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 .7 .7 1
visible 1
decoration
}
itemDef
{
name drain_iconpic
style WINDOW_STYLE_SHADER
rect 53 182 64 64
background "gfx/mp/NEW_f_icon_dk_drain"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------
// Grip Icon
//----------------------------------
itemDef
{
name grip_hexpic
group darkhexes
style WINDOW_STYLE_SHADER
rect 236 191 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 .7 .7 1
visible 1
decoration
}
itemDef
{
name grip_iconpic
style WINDOW_STYLE_SHADER
rect 193 182 64 64
background "gfx/mp/NEW_f_icon_dk_grip"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------
// Lighting Icon
//----------------------------------
itemDef
{
name lightning_hexpic
group darkhexes
style WINDOW_STYLE_SHADER
rect 376 191 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 .7 .7 1
visible 1
decoration
}
itemDef
{
name lightning_iconpic
style WINDOW_STYLE_SHADER
rect 333 182 64 64
background "gfx/mp/NEW_f_icon_dk_l1"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------
// Rage Icon
//----------------------------------
itemDef
{
name rage_hexpic
group darkhexes
style WINDOW_STYLE_SHADER
rect 516 191 70 49
background "gfx/menus/hex_pattern_0"
forecolor 1 .7 .7 1
visible 1
decoration
}
itemDef
{
name rage_iconpic
style WINDOW_STYLE_SHADER
rect 473 182 64 64
background "gfx/mp/NEW_f_icon_dk_rage"
forecolor .75 .75 .75 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MODELS FOR V-O
//----------------------------------------------------------------------------------------------
itemDef
{
name luke_face
group models
type ITEM_TYPE_MODEL
rect 415 285 149 149
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/luke/model_menu.skin"
asset_model "models/players/luke/model.glm"
model_angle 180
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
decoration
cvarTest ui_forcestatus
showCvar { "vll"; "sll"; "ntl"; "sdl"; "vdl" }
}
itemDef
{
name kyle_face
group models
type ITEM_TYPE_MODEL
rect 415 288 145 145
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/kyle/model_menu.skin"
asset_model "models/players/kyle/model.glm"
model_angle 180
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
cvarTest ui_forcestatus
showCvar { "vlk"; "slk"; "ntk"; "sdk"; "vdk" }
decoration
}
//----------------------------------------------------
// LUKE SUBTITLES
//----------------------------------------------------
itemDef
{
name luke_very_light
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MLUK_03
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "vll" }
}
itemDef
{
name luke_semi_light
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MLUK_04
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "sll" }
}
itemDef
{
name luke_neutral
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MLUK_05
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "ntl" }
}
itemDef
{
name luke_semi_dark
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MLUK_01
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "sdl" }
}
itemDef
{
name luke_very_dark
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MLUK_02
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "vdl" }
}
//----------------------------------------------------
// KYLE SUBTITLES
//----------------------------------------------------
itemDef
{
name kyle_very_light
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MKYK_05
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "vlk" }
}
itemDef
{
name kyle_semi_light
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MKYK_04
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "slk" }
}
itemDef
{
name kyle_neutral
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MKYK_03
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "ntk" }
}
itemDef
{
name kyle_semi_dark
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MKYK_01
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "sdk" }
}
itemDef
{
name kyle_very_dark
type ITEM_TYPE_TEXT
rect 52 316 288 124
text @MISC_MKYK_02
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
autowrapped
cvarTest ui_forcestatus
showCvar { "vdk" }
}
//-----------------------------------------
// Go to Academy (taken from ingameMissionSelect)
//----------------------------------------
itemDef
{
name story5_continue
type ITEM_TYPE_BUTTON
rect 430 440 100 24
text @MENUS_CONTINUE
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
cvartest "tier_storyinfo"
showCvar { "5"; "6" }
mouseEnter
{
}
mouseExit
{
}
action
{
close all
uiScript startmap academy2
}
}
itemDef
{
name story11_continue
type ITEM_TYPE_BUTTON
rect 430 440 100 24
text @MENUS_CONTINUE
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
cvartest "tier_storyinfo"
showCvar { "11"; "12" }
mouseEnter
{
}
mouseExit
{
}
action
{
close all
uiScript startmap academy4
}
}
itemDef
{
name story17_continue
type ITEM_TYPE_BUTTON
rect 430 440 100 24
text @MENUS_CONTINUE
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
cvartest "tier_storyinfo"
showCvar { "17"; "18" }
mouseEnter
{
}
mouseExit
{
}
action
{
close all
uiScript startmap academy6
}
}
//----------------------------------------------------------------------------------------------
// SCANLINES OVER WHOLE MENU
//----------------------------------------------------------------------------------------------
itemDef
{
name scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

854
base/ui/ingameGotoTier.menu Normal file
View File

@@ -0,0 +1,854 @@
//----------------------------------------------------------------------------------------------
// Mission Select Menu
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "ingameGotoTier"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
fadeClamp 1.0 // sets the fadeup alpha
fadeCycle 20 // how often fade happens in milliseconds
fadeAmount 0.1 // amount to adjust alpha per cycle
onOpen
{
uiScript loadmissionselectmenu tier_storyinfo
fadein background
}
onESC
{
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/mission_back"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name eyecandy1
group none
style WINDOW_STYLE_SHADER
rect 17 309 357 153
background "gfx/menus/mission_bottomleft_grid"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name botlf
group none
style WINDOW_STYLE_SHADER
rect 0 300 80 180
background "gfx/menus/mission_bottom_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name complete
type ITEM_TYPE_TEXT
rect 170 16 300 32
text @MENUS_MISSION_COMPLETE
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 150
textaligny -1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Killed, Secrets
//----------------------------------------------------------------------------------------------
itemDef
{
name killed
group stats
rect 0 52 320 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_ENEMIESKILLED
cvar "ui_stats_enemieskilled"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_CENTER
textalignx 160
textaligny -1
visible 1
decoration
}
itemDef
{
name secretsfound
group stats
rect 320 52 320 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_SECRETAREAS
cvar "ui_stats_secretsfound"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_CENTER
textalignx 160
textaligny -1
visible 1
decoration
cvartest "ui_stats_secretsfound"
hidecvar
{
"0"
}
}
// Lines above and below lightsaber info
itemDef
{
name border
group none
type ITEM_TYPE_TEXT
rect 70 80 500 2
forecolor 1 1 1 1
border 1
bordercolor .403 .584 .741 1
visible 1
decoration
}
itemDef
{
name border
group none
type ITEM_TYPE_TEXT
rect 70 165 500 2
forecolor 1 1 1 1
border 1
bordercolor .403 .584 .741 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Saber use data
//----------------------------------------------------------------------------------------------
itemDef
{
name saberuse
type ITEM_TYPE_TEXT
rect 0 87 640 32
text @SP_INGAME_LIGHTSABERUSE
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 320
textaligny -1
visible 1
decoration
}
itemDef
{
name saber_thrown
rect 20 115 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_THROWN
cvar "ui_stats_thrown"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name saber_blocks
rect 20 140 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_BLOCKS
cvar "ui_stats_blocks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name leg_attacks
rect 220 115 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_LEGATTACKS
cvar "ui_stats_legattacks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name arm_attacks
rect 220 140 200 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_ARMATTACKS
cvar "ui_stats_armattacks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name body_attacks
rect 420 115 300 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_BODYATTACKS
cvar "ui_stats_bodyattacks"
font 2
forecolor .549 .854 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 100
textaligny -1
visible 1
decoration
}
itemDef
{
name forceuse
type ITEM_TYPE_TEXT
rect 250 173 150 32
text @SP_INGAME_FORCEUSE
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 75
textaligny -1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 1st column of force stats (light side powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name absorb
rect -20 195 150 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_ABSORB
cvar "ui_stats_absorb"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name heal
rect -20 215 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_HEAL
cvar "ui_stats_heal"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name mindtrick
rect -20 235 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_MINDTRICK
cvar "ui_stats_mindtrick"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name protection
rect -20 255 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_PROTECTION
cvar "ui_stats_protect"
font 2
forecolor 0 0 1 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 2nd column of force stats (neutral powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name jump
rect 130 195 160 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_JUMP
cvar "ui_stats_jump"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name pull
rect 130 215 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_PULL
cvar "ui_stats_pull"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name push
rect 130 235 160 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_PUSH
cvar "ui_stats_push"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name sense
rect 130 255 160 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_SENSE
cvar "ui_stats_sense"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 3rd column of force stats (neutral powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name speed
rect 280 195 150 32
type ITEM_TYPE_EDITFIELD
text @SP_INGAME_SPEED
cvar "ui_stats_speed"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name defense
rect 280 215 300 32
type ITEM_TYPE_EDITFIELD
text @MENUS_DEFENSE
cvar "ui_stats_defense"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -1
visible 1
decoration
}
itemDef
{
name offense
rect 280 235 300 32
type ITEM_TYPE_EDITFIELD
text @MENUS_OFFENSE
cvar "ui_stats_offense"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -1
visible 1
decoration
}
itemDef
{
name throw
rect 280 255 300 32
type ITEM_TYPE_EDITFIELD
text @MENUS_THROW
cvar "ui_stats_throw"
font 2
forecolor .631 .631 .815 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny -1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Lower 4th column of force stats (dark powers)
//----------------------------------------------------------------------------------------------
itemDef
{
name grip
rect 430 195 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_DRAIN
cvar "ui_stats_drain"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name grip
rect 430 215 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_GRIP
cvar "ui_stats_grip"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name lightning
rect 430 235 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_FORCE_LIGHTNING
cvar "ui_stats_lightning"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
itemDef
{
name rage
rect 430 255 150 32
type ITEM_TYPE_EDITFIELD
text @MENUS_RAGE
cvar "ui_stats_rage"
font 2
forecolor 1 0 0 1
textscale .8
textalign ITEM_ALIGN_RIGHT
textalignx 150
textaligny 0
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// MODELS FOR V-O
//----------------------------------------------------------------------------------------------
itemDef
{
name luke
group storyheads
type ITEM_TYPE_MODEL
rect 415 285 149 149
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/luke/model_menu.skin"
asset_model "models/players/luke/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
decoration
cvartest "storyhead"
showcvar
{
"luke"
"yavin2"
}
}
itemDef
{
name kyle
group storyheads
type ITEM_TYPE_MODEL
rect 415 288 145 145
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/kyle/model_menu.skin"
asset_model "models/players/kyle/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 18
model_g2maxs 60 20 55
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
decoration
cvartest "storyhead"
showcvar
{
"kyle"
}
}
itemDef
{
name protocol
group storyheads
type ITEM_TYPE_MODEL
rect 426 317 116 116
model_g2anim "BOTH_STAND1_TALK2"
model_g2skin "models/players/protocol/model_menu.skin"
asset_model "models/players/protocol/model.glm"
model_angle 180
//mins maxs format is apparently z x y (hmmm... y x z?)
model_g2mins 15 -20 17
model_g2maxs 60 20 50
model_rotation 0
model_fovx 10
model_fovy 10
isCharacter 1
visible 1
decoration
cvartest "storyhead"
showcvar
{
"protocol"
"academy3"
}
}
//----------------------------------------------------------------------------------------------
//
// BUTTONS
//
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//Sound is automatic
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
//coming from Yavin2
//----------------------------------------------------------------------------------------------
itemDef
{
name story1
type ITEM_TYPE_BUTTON
rect 550 440 172 24
text @MENUS_OKAY
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"1"
}
mouseEnter
{
}
mouseExit
{
}
action
{
close all
open ingameMissionSelect1
}
}
itemDef
{
name story1text
type ITEM_TYPE_TEXTSCROLL
rect 44 313 304 145
text @TIER1_1
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 2
textaligny -1
lineHeight 18
visible 1
autowrapped
cvartest "tier_storyinfo"
showcvar
{
"1"
}
}
//----------------------------------------------------------------------------------------------
//coming from Hoth3
//----------------------------------------------------------------------------------------------
itemDef
{
name story6
type ITEM_TYPE_BUTTON
rect 550 440 172 24
text @MENUS_OKAY
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"7"
}
mouseEnter
{
}
mouseExit
{
}
action
{
close all
open ingameMissionSelect2
}
}
itemDef
{
name story2text
type ITEM_TYPE_TEXTSCROLL
rect 44 313 304 145
text @TIER2_7
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 2
textaligny -1
lineHeight 18
visible 1
autowrapped
cvartest "tier_storyinfo"
showcvar
{
"7"
}
}
//----------------------------------------------------------------------------------------------
//coming from Vjun3
//----------------------------------------------------------------------------------------------
itemDef
{
name story11
type ITEM_TYPE_BUTTON
rect 550 440 172 24
text @MENUS_OKAY
font 2
forecolor 1 1 1 1
textscale .7
textalign ITEM_ALIGN_LEFT
textalignx 8
textaligny -1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"13"
}
mouseEnter
{
}
mouseExit
{
}
action
{
close all
open ingameMissionSelect3
}
}
itemDef
{
name story3text
type ITEM_TYPE_TEXTSCROLL
rect 44 313 304 145
text @TIER3_13
font 2
forecolor 1 1 1 1
textscale .8
textalign ITEM_ALIGN_LEFT
textalignx 2
textaligny -1
lineHeight 18
visible 1
autowrapped
cvartest "tier_storyinfo"
showcvar
{
"13"
}
}
//----------------------------------------------------------------------------------------------
// SCANLINES OVER WHOLE MENU
//----------------------------------------------------------------------------------------------
itemDef
{
name scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

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

File diff suppressed because it is too large Load Diff

1638
base/ui/ingameWpnSelect.menu Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,126 @@
//--------------------------------------------------------------
//
// ERROR MENU
//
// Displays error messages
//
//--------------------------------------------------------------
{
menuDef
{
name "ingameWpnSelectHelp"
visible 0
fullscreen 0
rect 140 70 350 375
focusColor 1 1 1 1
style WINDOW_STYLE_FILLED
border 1
popup
outOfBoundsClick
descX 240
descY 425
descScale 1
descColor 1 .682 0 .8
itemDef
{
name window
rect 0 0 350 375
style WINDOW_STYLE_FILLED
backcolor .015 .015 .229 1
forecolor 0 0 0 1
border 1
bordercolor .388 .396 .925 1
bordersize 5
visible 1
decoration
}
itemDef
{
name instruction_title
group inst_stuff
type ITEM_TYPE_TEXT
rect 0 25 350 18
text @MENUS_HELP
font 2
forecolor .549 .854 1 1
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 175
visible 1
decoration
}
itemDef
{
name instruction_text
group inst_stuff
type ITEM_TYPE_TEXTSCROLL
rect 25 80 300 250
text @MENUS_WEAPON_SELECTION_HELP
font 4
forecolor 1 1 1 1
textscale 1.0
textalign ITEM_ALIGN_LEFT
visible 1
decoration autowrapped
textaligny 0
lineHeight 13
}
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
}
//--------------------------------------------------------------------------------
// BUTTON
//--------------------------------------------------------------------------------
itemDef
{
name inst_done_button
group inst_stuff
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 0 315 350 18
text @MENUS_OKAY
descText @MENUS_HELP_DESC
font 3
textscale 1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 175
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 230 384 170 30
}
mouseExit
{
hide button_glow
}
action
{
play "sound/misc/nomenu.wav"
close ingameWpnSelectHelp
}
}
}
}

3247
base/ui/ingamecontrols.menu Normal file

File diff suppressed because it is too large Load Diff

726
base/ui/ingameload.menu Normal file
View File

@@ -0,0 +1,726 @@
//----------------------------------------------------------------------------------------------
// INGAME MAIN MENU
//
// Allows user to load from saved games. Called from in game main menu.
//----------------------------------------------------------------------------------------------
{
menuDef
{
// ***IMPORTANT*** This name can not change, code looks for it.
// If it must change, change it in UI_AdjustSaveGameListBox() also
//
name "ingameloadMenu"
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 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
onOpen
{
uiScript ReadSaveDirectory
}
onESC
{
play "sound/interface/esc.wav"
uiScript closeingame // Close menu
}
//----------------------------------------------------------------------------------------------
// 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 "SAVE"
itemDef
{
name savegamebutton_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 savegamebutton
group nbut
text @MENUS_SAVE
descText @MENUS_SAVE_CURRENT_GAME
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show savegamebutton_glow
}
mouseExit
{
hide savegamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open ingamesaveMenu
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 1 1 1
visible 1
decoration
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS
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 1
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 ingamecontrolsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback"
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 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
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 ingamesetupMenu ;
}
}
//----------------------------------------------------------------------------------------------
// OTHER MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button in lower left corner
itemDef
{
name backbutton_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
decoration
}
itemDef
{
name backbutton
group exit
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
cvartest ui_missionfailed
hidecvar
{
"1"
}
mouseEnter
{
show backbutton_glow
}
mouseExit
{
hide backbutton_glow
}
action
{
play "sound/interface/esc.wav"
close all ;
open ingamemainMenu
}
}
// Only displayed when the mission failure screen is up
itemDef
{
name backbutton
group exit
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
cvartest ui_missionfailed
showcvar
{
"1"
}
mouseEnter
{
show backbutton_glow
}
mouseExit
{
hide backbutton_glow
}
action
{
play "sound/interface/esc.wav"
close all ;
open missionfailed_menu
}
}
// 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 exit
text @MENUS_EXIT
descText @MENUS_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 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 ingamequitMenu
}
}
// RESUME button in the lower right corner
itemDef
{
name resumebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 455 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name resume
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 455 444 130 24
text @MENUS_RESUME
descText @MENUS_RESUME_CURRENT_GAME
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show resumebutton_glow
}
mouseExit
{
hide resumebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closeingame // Close menu
}
}
//----------------------------------------------------------------------------------------------
// LOAD GAME MENU specific stuff
//----------------------------------------------------------------------------------------------
// Load Game title
itemDef
{
name loadgame_title
group title
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_LOAD_GAME
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
{
// ***IMPORTANT*** This name can not change, code looks for it.
// If it must change, change it in UI_AdjustSaveGameListBox() also
//
name loadgamelist
group loadscreen
rect 40 200 360 190
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 16
font 2
textaligny 8
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 FEEDER_SAVEGAMES
notselectable
visible 1
columns 2 2 55 150 155 0 200 //#of col., x loc. of 1st column, 2 number doesn't seem to do anything, third is width of column
mouseEnter
{
setitemcolor loadgamelist bordercolor 1 1 1 1
}
mouseExit
{
setitemcolor loadgamelist bordercolor 0 0 .8 1
}
doubleclick
{
play sound/interface/button1.wav
uiScript loadgame
}
action
{
play sound/interface/sub_select
}
}
itemDef
{
name loadgamepic
group loadscreen
style WINDOW_STYLE_EMPTY
ownerdraw 236 //UI_ALLMAPS_SELECTION
font 2
textscale .8
// forecolor 1 1 1 1
forecolor .549 .854 1 1
rect 435 200 180 135
border 1
bordercolor 0 0 .8 1
visible 1
}
// loadgame button
itemDef
{
name loadgameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 360 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgameaction
group actionbutton
text @MENUS_LOAD_GAME
descText @MENUS_LOAD_CHOSEN_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 360 175 25
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
cvarTest ui_SelectionOK
enableCvar { "1" }
mouseEnter
{
show loadgameaction_glow
}
mouseExit
{
hide loadgameaction_glow
}
action
{
play sound/interface/button1.wav ;
hide glow ;
uiScript loadgame
}
}
// deletegame button
itemDef
{
name deletegameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 385 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name deletegamebutton
group actionbutton
text @MENUS_DELETE_GAME
descText @MENUS_DELETE_CHOSEN_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 385 175 25
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
cvarTest ui_SelectionOK
enableCvar { "1" }
mouseEnter
{
show deletegameaction_glow
}
mouseExit
{
hide deletegameaction_glow
}
action
{
play sound/interface/button1.wav ;
hide glow ;
uiScript deletegame
}
}
// resumegame button
itemDef
{
name resumegameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 410 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name resumeautobutton
group actionbutton
text @MENUS_RESUME_MISSION
descText @MENUS_RESUME_LAST_MISSION_ENTERED
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 410 175 25
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1 // This button isn't used when not in game.
cvarTest ui_ResumeOK
enableCvar { "1" }
mouseEnter
{
show resumegameaction_glow
}
mouseExit
{
hide resumegameaction_glow
}
action
{
play "sound/interface/button1.wav" ;
hide glow ;
uiScript loadAuto
}
}
}
}

784
base/ui/ingamequit.menu Normal file
View File

@@ -0,0 +1,784 @@
//----------------------------------------------------------------------------------------------
//
// QUIT MENU
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "ingamequitMenu"
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
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
hide abandongamegroup ;
hide quitprogramgroup ;
hide highlights ;
show quitchoicegroup ;
}
onESC
{
play "sound/interface/esc.wav"
hide abandongamegroup ;
hide quitprogramgroup ;
hide highlights ;
show quitchoicegroup ;
close all ;
open ingameMainMenu ;
}
//----------------------------------------------------------------------------------------------
//
// 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 "SAVE"
itemDef
{
name savegamebutton_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 savegamebutton
group nbut
text @MENUS_SAVE
descText @MENUS_SAVE_CURRENT_GAME
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show savegamebutton_glow
}
mouseExit
{
hide savegamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open ingamesaveMenu
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group none
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open ingameloadMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS
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 1
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 ingamecontrolsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback"
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 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
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 ingamesetupMenu ;
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// RESUME button in the lower right corner
itemDef
{
name resumebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 455 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name resume
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 455 444 130 24
text @MENUS_RESUME
descText @MENUS_RESUME_CURRENT_GAME
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show resumebutton_glow
}
mouseExit
{
hide resumebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closeingame // Close menu
}
}
//----------------------------------------------------------------------------------------------
//
// QUIT GAME 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 quitgame_current_glow
group highlights
style WINDOW_STYLE_SHADER
rect 220 210 200 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// Quit current button
itemDef
{
name quitgame_current
group quitchoicegroup
text @MENUS_ABANDON_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 220 210 200 30
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 100
textaligny -2
descText @MENUS_QUIT_CURRENT_GAME_AND
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
show abandongamegroup ;
hide quitchoicegroup ;
hide quitprogramgroup ;
hide highlights ;
}
mouseEnter
{
show quitgame_current_glow
}
mouseExit
{
hide quitgame_current_glow
}
}
itemDef
{
name quitgame_program_glow
group highlights
style WINDOW_STYLE_SHADER
rect 220 280 200 30
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// Quit program button
itemDef
{
name quitgame_program
group quitchoicegroup
text @MENUS_QUIT_PROGRAM
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 220 280 200 30
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 100
textaligny -2
descText @MENUS_LEAVE_THE_PROGRAM_ENTIRELY
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
show quitprogramgroup ;
hide abandongamegroup ;
hide quitchoicegroup ;
hide highlights ;
}
mouseEnter
{
show quitgame_program_glow
}
mouseExit
{
hide quitgame_program_glow
}
}
//----------------------------------------------------------------------------------------------
//
// Abandon game Confirmation
//
//----------------------------------------------------------------------------------------------
// Quit current button
itemDef
{
name fakequitgame_current
group abandongamegroup
text @MENUS_ABANDON_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 220 210 200 30
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 100
textaligny -2
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name abandongame_cancel_glow
group highlights
style WINDOW_STYLE_SHADER
rect 78 384 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// CANCEL button
itemDef
{
name abandongame_cancel
group abandongamegroup
text @MENUS_NO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 78 384 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 1
descText @MENUS_DO_NOT_ABANDON
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide abandongamegroup ;
hide quitprogramgroup ;
hide highlights ;
show quitchoicegroup ;
}
mouseEnter
{
show abandongame_cancel_glow
}
mouseExit
{
hide abandongame_cancel_glow
}
}
itemDef
{
name abandongame_yes_glow
group highlights
style WINDOW_STYLE_SHADER
rect 434 384 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// YES button
itemDef
{
name abandongame_yes
group abandongamegroup
text @MENUS_YES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 434 384 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 1
descText @MENUS_ABANDON
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide abandongamegroup ;
hide quitprogramgroup ;
hide highlights ;
show quitchoicegroup ;
uiScript Leave //disconnect and start over
}
mouseEnter
{
show abandongame_yes_glow
}
mouseExit
{
hide abandongame_yes_glow
}
}
//----------------------------------------------------------------------------------------------
//
// Leave game Confirmation
//
//----------------------------------------------------------------------------------------------
// Quit program button
itemDef
{
name fakequitgame_program
group quitprogramgroup
text @MENUS_QUIT_PROGRAM
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 220 280 200 30
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 100
textaligny -2
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name quitprogram_cancel_glow
group highlights
style WINDOW_STYLE_SHADER
rect 78 384 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// CANCEL button
itemDef
{
name quitprogram_cancel
group quitprogramgroup
text @MENUS_NO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 78 384 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 1
descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
hide quitprogramgroup ;
hide abandongamegroup ;
hide highlights ;
show quitchoicegroup ;
}
mouseEnter
{
show quitprogram_cancel_glow
}
mouseExit
{
hide quitprogram_cancel_glow
}
}
itemDef
{
name quitprogram_yes_glow
group highlights
style WINDOW_STYLE_SHADER
rect 434 384 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// YES button
itemDef
{
name quitprogram_yes
group quitprogramgroup
text @MENUS_YES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 434 384 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 1
descText @MENUS_JEDI_KNIGHT_II
forecolor 1 .682 0 1
visible 1
cvartest "com_demo"
hidecvar
{
"1"
}
action
{
play "sound/interface/button1.wav" ;
uiScript Quit // Quit the game
}
mouseEnter
{
show quitprogram_yes_glow
}
mouseExit
{
hide quitprogram_yes_glow
}
}
// YES button
itemDef
{
name quitprogram_yes
group quitprogramgroup
text @MENUS_YES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 434 384 130 24
font 3
textscale 1
textalignx 65
textaligny -1
textalign ITEM_ALIGN_CENTER
textstyle 1
descText @MENUS_JEDI_KNIGHT_II
forecolor 1 .682 0 1
visible 1
cvartest "com_demo"
hidecvar
{
"0"
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open demo_sellscreen1 ;
}
mouseEnter
{
show quitprogram_yes_glow
}
mouseExit
{
hide quitprogram_yes_glow
}
}
}
}

663
base/ui/ingamesave.menu Normal file
View File

@@ -0,0 +1,663 @@
//------------------------------------------------------------------------------------------------
// INGAME MAIN MENU
//
// Allows player to save current game
//
//------------------------------------------------------------------------------------------------
{
menuDef
{
name "ingamesaveMenu"
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 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
onOpen
{
uiScript ReadSaveDirectory
setfocus savegamedesc
}
onESC
{
play "sound/interface/esc.wav"
uiScript closeingame // Close menu
}
//----------------------------------------------------------------------------------------------
// 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 "SAVE"
itemDef
{
name savegamebutton_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 savegamebutton
group nbut
text @MENUS_SAVE
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 1 1 1
visible 1
decoration
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group none
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open ingameloadMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS
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 1
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 ingamecontrolsMenu ;
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback"
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 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
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 ingamesetupMenu ;
}
}
//----------------------------------------------------------------------------------------------
// OTHER MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button in lower left corner
itemDef
{
name backbutton_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
decoration
}
itemDef
{
name backbutton
group exit
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 backbutton_glow
}
mouseExit
{
hide backbutton_glow
}
action
{
play "sound/interface/esc.wav"
close all ;
open ingamemainMenu
}
}
// 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 exit
text @MENUS_EXIT
descText @MENUS_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 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 ingamequitMenu
}
}
// RESUME button in the lower right corner
itemDef
{
name resumebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 455 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name resume
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 455 444 130 24
text @MENUS_RESUME
descText @MENUS_RESUME_CURRENT_GAME
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show resumebutton_glow
}
mouseExit
{
hide resumebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
uiScript closeingame // Close menu
}
}
//----------------------------------------------------------------------------------------------
// SAVE GAME FIELDS
//----------------------------------------------------------------------------------------------
// Save Game title
itemDef
{
name savegame_title
group title
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_SAVE_GAME
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 savegamedesc
group savegame
type ITEM_TYPE_EDITFIELD
style WINDOW_STYLE_EMPTY
text @MENUS_DESC
cvar ui_gameDesc
maxChars 60
rect 40 185 450 16
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny -4
font 2
textscale .8
outlinecolor 1 .5 .5 .5
backcolor 0 0 0 0
forecolor .615 .615 .956 1
border 0
bordercolor 0 0 0 0
visible 1
}
itemDef
{
name savegamelist
group loadscreen
rect 40 200 360 190
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 16
font 2
textaligny 8
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 FEEDER_SAVEGAMES
notselectable
visible 1
columns 2 2 55 150 155 0 200
mouseEnter
{
setitemcolor savegamelist bordercolor 1 1 1 1
}
mouseExit
{
setitemcolor savegamelist bordercolor 0 0 .8 1
}
}
itemDef
{
name savegame_desc
group none
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_TEXT
rect 40 392 360 16
text @MENUS_SAVEGAME_DESC
font 4
textscale 1
textalignx 0
textaligny 1
textalign ITEM_ALIGN_LEFT
forecolor 1 .682 0 1
visible 1
}
itemDef
{
name savegamepic
group loadscreen
style WINDOW_STYLE_EMPTY
ownerdraw 236 //UI_ALLMAPS_SELECTION
font 2
textscale .8
forecolor .549 .854 1 1
rect 435 200 180 135
border 1
bordercolor 0 0 .8 1
visible 1
decoration
}
itemDef
{
name savegameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 360 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name savegamebutton
group toprow
text @MENUS_SAVE_GAME
descText @MENUS_SAVE_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 360 175 25
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show savegameaction_glow
}
mouseExit
{
hide savegameaction_glow
}
action
{
play sound/interface/button1.wav ;
uiScript savegame
}
}
// deletegame button
itemDef
{
name deletegameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 385 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name deletegamebutton
group toprow
text @MENUS_DELETE_GAME
descText @MENUS_DELETE_CHOSEN_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 385 175 25
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
cvarTest "ui_SelectionOK"
enableCvar { "1" }
mouseEnter
{
show deletegameaction_glow
}
mouseExit
{
hide deletegameaction_glow
}
action
{
play sound/interface/button1.wav ;
hide glow ;
uiScript deletegame
}
}
}
}

2740
base/ui/ingamesetup.menu Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,197 @@
//------------------------------------------------------------------------------------------------
// INGAME VIDEO WARNING
//------------------------------------------------------------------------------------------------
{
menuDef
{
name "ingamevideowarningMenu"
visible 0
fullScreen 1 // 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 350
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
popup
onESC
{
play "sound/interface/esc.wav"
close all ;
open ingameSetupMenu ;
}
onClose
{
play "sound/interface/button1.wav" ;
}
itemDef
{
name warn_background
group none
style WINDOW_STYLE_SHADER
rect 100 120 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 130 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 240 220 20
textalign ITEM_ALIGN_CENTER
text2aligny 18
textalignx 110
font 2
textscale 1
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name vidwarn_text2
group vidwarn
text @MENUS_APPLY_THESE_CHANGES_OR
rect 210 260 220 20
textalign ITEM_ALIGN_CENTER
textalignx 110
font 2
textscale 1
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name vidwarn_no_button
group vidwarn
style WINDOW_STYLE_SHADER
rect 180 380 120 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// DISCARD button - return to Video Data screen
itemDef
{
name vidwarn_no
group vidwarn
text @MENUS_DISCARD
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 180 380 120 24
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny -3
descText @MENUS_DO_NOT_APPLY_CHANGES
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/esc.wav"
close all ;
uiScript getvid1data ; // Get video settings
open ingameSetupMenu ;
activate ingameSetupMenu video1menubutton
}
mouseEnter
{
show vidwarn_no_button
}
mouseExit
{
hide vidwarn_no_button
}
}
itemDef
{
name vidwarn_yes_button
group vidwarn
style WINDOW_STYLE_SHADER
rect 340 380 120 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// APPLY button, use settings
itemDef
{
name vidwarn_yes
group vidwarn
text @MENUS_APPLY
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 380 120 24
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny -3
descText @MENUS_APPLY_CHANGES_AND_THEN
forecolor 1 .682 0 1
visible 1
action
{
play "sound/interface/button1.wav" ;
uiScript setvid1data ingameSetupMenu ; // Set video settings
close all
}
mouseEnter
{
show vidwarn_yes_button
}
mouseExit
{
hide vidwarn_yes_button
}
}
}
}

5
base/ui/jahud.txt Normal file
View File

@@ -0,0 +1,5 @@
// hud menu defs
//
{
loadMenu { "ui/hud.menu" }
}

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.

35
base/ui/jampingame.txt Normal file
View File

@@ -0,0 +1,35 @@
//---------------------------------------------------------
// jk2mpingame.txt
//
// .menu files to load for the JAMP ingame menu system
//
//---------------------------------------------------------
{
loadMenu { "ui/jamp/connect.menu" }
loadMenu { "ui/jamp/ingame_about.menu" }
loadMenu { "ui/jamp/ingame_addbot.menu" }
loadMenu { "ui/jamp/ingame_callvote.menu" }
loadMenu { "ui/jamp/ingame_controls.menu" }
loadMenu { "ui/jamp/ingame_join.menu" }
loadMenu { "ui/jamp/ingame_leave.menu" }
loadMenu { "ui/jamp/ingame.menu" }
loadMenu { "ui/jamp/ingame_player.menu" }
loadMenu { "ui/jamp/ingame_player2.menu" }
loadMenu { "ui/jamp/ingame_playerforce.menu" }
loadMenu { "ui/jamp/ingame_saber.menu" }
loadMenu { "ui/jamp/ingame_setup.menu" }
loadMenu { "ui/jamp/ingame_siegeobjectives.menu" }
loadMenu { "ui/jamp/ingame_vote.menu" }
loadMenu { "ui/jamp/ingame_orders.menu" }
loadMenu { "ui/jamp/ingame_voicechat.menu" }
loadMenu { "ui/jamp/siege_msg.menu" }
loadMenu { "ui/jamp/siege_class.menu" }
loadMenu { "ui/jamp/vid_warning.menu" }
loadMenu { "ui/jamp/ingame_objectives.menu" }
}

37
base/ui/jampmenus.txt Normal file
View File

@@ -0,0 +1,37 @@
// menu defs
//
{
loadMenu { "ui/jamp/main.menu" }
loadMenu { "ui/jamp/joinserver.menu" }
loadMenu { "ui/jamp/player.menu" }
loadMenu { "ui/jamp/player2.menu" }
loadMenu { "ui/jamp/createserver.menu" }
loadMenu { "ui/jamp/connect.menu" }
loadMenu { "ui/jamp/rules.menu" }
loadMenu { "ui/jamp/rules_games.menu" }
loadMenu { "ui/jamp/rules_force.menu" }
loadMenu { "ui/jamp/rules_weapons.menu" }
loadMenu { "ui/jamp/rules_items.menu" }
loadMenu { "ui/jamp/rules_moves.menu" }
loadMenu { "ui/jamp/controls.menu" }
loadMenu { "ui/jamp/setup.menu" }
loadMenu { "ui/jamp/demo.menu" }
loadMenu { "ui/jamp/password.menu" }
loadMenu { "ui/jamp/quit.menu" }
loadMenu { "ui/jamp/error.menu" }
loadMenu { "ui/jamp/serverinfo.menu" }
loadMenu { "ui/jamp/findplayer.menu" }
loadMenu { "ui/jamp/createfavorite.menu" }
loadMenu { "ui/jamp/multiplayer.menu" }
loadMenu { "ui/jamp/advancedcreateserver.menu" }
loadMenu { "ui/jamp/saber.menu" }
loadMenu { "ui/jamp/quickgame.menu" }
loadMenu { "ui/jamp/quickgame2.menu" }
loadMenu { "ui/jamp/quickbots.menu" }
loadMenu { "ui/jamp/vid_warning.menu" }
loadMenu { "ui/jamp/videodriver.menu" }
loadMenu { "ui/jamp/password_request.menu" }
}

666
base/ui/loadgame.menu Normal file
View File

@@ -0,0 +1,666 @@
//------------------------------------------------------------------------------------------------
// LOADGAME MENU
//
// Load save games screen called from main menu.
//
//------------------------------------------------------------------------------------------------
{
menuDef
{
// ***IMPORTANT*** This name can not change, code looks for it.
// If it must change, change it in UI_AdjustSaveGameListBox() also
//
name "loadgameMenu"
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
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
onESC
{
play "sound/interface/esc.wav"
close all
open mainMenu
}
onOpen
{
uiScript ReadSaveDirectory ;
}
//----------------------------------------------------------------------------------------------
// 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 MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 7 126 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 126 130 24
text @MENUS_NEW
descText @MENUS_START_A_NEW_GAME
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show newbutton_glow
}
mouseExit
{
hide newbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open newgameMenu
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group none
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 1 1 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS
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 1
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 none
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback"
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 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
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 setupMenu ;
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// BACK button in lower left corner
itemDef
{
name backbutton_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
decoration
}
itemDef
{
name backbutton
group exit
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 backbutton_glow
}
mouseExit
{
hide backbutton_glow
}
action
{
play "sound/interface/esc.wav"
close all ;
open mainMenu
}
}
// 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 exit
text @MENUS_EXIT
descText @MENUS_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 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
}
}
//----------------------------------------------------------------------------------------------
//
// LOAD GAME MENU specific stuff
//
//----------------------------------------------------------------------------------------------
// Load Game title
itemDef
{
name loadgame_title
group title
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_LOAD_GAME
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
{
// ***IMPORTANT*** This name can not change, code looks for it.
// If it must change, change it in UI_AdjustSaveGameListBox() also
//
name loadgamelist
group loadscreen
rect 40 200 360 190
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 16
font 2
textaligny 8
textscale 0.7
border 1
bordersize 1
bordercolor 0 0 .8 1
forecolor .615 .615 .956 1
// forecolor 1 .682 0 1
backcolor 0 0 .5 .25
outlinecolor .5 .5 .5 .5
elementtype LISTBOX_TEXT
feeder FEEDER_SAVEGAMES
notselectable
visible 1
columns 2 2 55 150 155 0 200 //#of col., x loc. of 1st column, 2 number doesn't seem to do anything, third is width of column
mouseEnter
{
setitemcolor loadgamelist bordercolor 1 1 1 1
}
mouseExit
{
setitemcolor loadgamelist bordercolor 0 0 .8 1
}
doubleclick
{
play sound/interface/button1.wav
uiScript loadgame
}
action
{
play sound/interface/sub_select
}
}
itemDef
{
name loadgamepic
group loadscreen
style WINDOW_STYLE_EMPTY
ownerdraw 236 //UI_ALLMAPS_SELECTION
font 2
textscale .8
forecolor .549 .854 1 1
rect 435 200 180 135
border 1
bordercolor 0 0 .8 1
visible 1
decoration
}
// loadgame button
itemDef
{
name loadgameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 360 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgameaction
group actionbutton
text @MENUS_LOAD_GAME
descText @MENUS_LOAD_CHOSEN_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 360 190 20
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
cvarTest ui_SelectionOK
enableCvar { "1" }
mouseEnter
{
show loadgameaction_glow
}
mouseExit
{
hide loadgameaction_glow
}
action
{
play sound/interface/button1.wav ;
hide glow ;
uiScript loadgame
}
}
// deletegame button
itemDef
{
name deletegameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 385 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name deletegamebutton
group actionbutton
text @MENUS_DELETE_GAME
descText @MENUS_DELETE_CHOSEN_GAME
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 385 175 25
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
cvarTest ui_SelectionOK
enableCvar { "1" }
mouseEnter
{
show deletegameaction_glow
}
mouseExit
{
hide deletegameaction_glow
}
action
{
play sound/interface/button1.wav ;
hide glow ;
uiScript deletegame
}
}
// resumegame button
itemDef
{
name resumegameaction_glow
group glow
style WINDOW_STYLE_SHADER
rect 440 410 190 20
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name resumeautobutton
group actionbutton
text @MENUS_RESUME_MISSION
descText @MENUS_RESUME_LAST_MISSION_ENTERED
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 440 410 175 25
font 3
textscale 0.8
textalignx 175
textaligny 1
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1 // This button isn't used when not in game.
cvarTest ui_ResumeOK
enableCvar { "1" }
mouseEnter
{
show resumegameaction_glow
}
mouseExit
{
hide resumegameaction_glow
}
action
{
play "sound/interface/button1.wav" ;
hide glow ;
uiScript loadAuto
}
}
}
}

179
base/ui/loadscreen.menu Normal file
View File

@@ -0,0 +1,179 @@
//----------------------------------------------------------------------------------------------
// Load screen
//
// Data displayed while level is loading. Run only during map transitions.
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "loadscreen"
fullScreen 0
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 426
descScale 1
descColor .79 .64 .22 .7
descAlignment ITEM_ALIGN_CENTER
disablecolor .5 .5 .5 1
onClose
{
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/load_back"
forecolor 1 1 1 1
visible 0
decoration
}
// Picture that goes along with map
itemDef
{
name mappic
group none
style WINDOW_STYLE_SHADER
rect 25 31 266 200
background "gfx/menus/mission_back"
forecolor 1 1 1 1
visible 0
decoration
}
// Used only if there are enough icons to fill one row
itemDef
{
name weaponicons_singlerow
group none
style WINDOW_STYLE_SHADER
rect 20 280 540 30
forecolor 1 1 1 1
visible 0
decoration
}
// Used only if there are enough icons to fill two rows
itemDef
{
name weaponicons_row1
group none
style WINDOW_STYLE_SHADER
rect 20 260 540 30
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name weaponicons_row2
group none
style WINDOW_STYLE_SHADER
rect 20 305 540 30
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name forceicons_singlerow
group none
style WINDOW_STYLE_SHADER
rect 50 385 540 30
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name forceicons_row1
group none
style WINDOW_STYLE_SHADER
rect 50 360 540 30
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name forceicons_row2
group none
style WINDOW_STYLE_SHADER
rect 50 400 540 30
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name briefingtext
group none
type ITEM_TYPE_TEXTSCROLL
rect 295 20 330 370
cvar ui_missionbriefing
font 4
forecolor 1 1 1 1
textscale 1
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny 6
lineHeight 18
visible 1
autowrapped
}
// Frame around map pic
itemDef
{
name background
group none
style WINDOW_STYLE_EMPTY
rect 21 29 270 203
border 1
bordercolor .298 .305 .690 1
bordersize 2
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// Scan line to go over top of everything else
//----------------------------------------------------------------------------------------------
itemDef
{
name scan
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 640
background "gfx/menus/scanlines_noscroll"
forecolor 1 1 1 1
visible 1
decoration
}
}
}

549
base/ui/main.menu Normal file
View File

@@ -0,0 +1,549 @@
//----------------------------------------------------------------------------------------------
//
// MAIN MENU - called when game is first started
//
//----------------------------------------------------------------------------------------------
{
assetGlobalDef
{
smallFont "aurabesh" 18
mediumFont "ergoec" 18
bigFont "anewhope" 20
smallFont "arialnb" 14
cursor "cursor"
itemFocusSound "sound/interface/menuroam.wav"
itemFocusForce "fffx/interface/menuroam"
fadeClamp 1.0 // sets the fadeup alpha
fadeCycle 1 // how often fade happens in milliseconds
fadeAmount 0.1 // amount to adjust alpha per cycle
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"
}
focuscolor 0 0 1 1
shadowColor 0.1 0.1 0.1 0.0 // shadow color
}
menuDef
{
name "mainMenu"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
setfocus newgamebutton
}
onESC
{
play "sound/interface/menuroam.wav" ;
close mainMenu ;
open quitMenu ;
}
//----------------------------------------------------------------------------------------------
//
// 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
}
//----------------------------------------------------------------------------------------------
// TOP MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name button_glow
group mods
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
// Big button "NEW"
itemDef
{
name newgamebutton_undertext
group toprow
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 newgamebutton
group toprow
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 36 212 130 24
text @MENUS_NEW
descText @MENUS_START_A_NEW_GAME
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 16 210 210 32
show newgamebutton_undertext
}
mouseExit
{
hide button_glow
hide newgamebutton_undertext
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open newgamefirstMenu
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_undertext
group toprow
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 loadgamebutton
group toprow
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show button_glow
setitemrect button_glow 16 308 210 32
show loadgamebutton_undertext
}
mouseExit
{
hide button_glow
hide loadgamebutton_undertext
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open loadgameMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_undertext
group toprow
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 toprow
text @MENUS_CONTROLS
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 456 212 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
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 toprow
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 toprow
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 1
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 setupMenu ;
}
}
//----------------------------------------------------------------------------------------------
// OTHER MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// EXIT button in lower left corner
itemDef
{
name exitgamebutton
group othermain
text @MENUS_EXIT
descText @MENUS_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 3
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
}
}
/*itemDef
{
name temp_mission_glow
group mods
style WINDOW_STYLE_SHADER
rect 65 414 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name temp_mission
group mission
text "TEMP MISSION SELECT"
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 65 414 130 24
font 2
textscale .7
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
textaligny -1
forecolor .79 .64 .22 1
visible 1
mouseEnter
{
show temp_mission_glow
}
mouseExit
{
hide temp_mission_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
open ingameMissionSelect2
}
}
itemDef
{
name temp_story
group mission
text "AbCdEfGhIjKlMnOpQrStUvWxYz1234567890"
desctext "Start this map and walk forward."
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 65 444 130 24
font 4
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
textaligny -1
forecolor .79 .64 .22 1
visible 1
mouseEnter
{
}
mouseExit
{
}
action
{
play "sound/weapons/saber/saberoff.mp3";
close all ;
exec "map mission"
}
}*/
}
}

18
base/ui/menus.txt Normal file
View File

@@ -0,0 +1,18 @@
// menu defs
//
{
loadMenu { "ui/main.menu" }
loadMenu { "ui/newgame.menu" }
loadMenu { "ui/newgame_first.menu" }
loadMenu { "ui/character.menu" }
loadMenu { "ui/saber.menu" }
loadMenu { "ui/loadgame.menu" }
loadMenu { "ui/controls.menu" }
loadMenu { "ui/setup.menu" }
loadMenu { "ui/quit.menu" }
loadMenu { "ui/error.menu" }
loadMenu { "ui/vid_warning.menu" }
loadMenu { "ui/videodriver.menu" }
}

347
base/ui/missionfailed.menu Normal file
View File

@@ -0,0 +1,347 @@
//--------------------------------------------------------------
//
// MISSION FAILED MENU
//
// Displays choices after player death
//
//--------------------------------------------------------------
{
menuDef
{
name "missionfailed_menu"
visible 0
// Not full screen so we can see the game behind it.
fullscreen 0
rect 0 0 640 480
focusColor 1 1 1 1
style WINDOW_STYLE_FILLED
border 1
descX 320
descY 458
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
ignoreescape 1
onClose
{
}
onOpen
{
setcvar ui_missionfailed "0"
}
onESC
{
}
// Top Background
itemDef
{
name top_background
rect 50 10 540 80
style WINDOW_STYLE_FILLED
backcolor .015 .015 .229 .5
forecolor 0 0 0 .5
visible 1
decoration
}
// Bottom Background
itemDef
{
name bottom_background
rect 170 380 300 95
style WINDOW_STYLE_FILLED
backcolor .015 .015 .229 .5
forecolor 0 0 0 .5
visible 1
decoration
}
// Title
itemDef
{
name failed_title
group title
style WINDOW_STYLE_EMPTY
background "gfx/menus/menu_blendbox"
text @SP_INGAME_MISSIONFAILED
rect 0 20 640 16
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 320
textaligny -1
forecolor 1 0 0 1
visible 1
decoration
}
// Text saying why you failed
itemDef
{
name why_text
group none
background "gfx/menus/menu_blendbox"
cvar ui_missionfailed_text
rect 0 60 640 0
font 3
textscale .7
textalign ITEM_ALIGN_CENTER
textalignx 320
textaligny -1
forecolor 1 0 0 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" forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name restartauto
group grpControlbutton
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 380 300 20
text @MENUS_LOAD_AUTOSAVE
desctext @MENUS_LOAD_AUTOSAVE_DESC
textscale 1
font 4
textalign ITEM_ALIGN_CENTER
textalignx 150
forecolor 1 .682 0 1
visible 1
action
{
play "sound/misc/nomenu.wav"
close all
uiScript "load_auto" // Perform screen init
}
mouseEnter
{
show button_glow
setitemrect button_glow 170 378 300 24
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name loadsave
group grpControlbutton
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 400 300 20
text @MENUS_LOAD_SAVE_GAME
desctext @MENUS_LOAD_SAVE_GAME_DESC
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 150
forecolor 1 .682 0 1
visible 1
font 4
action
{
play "sound/misc/nomenu.wav"
close all
setcvar cl_paused "1"
setcvar ui_missionfailed "1"
open ingameloadMenu
}
mouseEnter
{
show button_glow
setitemrect button_glow 170 398 300 24
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name instantload
group grpControlbutton
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 420 300 20
text @MENUS_INSTANT_LOAD_CAPS
desctext @MENUS_INSTANT_LOAD_CAPS_DESC
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 150
forecolor 1 .682 0 1
visible 1
font 4
action
{
play "sound/misc/nomenu.wav"
close all
uiScript "load_quick"
}
mouseEnter
{
show button_glow
setitemrect button_glow 170 418 300 24
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name missionselect
group grpControlbutton
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 440 300 20
text @MENUS_NEW_MISSION
desctext @MENUS_NEW_MISSION_DESC
font 4
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 150
forecolor 1 .682 0 1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"1" "2" "3" "4" "5" "6"
}
action
{
play "sound/misc/nomenu.wav"
setcvar cl_paused "1"
uiScript decrementforcepowerlevel
close all
open ingameMissionSelect1
}
mouseEnter
{
show button_glow
setitemrect button_glow 170 438 300 24
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name missionselect
group grpControlbutton
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 440 300 20
text @MENUS_NEW_MISSION
desctext @MENUS_NEW_MISSION_DESC
font 4
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 150
forecolor 1 .682 0 1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"7" "8" "9" "10" "11" "12"
}
action
{
play "sound/misc/nomenu.wav"
setcvar cl_paused "1"
uiScript decrementforcepowerlevel
close all
open ingameMissionSelect2
}
mouseEnter
{
show button_glow
setitemrect button_glow 170 438 300 24
}
mouseExit
{
hide button_glow
}
}
itemDef
{
name missionselect
group grpControlbutton
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 440 300 20
text @MENUS_NEW_MISSION
desctext @MENUS_NEW_MISSION_DESC
font 4
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 150
forecolor 1 .682 0 1
visible 1
cvartest "tier_storyinfo"
showcvar
{
"13" "14" "15" "16" "17" "18"
}
action
{
play "sound/misc/nomenu.wav"
setcvar cl_paused "1"
uiScript decrementforcepowerlevel
close all
open ingameMissionSelect3
}
mouseEnter
{
show button_glow
setitemrect button_glow 170 438 300 24
}
mouseExit
{
hide button_glow
}
}
}
}

735
base/ui/newgame.menu Normal file
View File

@@ -0,0 +1,735 @@
//-----------------------------------------------------------------------
// NEWGAME MENU
//
// Called from all other menus other than main menu. This has no transition in it.
//
//-----------------------------------------------------------------------
{
menuDef
{
name "newgameMenu"
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 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
setcvar g_spskill 1
setcvar cg_crosshairForceHint 1
setcvar handicap 100
setfocus medbut
hide diff1
show diff2
hide diff3
hide diff4
setitemcolor easybut forecolor 1 .682 0 1
setitemcolor medbut forecolor 1 1 1 1
setitemcolor hardbut forecolor 1 .682 0 1
setitemcolor vhardbut forecolor 1 .682 0 1
}
onESC
{
play "sound/interface/esc.wav"
close newgameMenu ;
open mainMenu ;
}
//----------------------------------------------------------------------------------------------
//
// 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 MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 7 126 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 126 130 24
text @MENUS_NEW
descText @MENUS_START_A_NEW_GAME
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 1 1 1
visible 1
mouseEnter
{
show newbutton_glow
}
mouseExit
{
hide newbutton_glow
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group none
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
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 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
close all ;
open loadgameMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS
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 1
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 none
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback"
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 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
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 setupMenu ;
}
}
//----------------------------------------------------------------------------------------------
//
// OTHER MAIN MENU BUTTONS
//
//----------------------------------------------------------------------------------------------
// BACK button in lower left corner
itemDef
{
name backbutton_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
decoration
}
itemDef
{
name backbutton
group exit
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 backbutton_glow
}
mouseExit
{
hide backbutton_glow
}
action
{
play "sound/interface/esc.wav"
close all ;
open mainMenu
}
}
// 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 exit
text @MENUS_EXIT
descText @MENUS_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 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
}
}
//----------------------------------------------------------------------------------------------
//
// NEW GAME MENU specific stuff
//
//----------------------------------------------------------------------------------------------
// New Game title
itemDef
{
name newgame_title
group title
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_SELECT_SKILL
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 diff1
group none
style WINDOW_STYLE_SHADER
rect 225 196 190 40
background "gfx/menus/menu_buttonback" // Box around difficulty 1
forecolor 1 1 1 1
visible 0
decoration
}
// EASY difficulty button
itemDef
{
name easybut
group easy
text @MENUS_APPRENTICE
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
font 3
textscale 1
textalign ITEM_ALIGN_CENTER
textstyle 3
rect 225 196 190 40
textalignx 95
textaligny 8
forecolor 1 .682 0 1
visible 1
descText @MENUS_EASY_GAME_SETTINGS
action
{
play "sound/interface/button1.wav"
setcvar g_spskill 0
setcvar cg_crosshairForceHint 1
setcvar handicap 100
show diff1
hide diff2
hide diff3
hide diff4
setitemcolor easybut forecolor 1 1 1 1
setitemcolor medbut forecolor 1 .682 0 1
setitemcolor hardbut forecolor 1 .682 0 1
setitemcolor vhardbut forecolor 1 .682 0 1
}
}
itemDef
{
name diff2
group med
style WINDOW_STYLE_SHADER
rect 225 243 190 40
background "gfx/menus/menu_buttonback" // Box around difficulty 2
forecolor 1 1 1 1
visible 1
decoration
}
// MEDIUM difficulty button
itemDef
{
name medbut
group med
text @MENUS_JEDI
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
font 3
textscale 1
rect 225 243 190 40
textalignx 95
textaligny 8
textalign ITEM_ALIGN_CENTER
textstyle 3
forecolor 1 .682 0 1
visible 1
descText @MENUS_NORMAL_GAME_SETTINGS
action
{
play "sound/interface/button1.wav"
setcvar g_spskill 1
setcvar cg_crosshairForceHint 1
setcvar handicap 100
hide diff1 ;
show diff2 ;
hide diff3 ;
hide diff4 ;
setitemcolor easybut forecolor 1 .682 0 1
setitemcolor medbut forecolor 1 1 1 1
setitemcolor hardbut forecolor 1 .682 0 1
setitemcolor vhardbut forecolor 1 .682 0 1
}
}
itemDef
{
name diff3
group none
style WINDOW_STYLE_SHADER
rect 225 289 190 40
background "gfx/menus/menu_buttonback" // Box around difficulty 3
forecolor 1 1 1 1
visible 0
decoration
}
// HARD difficulty button
itemDef
{
name hardbut
group hard
text @MENUS_JEDI_KNIGHT
font 3
textscale 1
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 289 190 40
textalignx 95
textaligny 8
textalign ITEM_ALIGN_CENTER
textstyle 3
forecolor 1 .682 0 1
visible 1
descText @MENUS_DIFFICULT_GAME_SETTINGS
action
{
play "sound/interface/button1.wav" ;
setcvar g_spskill 2 ;
setcvar cg_crosshairForceHint 0 ;
setcvar handicap 100
hide diff1 ;
hide diff2 ;
show diff3 ;
hide diff4 ;
setitemcolor easybut forecolor 1 .682 0 1
setitemcolor medbut forecolor 1 .682 0 1
setitemcolor hardbut forecolor 1 1 1 1
setitemcolor vhardbut forecolor 1 .682 0 1
}
}
itemDef
{
name diff4
group none
style WINDOW_STYLE_SHADER
rect 225 335 190 40
background "gfx/menus/menu_buttonback" // Box around difficulty 4
forecolor 1 1 1 1
visible 0
decoration
}
// VERY HARD difficulty button
itemDef
{
name vhardbut
group vhard
text @MENUS_JEDI_MASTER
font 3
textscale 1
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 225 335 190 40
textalignx 95
textaligny 8
textalign ITEM_ALIGN_CENTER
textstyle 3
forecolor 1 .682 0 1
visible 1
descText @MENUS_EXTREMELY_DIFFICULT_GAME
action
{
play "sound/interface/button1.wav"
setcvar g_spskill 2
setcvar cg_crosshairForceHint 0
setcvar handicap 50
hide diff1 ;
hide diff2 ;
hide diff3 ;
show diff4 ;
setitemcolor easybut forecolor 1 .682 0 1
setitemcolor medbut forecolor 1 .682 0 1
setitemcolor hardbut forecolor 1 .682 0 1
setitemcolor vhardbut forecolor 1 1 1 1
}
}
// BEGIN button
itemDef
{
name next_glow
group mods
style WINDOW_STYLE_SHADER
rect 455 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name next
group none
text @MENUS_NEXT
descText @MENUS_NEXT_DESC
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 ;
open characterMenu ;
}
mouseEnter
{
show next_glow
}
mouseExit
{
hide next_glow
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More