Not working yet.
Code: Select all
//bzshell_multi_option.cfg
// ================
// BATTLEZONE SHELL
// ================
//
// CREATE SHELL MULTIPLAYER GAME OPTIONS PAGE
//
CreateControl("ShellMultiOption", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
OnEvent("Control::Activate")
{
cmd("shell.background multip_team.tga");
// FadeIn("|ShellMapOption");
}
//
//
// create the "Main" button
//
CreateControl("Main", "BUTTON")
{
ColorGroup("MAGENTA");
Position(20, 20);
Size(95, 0);
BorderSize(10);
BevelSize(5);
Style("ROLLOVER", "OUTLINE");
Text("Main");
Font("MEDIUM");
Cursor("Highlight");
NotifyParent("Button::Press", "Main");
}
//
// create the "leave" button
//
CreateControl("Leave", "BUTTON")
{
Geometry("LEFT", "TOP");
ColorGroup("MAGENTA");
Position(145, 20);
Size(95, 0);
BorderSize(10);
BevelSize(5);
Font("SMALL");
JustifyText("CENTER");
Text("Leave Game");
Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press", "Leave");
}
//
// create the "launch" button
//
CreateControl("Launch", "BUTTON")
{
ColorGroup("MAGENTA");
Position(520, 20);
Size(95, 0);
BorderSize(10);
BevelSize(5);
Style("ROLLOVER", "OUTLINE", "BLINK");
Text("Start Game");
Font("MEDIUM");
Cursor("Highlight");
NotifyParent("Button::Press", "Launch");
}
OnEvent("Launch")
{
cmd("shell.stopSound mire22_4.wav");
Cmd("shell.multi.launch");
Cmd("network.launch");
}
//
// handle the "back" event
//
OnEvent("Main")
{
cmd("shell.stopSound mire22_4.wav");
Cmd("network.session.leave");
Cmd("network.setoff");
// FadeIn/Outs done from NetCommands::DoIfaceQuitToMainMenu() now
}
CreateControl("VehicleSelection", "WINDOW")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(-20, 60);
Size(150, 120);
BorderSize(10);
BevelSize(5);
TabSize(110, 10);
Title("Allowed Vehicles");
TitleFont("SMALL");
Style("RIGHTTAB", "OUTLINE");
CreateControl("VehicleList", "CHECKLIST")
{
Geom("LEFT", "TOP");
ColorGroup("LISTBOX");
Position(0, 0);
Size(150, 110);
CellSize(140, 11);
BorderSize(5);
BevelSize(3);
Font("SMALL");
Style("VSLIDER");
// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
}
}
//
// create the options window
//
CreateControl("Option", "WINDOW")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(-20, 230);
Size(270, 5);
BorderSize(10);
BevelSize(5);
TabSize(110, 10);
Title("Game Options");
TitleFont("SMALL");
Style("RIGHTTAB", "INERT", "OUTLINE");
CreateControl("GameOptions", "BUTTON")
{
ColorGroup("BLACKBLUE");
Geometry("LEFT", "TOP");
Position(3, 0);
Size(110, 9);
BorderSize(3);
BevelSize(3);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("SMALL");
Text("Game Options");
NotifyParent("Button::Press", "DoGameOpts");
}
OnEvent("DoGameOpts")
{
FadeOut("|ShellMultiTeam");
Cmd("network.session.opengameopts");
}
CreateControl("ExtraOptions", "BUTTON")
{
ColorGroup("BLACKBLUE");
Geometry("RIGHT", "TOP");
Position(-3, 0);
Size(110, 9);
BorderSize(3);
BevelSize(3);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("SMALL");
Text("Map Options");
NotifyParent("Button::Press", "DoExtra");
}
OnEvent("DoExtra")
{
FadeOut("|ShellMultiTeam");
Cmd("network.session.openextras");
}
}
// handle the launch event
OnEvent("Leave")
{
Cmd("network.session.leave");
// FadeIn/Outs done from NetCommands::DoIfaceLeaveSession() now
}
//
// create the teams window
//
CreateControl("Players", "WINDOW")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "BOTTOM");
Position(-20, -20);
Size(270, 188);
BorderSize(10);
BevelSize(5);
TabSize(150, 10);
Title("Player List");
TitleFont("MEDIUM");
Style("RIGHTTAB", "OUTLINE");
CreateControl("PlayerList", "LISTBOX")
{
ColorGroup("BLACKBLUE");
Geometry("LEFT", "TOP");
Position(0, 0);
Size(270, 99);
CellSize(260, 11);
BorderSize(5);
BevelSize(3);
Font("TINY");
Cursor("Highlight");
Style("VSLIDER");
UseVar("network.session.playerlist");
}
CreateControl("VoiceChatTitle", "STATIC")
{
Geometry("LEFT", "BOTTOM");
Position(0, -17);
Size(50, 10);
Font("TINY");
Text("Voice Chat:");
JustifyText("LEFT");
Style("TRANSPARENT");
}
CreateControl("VoiceChatAll", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "BOTTOM");
Position(60, -17);
Size(30, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "RADIO", "OUTLINE");
Cursor("Highlight");
Font("TINY");
Text("All");
UseVar("network.session.voicechattype");
Value(0);
}
CreateControl("VoiceChatOne", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "BOTTOM");
Position(105, -17);
Size(30, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "RADIO", "OUTLINE");
Cursor("Highlight");
Font("TINY");
Text("One");
UseVar("network.session.voicechattype");
Value(2);
}
CreateControl("ChatTitle", "STATIC")
{
Geometry("LEFT", "BOTTOM");
Position(0, 2);
Size(50, 10);
Font("TINY");
Text("Text Chat:");
JustifyText("LEFT");
Style("TRANSPARENT");
}
CreateControl("ChatAll", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "BOTTOM");
Position(60, 2);
Size(30, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "RADIO", "OUTLINE");
Cursor("Highlight");
Font("TINY");
Text("All");
UseVar("network.session.chattype");
Value(0);
}
CreateControl("ChatOne", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "BOTTOM");
Position(105, 2);
Size(30, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "RADIO", "OUTLINE");
Cursor("Highlight");
Font("TINY");
Text("One");
UseVar("network.session.chattype");
Value(2);
}
CreateControl("Kick", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(0, 120);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("Kick");
NotifyParent("Button::Press", "Kick");
}
OnEvent("Kick")
{
Cmd("network.session.guikick");
}
CreateControl("Ban", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(-50, 120);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("Ban");
NotifyParent("Button::Press", "Ban");
}
OnEvent("Ban")
{
Cmd("network.session.guiban");
}
CreateControl("ShowIgnore", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(-50, 140);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("(Ignored)");
NotifyParent("Button::Press", "ShowIgnore");
}
OnEvent("ShowIgnore")
{
Cmd("network.chateditline '/showignore';network.chatline.entered");
}
CreateControl("Ignore", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(-50, 160);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("Ignore");
NotifyParent("Button::Press", "Ignore");
}
OnEvent("Ignore")
{
Cmd("network.session.guiignore");
}
CreateControl("UnIgnore", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(-50, 180);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("UnIgnore");
NotifyParent("Button::Press", "UnIgnore");
}
OnEvent("UnIgnore")
{
Cmd("network.session.guiunignore");
}
CreateControl("ShowMute", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(0, 140);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("(Muted)");
NotifyParent("Button::Press", "ShowMute");
}
OnEvent("ShowMute")
{
Cmd("network.chateditline '/showMute';network.chatline.entered");
}
CreateControl("Mute", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(0, 160);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("Mute");
NotifyParent("Button::Press", "Mute");
}
OnEvent("Mute")
{
Cmd("network.session.guimute");
}
CreateControl("UnMute", "BUTTON")
{
ColorGroup("MAGENTA");
Geometry("RIGHT", "TOP");
Position(0, 180);
Size(40, 10);
BorderSize(3);
BevelSize(2);
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
Font("Tiny");
Text("UnMute");
NotifyParent("Button::Press", "UnMute");
}
OnEvent("UnMute")
{
Cmd("network.session.guiunmute");
}
}
}
//
// CREATE SHELL MULTIPLAYER GAME OPTIONS PAGE
//
CreateControl("ShellMapOption_Small", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
CreateControl("Map", "WINDOW")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "TOP");
Position(20, 60);
Size(300, 120);
BorderSize(10);
BevelSize(5);
TabSize(110, 10);
Title("Map Selection");
TitleFont("SMALL");
Style("LEFTTAB", "OUTLINE");
CreateControl("Map", "STATIC")
{
ColorGroup("WHITE");
Geometry("LEFT", "TOP");
Position(10, 0);
Size(110, 115);
}
// !!!NOT
//CreateControl("MapSpecs", "LISTBOX")
//{
// ColorGroup("LISTBOX");
// Geometry("TOP", "RIGHT");
// Position(-10, 0);
// Size(135, 120);
// CellSize(125, 10);
// BorderSize(5);
// BevelSize(3);
// Style("INERT", "VSLIDER");
// Font("TINY");
//} !!!NOT
}
//
// create the "VehicleSelect" button
//
CreateControl("VehicleSelect", "BUTTON")
{
Geometry("LEFT", "TOP");
ColorGroup("MAGENTA");
Position(270, 20);
Size(100, 0);
BorderSize(10);
BevelSize(5);
Font("SMALL");
JustifyText("CENTER");
Text("My Vehicle");
Style("ROLLOVER", "RIGHTTAB", "OUTLINE", "BLINK");
Cursor("Highlight");
NotifyParent("Button::Press", "vehSel");
}
//
// handle the vehicle selection event
//
OnEvent("vehSel")
{
FadeOut("|ShellMapOption_Small");
FadeIn("|HostMapButt_Small");
FadeIn("|ShellMultiVehicle_Small");
}
}
// snip
CreateControl("ShellMapOption", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
CreateControl("Map", "WINDOW")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "TOP");
Position(20, 60);
Size(420, 120);
BorderSize(10);
BevelSize(5);
TabSize(110, 10);
Title("Map Selection");
TitleFont("SMALL");
Style("LEFTTAB", "OUTLINE");
CreateControl("MapList", "LISTBOX")
{
ColorGroup("LISTBOX");
Geometry("TOP", "LEFT");
Position(0, 0);
Size(145, 120);
CellSize(135, 10);
BorderSize(5);
BevelSize(3);
Style("VSLIDER");
Font("TINY");
Cursor("Highlight");
UseVar("network.session.svar0");
// Contents of this list filled in automatically from code [NetCommands.cpp]
}
CreateControl("Map", "STATIC")
{
ColorGroup("WHITE");
Geometry("LEFT", "TOP");
Position(160, 0);
Size(110, 115);
}
//
// create vehicle selection list
//
CreateControl("VehicleList", "LISTBOX")
{
ColorGroup("LISTBOX");
Geometry("RIGHT", "TOP");
Position(0, 0);
Size(135, 120);
CellSize(125, 10);
BorderSize(5);
BevelSize(3);
Font("SMALL");
Cursor("Highlight");
UseVar("network.clientvehiclename");
Style("VSLIDER", "INERT", "ROLLOVER", "OUTLINE");
// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
}
//
// create vehicle selection list
//
CreateControl("VehicleDesc", "LISTBOX")
{
ColorGroup("LISTBOX");
Geometry("RIGHT", "TOP");
Style("INERT", "VSLIDER");
Position(0, 0);
Size(135, 120);
CellSize(125, 10);
BorderSize(5);
BevelSize(3);
Font("TINY");
Cursor("Highlight");
}
// !!!NOT
//CreateControl("MapSpecs", "LISTBOX")
//{
// ColorGroup("LISTBOX");
// Geometry("TOP", "RIGHT");
// Position(0, 0);
// Size(135, 120);
// CellSize(125, 10);
// BorderSize(5);
// BevelSize(3);
// Style("INERT", "VSLIDER");
// Font("TINY");
//} !!!NOT
}
//!!!NOT
// create the "VehicleSelect" button
//
//CreateControl("VehicleSelect", "BUTTON")
//{
// Geometry("LEFT", "TOP");
// ColorGroup("MAGENTA");
// Position(270, 20);
// Size(100, 0);
// BorderSize(10);
// BevelSize(5);
// Font("SMALL");
// JustifyText("CENTER");
// Text("Choose Vehicle");
// Style("ROLLOVER", "RIGHTTAB", "OUTLINE", "BLINK");
// Cursor("Highlight");
// NotifyParent("Button::Press", "vehSel");
//}!!!NOT
//
// handle the vehicle selection event
//
OnEvent("vehSel")
{
FadeOut("|ShellMapOption");
FadeIn("|HostMapButt");
FadeIn("|ShellMultiVehicle");
}
}
CreateControl("HostMapButt", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
//
// create the "MapButt" button
//
CreateControl("MapButton", "BUTTON")
{
Geometry("LEFT", "TOP");
ColorGroup("MAGENTA");
Position(270, 20);
Size(100, 0);
BorderSize(10);
BevelSize(5);
Font("SMALL");
JustifyText("CENTER");
Text("Select Map");
Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press", "mapSel");
}
//
// handle the vehicle selection event
//
OnEvent("mapSel")
{
FadeOut("|HostMapButt");
FadeOut("|ShellMultiVehicle");
FadeIn("|ShellMapOption");
}
}
CreateControl("HostMapButt_Small", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
//
// create the "MapButt" button
//
CreateControl("MapButton", "BUTTON")
{
Geometry("LEFT", "TOP");
ColorGroup("MAGENTA");
Position(270, 20);
Size(100, 0);
BorderSize(10);
BevelSize(5);
Font("SMALL");
JustifyText("CENTER");
Text("Map Info");
Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press", "mapSel");
}
//
// handle the vehicle selection event
//
OnEvent("mapSel")
{
FadeOut("|HostMapButt_Small");
FadeOut("|ShellMultiVehicle_Small");
FadeIn("|ShellMapOption_Small");
}
}
Code: Select all
//bzshell_multi_vehicle.cfg
// ================
// BATTLEZONE SHELL
// ================
//
// CREATE SHELL MULTIPLAYER VEHICLE SETUP MENU
//
CreateControl("ShellMultiVehicle_Small", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
CreateControl("Vehicle", "WINDOW")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "TOP");
Position(20, 60);
Size(300, 120);
BorderSize(10);
BevelSize(5);
TabSize(110, 10);
Title("Vehicle");
TitleFont("MEDIUM");
Style("LEFTTAB", "OUTLINE");
//
// create vehicle viewer
//
CreateControl("VehicleView", "VIEWER")
{
ColorGroup("LISTBOX");
Geometry("LEFT", "TOP");
Position(10, 0);
Size(110, 115);
BorderSize(5);
BevelSize(3);
UseVar("network.clientvehiclemodel");
SetAmbientColor(1.0, 1.0, 1.0);
SetDiffuseColor(1.0, 1.0, 1.0);
SetDiffuseDir(2.0, -5.0, 1.0);
SetModelDistance(50.0);
SetModelInclination(-30.0);
SetModelRotation(60.0);
}
//!!! NOT
// create vehicle selection list
//
//CreateControl("VehicleDesc", "LISTBOX")
//{
// ColorGroup("LISTBOX");
// Geometry("RIGHT", "TOP");
// Style("INERT");
// Position(-10, 0);
// Size(135, 110);
// CellSize(125, 11);
// BorderSize(5);
// BevelSize(3);
// Style("VSLIDER");
// Font("TINY");
// Cursor("Highlight");
//}!!! NOT
}
}
CreateControl("ShellMultiVehicle", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
CreateControl("Vehicle", "WINDOW")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "TOP");
Position(20, 60);
Size(420, 120);
BorderSize(10);
BevelSize(5);
TabSize(110, 10);
Title("Vehicle");
TitleFont("MEDIUM");
Style("LEFTTAB", "OUTLINE");
//
// create vehicle viewer
//
CreateControl("VehicleView", "VIEWER")
{
ColorGroup("LISTBOX");
Geometry("LEFT", "TOP");
Position(150, 0);
Size(115, 120);
BorderSize(5);
BevelSize(3);
UseVar("network.clientvehiclemodel");
SetAmbientColor(1.0, 1.0, 1.0);
SetDiffuseColor(1.0, 1.0, 1.0);
SetDiffuseDir(2.0, -5.0, 1.0);
SetModelDistance(50.0);
SetModelInclination(-30.0);
SetModelRotation(60.0);
}
// !!!NOT
// create vehicle selection list
//
//CreateControl("VehicleList", "LISTBOX")
//{
// ColorGroup("LISTBOX");
//
// Geometry("LEFT", "TOP");
// Position(0, 0);
// Size(130, 110);
// CellSize(120, 11);
// BorderSize(5);
// BevelSize(3);
// Font("SMALL");
// Cursor("Highlight");
// UseVar("network.clientvehiclename");
// Style("VSLIDER");
// // Contents filled in from code now (MPVehicle.cpp thru NetCommands)
//}
//
// create vehicle selection list
//
//CreateControl("VehicleDesc", "LISTBOX")
//{
// ColorGroup("LISTBOX");
// Geometry("RIGHT", "TOP");
// Style("INERT", "VSLIDER");
// Position(0, 0);
// Size(135, 110);
// CellSize(125, 11);
// BorderSize(5);
// BevelSize(3);
// Font("TINY");
// Cursor("Highlight");
//} !!!NOT
}
}
It doesn't show the content of this vehiclelist.