cod5-sdk/raw/ui_mp/scriptmenus/votemap_splitscreen.menu
2008-11-20 00:00:00 +00:00

423 lines
8.5 KiB
Text

#include "ui/menudef.h"
#define ORIGIN_POPUPTITLE 320 160
#define ORIGIN_CHOICE1 320 200
#define ORIGIN_CHOICE2 320 220
#define ORIGIN_CHOICE3 320 240
#define ORIGIN_CHOICE4 320 260
#define ORIGIN_VOTEMAP1 260 260
#define ORIGIN_VOTEMAP2 260 280
#define ORIGIN_VOTEMAP3 260 300
#define ORIGIN_VOTEMAP4 260 320
#define ORIGIN_VOTEMAP5 260 340
#define ORIGIN_VOTECOUNT1 380 260
#define ORIGIN_VOTECOUNT2 380 280
#define ORIGIN_VOTECOUNT3 380 300
#define ORIGIN_VOTECOUNT4 380 320
#define ORIGIN_VOTECOUNT5 380 340
#define DVAR_VOTEMAP1 "ui_votemap1"
#define DVAR_VOTEMAP2 "ui_votemap2"
#define DVAR_VOTEMAP3 "ui_votemap3"
#define DVAR_VOTEMAP4 "ui_votemap4"
#define DVAR_VOTEMAP5 "ui_votemap5"
#define DVAR_VOTECOUNT1 "ui_votecount1"
#define DVAR_VOTECOUNT2 "ui_votecount2"
#define DVAR_VOTECOUNT3 "ui_votecount3"
#define DVAR_VOTECOUNT4 "ui_votecount4"
#define DVAR_VOTECOUNT5 "ui_votecount5"
#define NAME_CRASH "Crash" // war, dom, sab
#define NAME_FACILITY "Facility" // war, dom, sab
#define NAME_STRIKE "Strike" // war, dom
#define NAME_PALACE "Palace" // war, sd
#define NAME_BACKLOT "Backlot" // war, sd
#define NAME_CITYSTREETS "City Streets" // war, sd
#define NAME_ARGUN "Argun" // sab
#define NAME_CONVOY "Convoy" // sab
#define NAME_DUSK "Dusk" // war
//#define NAME_PIPELINE "Pipeline" // war
#define VALUE_CRASH 0
#define VALUE_FACILITY 1
#define VALUE_STRIKE 2
#define VALUE_PALACE 3
#define VALUE_BACKLOT 4
#define VALUE_CITYSTREETS 5
//#define VALUE_PIPELINE 6
{
menuDef
{
name "votemap_splitscreen"
rect 0 0 640 480
focuscolor COLOR_FOCUSED
style WINDOW_STYLE_EMPTY
blurWorld 6.0
onOpen
{
show maps; // needed or else map options are hidden on subsequent votes
setfocus maps_focus;
}
// background overlay
itemDef
{
style WINDOW_STYLE_FILLED
rect 0 0 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN
backcolor 0 0 0 0.50
visible 1
decoration
}
// gradient_top
itemDef
{
style WINDOW_STYLE_SHADER
rect 0 110 640 150 HORIZONTAL_ALIGN_FULLSCREEN 0
background "gradient_top"
visible 1
decoration
}
// gray bar
itemDef
{
style WINDOW_STYLE_FILLED
rect -640 0 2560 121
backcolor 0.1412 0.1412 0.1412 1
visible 1
decoration
}
itemDef
{
style WINDOW_STYLE_FILLED
rect 160 120 320 224
backcolor 0.1412 0.1412 0.1412 1
visible 1
decoration
}
itemDef
{
type ITEM_TYPE_TEXT
origin ORIGIN_POPUPTITLE
forecolor COLOR_TITLE
text "NEXT MAP"
textfont UI_FONT_NORMAL
textscale TEXTSIZE_TITLE
textalign ITEM_ALIGN_CENTER
visible 1
decoration
}
// WAR MAPS
itemDef
{
name maps_focus
group maps
visible 1
origin ORIGIN_CHOICE1
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_CRASH
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "war" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_CRASH;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
group maps
visible 1
origin ORIGIN_CHOICE2
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_PIPELINE
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "war" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_PIPELINE;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
// SABOTAGE MAPS
itemDef
{
name maps_focus
group maps
visible 1
origin ORIGIN_CHOICE1
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_CRASH
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "sab" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_CRASH;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
group maps
visible 1
origin ORIGIN_CHOICE2
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_FACILITY
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "sab" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_FACILITY;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
// DOMINATION MAPS
itemDef
{
name maps_focus
group maps
visible 1
origin ORIGIN_CHOICE1
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_FACILITY
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "dom" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_FACILITY;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
group maps
visible 1
origin ORIGIN_CHOICE2
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_STRIKE
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "dom" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_STRIKE;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
group maps
visible 1
origin ORIGIN_CHOICE3
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_PALACE
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "dom" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_PALACE;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
// SD MAPS
itemDef
{
name maps_focus
group maps
visible 1
origin ORIGIN_CHOICE1
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_BACKLOT
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "sd" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_BACKLOT;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
itemDef
{
group maps
visible 1
origin ORIGIN_CHOICE2
forecolor COLOR_UNFOCUSED
type ITEM_TYPE_BUTTON
text NAME_CITYSTREETS
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_CENTER
dvartest "g_gametype"
showDvar { "sd" }
action
{
play "mouse_click";
scriptMenuResponse VALUE_CITYSTREETS;
hide "maps";
}
onFocus
{
play "mouse_over";
}
}
#include "ui/templates/votemap_1st.menu"
#include "ui/templates/votemap_2nd.menu"
#include "ui/templates/votemap_3rd.menu"
#include "ui/templates/votemap_4th.menu"
#include "ui/templates/votemap_5th.menu"
itemDef
{
origin ORIGIN_VOTECOUNT1
type ITEM_TYPE_TEXT
dvar DVAR_VOTECOUNT1
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_RIGHT
forecolor COLOR_UNFOCUSED
visible 1
decoration
}
itemDef
{
origin ORIGIN_VOTECOUNT2
type ITEM_TYPE_TEXT
dvar DVAR_VOTECOUNT2
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_RIGHT
forecolor COLOR_UNFOCUSED
visible 1
decoration
}
itemDef
{
origin ORIGIN_VOTECOUNT3
type ITEM_TYPE_TEXT
dvar DVAR_VOTECOUNT3
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_RIGHT
forecolor COLOR_UNFOCUSED
visible 1
decoration
}
itemDef
{
origin ORIGIN_VOTECOUNT4
type ITEM_TYPE_TEXT
dvar DVAR_VOTECOUNT4
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_RIGHT
forecolor COLOR_UNFOCUSED
visible 1
decoration
}
itemDef
{
origin ORIGIN_VOTECOUNT5
type ITEM_TYPE_TEXT
dvar DVAR_VOTECOUNT5
textfont UI_FONT_NORMAL
textscale TEXTSIZE_DEFAULT
textalign ITEM_ALIGN_RIGHT
forecolor COLOR_UNFOCUSED
visible 1
decoration
}
}
}