There we go.
Code: Select all
// ================
// BATTLEZONE SHELL
// ================
//
// CREATE SHELL MULTIPLAYER GAME OPTIONS PAGE
//
Exec("custom_game_settings.cfg");
Exec("show_small_map.cfg");
CreateControl("ShellMultiClientOption", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");
OnEvent("Control::Activate")
{
cmd("shell.background multip_client.tga");
Activate("|show_small_map");
FadeIn("|MapiS");
}
//
//
// create the "back" button
//
CreateControl("Back", "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", "Back");
}
//
// 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", "OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press", "Leave");
}
//
// 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 Info");
TitleFont("MEDIUM");
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(0, 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");
}
}
//funktioniert noch nicht OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
//funktioniert noch nicht OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
CreateControl("CustomOptions","BUTTON")
{
Geometry("LEFT","TOP");
ColorGroup("MAGENTA");
Position(396,20);
Size(95, 0);
BorderSize(10);
BevelSize(5);
Font("SMALL");
JustifyText("CENTER");
Text("Specials");
Style("ROLLOVER","OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press","GSET");
}
OnEvent("GSET")
{
Activate("|GSETTINGS");
}
CreateControl("VehicleView", "VIEWER")
{
ColorGroup("BACKGROUND");
Geometry("RIGHT", "TOP");
Position(-20, 60);
Size(150, 120);
BorderSize(10);
BevelSize(5);
TabSize(110, 10);
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);
}
//
// 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");
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);
}
}
//
// create the "launch" button
//
CreateControl("Launch", "BUTTON")
{
Geometry("LEFT", "TOP");
ColorGroup("MAGENTA");
Position(520, 20);
Size(95, 0);
BorderSize(10);
BevelSize(5);
Font("SMALL");
JustifyText("CENTER");
Text("ENTER GAME");
Style("ROLLOVER", "OUTLINE", "BLINK");
Cursor("Highlight");
NotifyParent("Button::Press", "Launch");
}
// handle the launch event
OnEvent("Launch")
{
cmd("shell.stopSound mire22_4.wav");
Cmd("shell.multi.launch");
Cmd("network.launch");
}
OnEvent("Leave")
{
Cmd("network.session.leave");
// FadeIn/Outs done from NetCommands::DoIfaceLeaveSession() now
}
//
// handle the "back" event
//
OnEvent("Back")
{
cmd("shell.stopSound mire22_4.wav");
Cmd("network.session.leave");
Cmd("network.setoff");
// FadeIn/Outs done from NetCommands::DoIfaceQuitToMainMenu() now
}
}
CreateControl("MapInfo_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 Info");
TitleFont("SMALL");
Style("LEFTTAB", "OUTLINE");
CreateControl("Map", "STATIC")
{
ColorGroup("WHITE");
Geometry("LEFT", "TOP");
Position(10, 0);
Size(130, 115);
}
CreateControl("MapSpecs", "LISTBOX")
{
ColorGroup("LISTBOX");
Geometry("TOP", "RIGHT");
Position(-10, 0);
Size(130, 110);
CellSize(120, 11);
BorderSize(5);
BevelSize(3);
Style("INERT", "VSLIDER");
Font("TINY");
}
OnEvent("FillData")
{
Cmd("shell.multi.missionInfo");
}
}
//vehiclesel
}
CreateControl("MapInfo", "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 Info");
TitleFont("SMALL");
Style("LEFTTAB", "OUTLINE");
CreateControl("MapList", "STATIC")
{
ColorGroup("LISTBOX");
Style("VSLIDER");
Geometry("TOP", "LEFT");
Position(0, 0);
Size(120, 25);
CellSize(120, 11);
BorderSize(5);
BevelSize(3);
Font("TINY");
UseVar("network.session.svar0");
}
CreateControl("Map", "STATIC")
{
ColorGroup("WHITE");
Geometry("LEFT", "TOP");
Position(140, 0);
Size(130, 115);
}
CreateControl("MapSpecs", "LISTBOX")
{
ColorGroup("LISTBOX");
Geometry("TOP", "RIGHT");
Position(0, 0);
Size(130, 110);
CellSize(120, 11);
BorderSize(5);
BevelSize(3);
Style("INERT", "VSLIDER");
Font("TINY");
}
OnEvent("FillData")
{
Cmd("shell.multi.missionInfo");
}
}
//
// 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");
Cursor("Highlight");
NotifyParent("Button::Press", "vehSel");
}
//
// handle the vehicle selection event
//
OnEvent("vehSel")
{
FadeOut("|MapInfo");
FadeIn("|MapButt");
FadeIn("|ShellMultiVehicle");
}
}
CreateControl("MapButt_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")
{
cmd("iface.screenshot");
}
}
CreateControl("MapButt", "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("Screenshot");
Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press", "mapSel");
}
//
// handle the vehicle selection event
//
OnEvent("mapSel")
{
cmd("iface.screenshot");
}
}
download here.
-First I tried just changing the stock files, but got bad logs. So I made my own lil file which actually seems working- excepting the blank map