Initial commit

This commit is contained in:
Brian Beck 2025-09-11 16:56:30 -07:00
parent 2211ed7650
commit ebb3dc9cdd
10121 changed files with 801 additions and 4 deletions

View file

@ -0,0 +1,517 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(AIEButtonBarDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiChunkedBitmapCtrl() {
profile = "EditorContentProfile";
horizSizing = "right";
vertSizing = "height";
position = "0 30";
extent = "120 420";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiCheckBoxCtrl(ExteriorCheckBox) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 23";
extent = "100 22";
minExtent = "8 8";
visible = "1";
command = "ExteriorCheckBox.updateCheckBox();";
helpTag = "0";
text = "Draw Ext";
};
new GuiCheckBoxCtrl(InteriorCheckBox) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 47";
extent = "100 22";
minExtent = "8 8";
visible = "1";
command = "InteriorCheckBox.updateCheckBox();";
helpTag = "0";
text = "Draw Int";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 6";
extent = "73 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Visual Options:";
};
new GuiCheckBoxCtrl(JetConnectionsCheckBox) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 73";
extent = "100 22";
minExtent = "8 8";
visible = "1";
command = "JetConnectionsCheckBox.updateCheckBox();";
helpTag = "0";
text = "Draw Jet";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 201";
extent = "100 29";
minExtent = "8 8";
visible = "1";
command = "makeJettableGraph(Nav);";
helpTag = "0";
text = "Bot Graph";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 169";
extent = "100 29";
minExtent = "8 8";
visible = "1";
command = "makeJettableGraph(Spawn);";
helpTag = "0";
text = "Spawn Graph";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 233";
extent = "100 29";
minExtent = "8 8";
visible = "1";
command = "AIEButtonBarDlg.createLOSXref();";
helpTag = "0";
text = "Build LOS";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 265";
extent = "100 29";
minExtent = "8 8";
visible = "1";
command = "navGraph.saveGraph();";
helpTag = "0";
text = "Save";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 151";
extent = "56 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Graph Build";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 315";
extent = "64 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "AI Objectives";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 331";
extent = "100 29";
minExtent = "8 8";
visible = "1";
command = "AICreateObjectives();";
helpTag = "0";
text = "Build Objectives";
};
new GuiPopUpMenuCtrl(ObjectiveList) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 368";
extent = "101 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "New Objective";
maxPopupHeight = "200";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 395";
extent = "100 29";
minExtent = "8 8";
visible = "1";
command = "AISaveMissionObjectives();";
helpTag = "0";
text = "Save";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 102";
extent = "73 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Camera speed:";
};
new GuiSliderCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 121";
extent = "80 20";
minExtent = "80 20";
visible = "1";
variable = "value";
command = "$Camera::movementSpeed = $ThisControl.getValue();";
helpTag = "0";
range = "0.000000 200.000000";
ticks = "10";
value = "20";
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function makeUnbridgedGraph()
{
GraphCurrentOperation.setValue("Generating interior nodes...");
Canvas.repaint();
navGraph::generateInterior();
dataProgress();
GraphCurrentOperation.setValue("Remaking graph...");
Canvas.repaint();
remakeTheGraph();
dataProgress();
}
function makeJettableGraph(%NAVorSPAWN)
{
AIworking(true);
$NavGraph::operations = 7;
$NavGraph::operationsDone = 0;
navGraph.setGenMode(%NAVorSPAWN);
navGraph::exteriorInspect();
dataProgress();
makeUnbridgedGraph();
GraphCurrentOperation.setValue("Beginning slow bridge finding pass");
Canvas.repaint();
navGraph.assemble();
navGraph.cullIslands();
remakeTheGraph();
navGraph.pushBridges();
navGraph.makeTables();
dataProgress();
AIworking(false);
}
//------------------------------------------------------------------------------
function AIEButtonBarDlg::getPrefs(%this)
{
}
//------------------------------------------------------------------------------
function AIEbuttonBarDlg::setPrefs(%this)
{
}
//------------------------------------------------------------------------------
function AIEButtonBarDlg::init(%this)
{
InteriorCheckBox.setValue($pref::NavGraph::drawIndoor);
ExteriorCheckBox.setValue($pref::NavGraph::drawOutdoor);
if(!$pref::NavGraph::drawIndoor)
JetConnectionsCheckBox.visible = false;
JetConnectionsCheckBox.setValue($pref::NavGraph::drawJetEdges);
ObjectiveList.clear();
ObjectiveList.setText("New Objective");
ObjectiveList.add("Deploy Outdoor Turret", 1);
ObjectiveList.add("Deploy Indoor Turret", 2);
ObjectiveList.add("Deploy Inventory", 3);
ObjectiveList.add("Touch FlipFlop", 4);
ObjectiveList.add("Mortar Target", 5);
ObjectiveList.add("Repair Equipment", 6);
ObjectiveList.add("Attack Target", 7);
ObjectiveList.add("Defend Location", 8);
objectiveList.add("New Group", 9);
//ObjectivesList.sort();
}
//------------------------------------------------------------------------------
function AIEButtonBarDlg::onSleep(%this)
{
}
//------------------------------------------------------------------------------
function AIEButtonBarDlg::onWake(%this)
{
}
//------------------------------------------------------------------------------
function dataProgress()
{
$NavGraph::operationsDone++;
%percent = $NavGraph::operationsDone / $NavGraph::operations;
GraphBuildProgress.setValue(%percent);
Canvas.repaint();
}
//------------------------------------------------------------------------------
function remakeTheGraph()
{
GraphCurrentOperation.setValue("making graph...");
Canvas.repaint();
navGraph.makeGraph();
dataProgress();
}
//------------------------------------------------------------------------------
function AIEButtonBarDlg::createLOSXref()
{
AIworking(true);
GraphCurrentOperation.setValue("Making LOS CrossRef Table...");
GraphBuildProgress.setValue(0);
if(2.player)
navGraph.prepLOS(2.player.getTransform());
else
navGraph.prepLOS("0 0 0");
while(navGraph.makeLOS())
{
GraphBuildProgress.setValue($graphProcessPercent);
Canvas.repaint();
}
GraphBuildProgress.setValue(100);
Canvas.repaint();
AIworking(false);
}
function ExteriorCheckBox::updateCheckBox()
{
$pref::NavGraph::drawOutdoor = !$pref::NavGraph::drawOutdoor;
}
function InteriorCheckBox::updateCheckBox()
{
$pref::NavGraph::drawIndoor = !$pref::NavGraph::drawIndoor;
if(!$pref::NavGraph::drawIndoor)
JetConnectionsCheckBox.visible = false;
else
jetConnectionsCheckBox.visible = true;
}
function JetConnectionsCheckBox::updateCheckBox()
{
$pref::NavGraph::drawJetEdges = !$pref::NavGraph::drawJetEdges;
}
function AISaveMissionObjectives()
{
// once we have created all objecitves, save out the mis file
if(!isObject(MissionGroup))
{
error("No mission exists!");
return;
}
// check for read-only
%file = "base/missions/" @ $MissionName;
if(!isWriteableFileName(%file))
{
error("Mission file '" @ %file @ "' is not writeable.");
return;
}
// ok, were good to save.
missionGroup.save("missions/" @ $MissionName);
}
function AIObjectivesLock(%lock)
{
%numTeams = nameToId("MissionGroup/Teams").getCount();
for(%j = 0; %j < %numTeams; %j++)
{
%objGroup = nameToId("MissionGroup/Teams/team" @ %j @ "/AIObjectives");
if(%objGroup == -1)
continue;
%objCount = %objGroup.getCount();
for(%i = 0; %i < %objCount; %i++)
{
%obj = %objGroup.getObject(%i);
%obj.locked = %lock;
}
}
// save
AISaveMissionObjectives();
}
function addNewObjective(%type)
{
if($AIEditor::inspectTeam == 1)
%team = 1;
else if($AIEditor::inspectTeam == 2)
%team = 2;
else
%team = 1;
%tGroup = nameToId("MissionGroup/Teams/team" @ %team @ "/AIObjectives");
if(%tGroup < 1)
return;
if($InstantGroup $= "MissionGroup")
$InstantGroup = %tGroup;
switch$(%type)
{
case "Defend Location":
%objective = new AIObjective(AIODefendLocation)
{
dataBlock = "AIObjectiveMarker";
};
case "Repair Equipment":
%objective = new AIObjective(AIORepairObject)
{
dataBlock = "AIObjectiveMarker";
};
case "Deploy Outdoor Turret":
%Objective = new AIObjective(AIODeployEquipment)
{
dataBlock = "AIObjectiveMarker";
weightLevel1 = 4100;
weightLevel2 = 0;
description = "Deploy outdoor Turret";
offense = false;
defense = true;
targetObjectId = -1;
targetObject = -1;
targetClientId = -1;
equipment = "TurretOutdoorDeployable";
buyEquipmentSet = "MediumOutdoorTurretSet";
};
case "Deploy Indoor Turret":
%Objective = new AIObjective(AIODeployEquipment)
{
dataBlock = "AIObjectiveMarker";
weightLevel1 = 4100;
weightLevel2 = 0;
description = "Deploy indoor Turret";
offense = false;
defense = true;
targetObjectId = -1;
targetObject = -1;
targetClientId = -1;
equipment = "TurretIndoorDeployable";
buyEquipmentSet = "MediumIndoorTurretSet";
};
case "Attack Target":
%objective = new AIObjective(AIOAttackObject)
{
dataBlock = "AIObjectiveMarker";
};
case "Touch FlipFlop":
%objective = new AIObjective(AIOTouchObject)
{
dataBlock = "AIObjectiveMarker";
};
case "Mortar Target":
%objective = new AIObjective(AIOMortarObject)
{
dataBlock = "AIObjectiveMarker";
};
case "Deploy Inventory":
%Objective = new AIObjective(AIODeployEquipment)
{
dataBlock = "AIObjectiveMarker";
weightLevel1 = 4100;
weightLevel2 = 0;
description = "Deploy Inventory Station";
offense = false;
defense = true;
targetObjectId = -1;
targetObject = -1;
targetClientId = -1;
equipment = "InventoryDeployable";
buyEquipmentSet = "MediumInventorySet";
};
case "New Group":
%set = new SimGroup("ObjectiveSet");
%tGroup.add(%set);
return;
default:
error("no defined type.");
return;
}
$InstantGroup.add(%objective);
aiEdit.clearSelection();
aiEdit.selectObject(%objective);
aiEdit.dropSelection();
%objective.location = %objective.getWorldBoxCenter();
Inspector.inspect(%objective);
InspectorNameEdit.setValue(%objective.getName());
}
function ObjectiveList::onSelect(%this, %id, %text)
{
addNewObjective(%text);
ObjectiveList.setText("New Objective");
}

View file

@ -0,0 +1,162 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(AIEFrameSetDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
activeToolCount = "0";
new GuiFrameSetCtrl(AIEFrameSet) {
profile = "EditorContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "120 30";
extent = "520 420";
minExtent = "8 8";
visible = "1";
helpTag = "0";
columns = "0";
rows = "0";
borderWidth = "4";
borderColor = "206 206 206 206";
borderEnable = "dynamic";
borderMovable = "dynamic";
autoBalance = "0";
new GuiControl(AIEFrame) {
profile = "EditTSControlProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "520 420";
minExtent = "8 8";
visible = "1";
helpTag = "0";
borderWidth = "2";
};
new GuiFrameSetCtrl(AIEToolFrameSet) {
profile = "EditorContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "520 420";
extent = "20 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
columns = "0";
borderWidth = "3";
borderColor = "206 206 206 206";
borderEnable = "dynamic";
borderMovable = "dynamic";
autoBalance = "0";
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function AIEFrameSetDlg::getPrefs(%this)
{
}
function AIEFrameSetDlg::setPrefs(%this)
{
}
function AIEFrameSetDlg::onWake(%this)
{
$AIEdit = true;
AIEditorMap.push();
aiEdit.clearIgnoreList();
aiEdit.ignoreObjClass(AIObjective);
aiEdit.toggleIgnoreList = true;
aiEdit.renderNav = true;
}
function AIEFrameSetDlg::onSleep(%this)
{
$AIEdit = false;
AIEditorMap.pop();
EditorTree.open("MissionGroup");
}
function AIEFrameSetDlg::init(%this)
{
AIEFrame.add(aiEdit);
%this.resetFrames();
}
function AIEFrameSetDlg::update(%this)
{
// check the frame to see if it is visible
if(AIEToolFrameSet.getCount())
{
%res = getResolution();
//90 = width of button bar
%width = getWord(%res, 0) - 90;
if(AIEFrameSet.getColumnOffset(1) > %width - editor.minToolFrameWidth)
AIEFrameSet.setColumnOffset(1, %width - editor.minToolFrameWidth);
}
}
function AIEFrameSetDlg::resetFrames(%this)
{
%tools = AIEToolFrameSet;
while(%tools.getRowCount() > %tools.getCount())
%tools.removeRow();
while(%tools.getRowCount() < %tools.getCount())
%tools.addRow();
%offset = 400;
// update the frame view
%frameSet = AIEFrameSet;
if(!%tools.getCount() && (%frameSet.getColumnCount() > 1))
{
%Offset = %frameSet.getColumnOffset(1);
%frameSet.removeColumn();
}
if(%tools.getCount() && (%frameSet.getColumnCount() == 1))
{
%frameSet.addColumn();
%frameSet.setColumnOffset(1, %offset);
}
//if(%tools.getCount())
//%this.toolPaneOffset = AIEFrameSet.getColumnOffset(1);
%this.activeToolCount = %tools.getCount();
}
function AIEFrameSetDlg::addTool(%this, %tool)
{
%group = nameToId("MissionGroup/Teams/team" @ $AIEditor::inspectTeam @ "/AIObjectives");
if(%group == -1)
return false;
if($AIEditor::inspectTeam == 1)
EditorTree.open("MissionGroup/Teams/team1/AIObjectives");
else
EditorTree.open("MissionGroup/Teams/team2/AIObjectives");
AIEToolFrameSet.add(%tool);
%this.resetFrames();
return true;
}
function AIEFrameSetDlg::removeTool(%this, %tool)
{
AIEToolFrameSet.remove(%tool);
%this.resetFrames();
}

View file

@ -0,0 +1,83 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(AIEStatusBarDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
new GuiControl() {
profile = "EditorContentProfile";
horizSizing = "width";
vertSizing = "top";
position = "0 450";
extent = "640 30";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 8";
extent = "39 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Mission:";
};
new GuiControl() {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "49 6";
extent = "188 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiTextCtrl(AIEMissionNameText) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "3 2";
extent = "8 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function AIEStatusBarDlg::init(%this)
{
%this.update();
}
function AIEStatusBarDlg::update(%this)
{
if($MissionName $= "")
AIEMissionNameText.setValue("<none>");
else
AIEMissionNameText.setValue($MissionName);
}

View file

@ -0,0 +1,66 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(AIEWorkingDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
new GuiChunkedBitmapCtrl() {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "top";
position = "234 5";
extent = "400 130";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiTextCtrl() {
profile = "ShellLargeLabelProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "16 10";
extent = "378 40";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Building Graph ...";
};
new GuiProgressCtrl(GraphBuildProgress) {
profile = "ShellProgressBarProfile";
horizSizing = "center";
vertSizing = "top";
position = "29 50";
extent = "342 31";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
setValue = "0";
};
new GuiTextCtrl(GraphCurrentOperation) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 96";
extent = "8 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,46 @@
new WorldEditor(aiEdit)
{
profile = "";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "520 420";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
};
//------------------------------------------------------------------------------
function AIworking(%working)
{
if(%working)
{
Canvas.pushDialog(AIEWorkingDlg);
GraphBuildProgress.setValue(0.0);
}
else
Canvas.popDialog(AIEWorkingDlg);
Canvas.repaint();
}
new ActionMap(AIEditorMap);
//AIEditorMap.bindCmd(keyboard, "space", "aiEdit.nextMode();", "");
AIEditorMap.bindCmd(keyboard, "ctrl c", "aiEdit.copySelection();", "");
AIEditorMap.bindCmd(keyboard, "ctrl x", "aiEdit.copySelection();aiEdit.deleteSelection();", "");
AIEditorMap.bindCmd(keyboard, "delete", "aiEdit.copySelection();aiEdit.deleteSelection();", "");
AIEditorMap.bindCmd(keyboard, "ctrl v", "aiEdit.pasteSelection();", "");
AIEditorMap.bindCmd(keyboard, "ctrl h", "aiEdit.hideSelection(true);", "");
AIEditorMap.bindCmd(keyboard, "alt h", "aiEdit.hideSelection(false);", "");
AIEditorMap.bindCmd(keyboard, "i", "Canvas.pushDialog(interiorDebugDialog);", "");
AIEditorMap.bindCmd(keyboard, "ctrl d", "aiEdit.dropSelection();", "");
AIEditorMap.bindCmd(keyboard, "ctrl q", "aiEdit.dropCameraToSelection();", "");
AIEditorMap.bindCmd(keyboard, "ctrl m", "aiEdit.moveSelectionInPlace();", "");
AIEditorMap.bindCmd(keyboard, "ctrl r", "aiEdit.resetTransforms();", "");
AIEditorMap.bindCmd(keyboard, "space", "aiEdit.nextMode();", "");

View file

@ -0,0 +1,90 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(AIEditorToolBar) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiControl() {
profile = "EditorContentProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "640 30";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiCheckBoxCtrl(AIEditorObjectivesTree1CheckBox) {
profile = "GuiRadioProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "290 5";
extent = "114 20";
minExtent = "8 8";
visible = "1";
command = "AIEditorObjectivesTree1CheckBox.setTreeGui(1);";
helpTag = "0";
text = "Objectives Team 1";
};
new GuiCheckBoxCtrl(AIEditorObjectivesTree2CheckBox) {
profile = "GuiRadioProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "405 5";
extent = "114 20";
minExtent = "8 8";
visible = "1";
command = "AIEditorObjectivesTree2CheckBox.setTreeGui(2);";
helpTag = "0";
text = "Objectives Team 2";
};
new GuiCheckBoxCtrl(AIEditorObjectivesInspectorCheckBox) {
profile = "GuiRadioProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "520 5";
extent = "114 20";
minExtent = "8 8";
visible = "1";
command = "if($ThisControl.getValue()) AIEFrameSetDlg.addTool(EditorToolInspectorGui); else AIEFrameSetDlg.removeTool(EditorToolInspectorGui);";
helpTag = "0";
text = "Objectives Inspector";
};
};
};
//--- OBJECT WRITE END ---
function AIEditorToolBar::init(%this)
{
}
function AIEditorObjectivesTree1CheckBox::setTreeGui(%this, %team)
{
$AIEditor::inspectTeam = %team;
AIEditorObjectivesTree2CheckBox.setValue(false);
if($ThisControl.getValue())
%isSet = AIEFrameSetDlg.addTool(EditorToolTreeViewGui);
else
%isSet = AIEFrameSetDlg.removeTool(EditorToolTreeViewGui);
$ThisControl.setValue(%isSet);
}
function AIEditorObjectivesTree2CheckBox::setTreeGui(%this, %team)
{
$AIEditor::inspectTeam = %team;
AIEditorObjectivesTree1CheckBox.setValue(false);
if($ThisControl.getValue())
%isSet = AIEFrameSetDlg.addTool(EditorToolTreeViewGui);
else
%isSet = AIEFrameSetDlg.removeTool(EditorToolTreeViewGui);
$ThisControl.setValue(%isSet);
}

View file

@ -0,0 +1,338 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(AddressDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lbstate = "buddylist";
msg = "Request Processed";
lbline = "6";
DestList = "1";
key = "28";
state = "noprocess";
lbcount = "6";
blstate = "DONE";
useVariable = "0";
doRefresh = "1";
SrcList = "2";
err = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "79 68";
extent = "481 344";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "LIST CONTROL";
noTitleBar = "0";
new ShellBitmapButton(LC_CCListBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "219 178";
extent = "75 38";
minExtent = "32 38";
visible = "1";
command = "AddressDlg.AddCC();";
helpTag = "0";
text = "DEL";
simpleStyle = "0";
direction = "1";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "30 115";
extent = "183 178";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 7";
extent = "159 164";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(LC_BigList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "159 8";
minExtent = "8 8";
visible = "1";
variable = "$LCBigList";
command = "AddressDlg.onClick(\"BIGLIST\");";
altCommand = "AddressDlg.onDblClick(0);";
helpTag = "0";
enumerate = "1";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new ShellBitmapButton(LC_ToListBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "219 38";
extent = "75 38";
minExtent = "32 38";
visible = "1";
command = "AddressDlg.AddTo();";
helpTag = "0";
text = "DEL";
simpleStyle = "0";
direction = "1";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "284 40";
extent = "168 119";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 7";
extent = "144 105";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(LC_ToList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "144 8";
minExtent = "8 8";
visible = "1";
variable = "$LCToList";
command = "AddressDlg.onClick(\"TOLIST\");";
altCommand = "AddressDlg.onDblClick(1);";
helpTag = "0";
enumerate = "1";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
direction = "1";
};
};
};
new ShellBitmapButton(LC_BuddyListBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 288";
extent = "194 38";
minExtent = "32 38";
visible = "1";
command = "AddressDlg.AddBuddyList();";
helpTag = "0";
text = "ADD TO BUDDYLIST";
simpleStyle = "0";
direction = "0";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "284 175";
extent = "168 118";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 7";
extent = "144 104";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(LC_CCList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "144 8";
minExtent = "8 8";
visible = "1";
variable = "$LCCCList";
command = "AddressDlg.OnClick(\"CCLIST\");";
altCommand = "AddressDlg.onDblClick(2);";
helpTag = "0";
enumerate = "1";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new ShellBitmapButton(LC_OKBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "368 288";
extent = "89 38";
minExtent = "32 38";
visible = "1";
command = "AddressDlg.OK();";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "288 29";
extent = "40 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "TO List:";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "288 163";
extent = "41 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "CC List:";
};
new ShellBitmapButton(LC_CancelBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "278 288";
extent = "89 38";
minExtent = "32 38";
visible = "1";
command = "AddressDlg.Cancel();";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellPopupMenu(LC_ListBox) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "27 76";
extent = "193 36";
minExtent = "49 36";
visible = "1";
command = "AddressDlg.onClick(\"LISTBOX\");";
helpTag = "0";
maxPopupHeight = "200";
buttonBitmap = "gui/shll_pulldown";
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
selectedBarBitmap = "gui/shll_pulldownbar_act";
noButtonStyle = "0";
};
new ShellTextEditCtrl(LC_Search) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "25 38";
extent = "158 38";
minExtent = "32 38";
visible = "1";
variable = "$LCSearch";
command = "AddressDlg.onClick(\"SEARCHBOX\");";
helpTag = "0";
historySize = "0";
maxLength = "255";
password = "0";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "37 29";
extent = "38 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Search:";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "37 68";
extent = "22 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "List:";
};
new ShellBitmapButton(LC_GoSearchBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "167 38";
extent = "53 38";
minExtent = "32 38";
visible = "1";
command = "AddressDlg.GoSearch();";
helpTag = "0";
text = "GO";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,561 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(AdvancedHostDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "50 30";
extent = "540 420";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "ADVANCED HOST OPTIONS";
longTextBuffer = "0";
maxLength = "255";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 40";
extent = "40 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Port:";
longTextBuffer = "0";
maxLength = "255";
};
new ShellTextEditCtrl(AH_HostPort) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "67 32";
extent = "98 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
longTextBuffer = "0";
maxLength = "8";
historySize = "0";
password = "0";
IRCName = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "166 40";
extent = "64 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Time Limit:";
longTextBuffer = "0";
maxLength = "255";
};
new ShellTextEditCtrl(AH_TimeLimit) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "226 32";
extent = "68 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
longTextBuffer = "0";
maxLength = "3";
historySize = "0";
password = "0";
IRCName = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "292 40";
extent = "41 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Minutes";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "40 70";
extent = "110 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Admin Password:";
longTextBuffer = "0";
maxLength = "255";
};
new ShellTextEditCtrl(AH_AdminPassword) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "146 62";
extent = "180 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
longTextBuffer = "0";
maxLength = "16";
historySize = "0";
password = "0";
IRCName = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellRadioButton(AH_HiFPSRdo) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "358 37";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "HIGH FRAME RATE";
longTextBuffer = "0";
maxLength = "255";
groupNum = "0";
};
new ShellRadioButton(AH_HiVisibilityRdo) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "358 67";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "HIGH VISIBILITY";
longTextBuffer = "0";
maxLength = "255";
groupNum = "0";
};
new ShellToggleButton(AH_DedicatedTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "32 106";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "DEDICATED";
longTextBuffer = "0";
maxLength = "255";
};
new ShellToggleButton(AH_PureServerTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "195 106";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "PURE SERVER";
longTextBuffer = "0";
maxLength = "255";
};
new ShellToggleButton(AH_TeamDamageTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "358 106";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "TEAM DAMAGE ON";
longTextBuffer = "0";
maxLength = "255";
};
new ShellToggleButton(AH_TournamentTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "32 136";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "TOURNAMENT MODE";
longTextBuffer = "0";
maxLength = "255";
};
new ShellToggleButton(AH_AdminVoteTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "195 136";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "ALLOW ADMIN VOTES";
longTextBuffer = "0";
maxLength = "255";
};
new ShellToggleButton(AH_AllowSmurfTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "358 136";
extent = "150 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "ALLOW ALIASES";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "79 174";
extent = "114 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Vote Pass Percentage:";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(AH_VotePassText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "198 175";
extent = "29 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "60%";
longTextBuffer = "0";
maxLength = "255";
};
new ShellSliderCtrl(AH_VotePassSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "89 189";
extent = "170 24";
minExtent = "12 24";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "value";
altCommand = "AH_VotePassText.update();";
helpTag = "0";
range = "50.000000 100.000000";
ticks = "51";
value = "70";
usePlusMinus = "1";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "79 214";
extent = "54 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Vote Time:";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(AH_VoteTimeText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "138 215";
extent = "69 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "20 seconds";
longTextBuffer = "0";
maxLength = "255";
};
new ShellSliderCtrl(AH_VoteTimeSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "89 229";
extent = "170 24";
minExtent = "12 24";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "value";
altCommand = "AH_VoteTimeText.update();";
helpTag = "0";
range = "10.000000 60.000000";
ticks = "51";
value = "20";
usePlusMinus = "1";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "277 175";
extent = "93 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Observer Timeout:";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(AH_RespawnText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "375 176";
extent = "69 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "30 seconds";
longTextBuffer = "0";
maxLength = "255";
};
new ShellSliderCtrl(AH_RespawnSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "287 190";
extent = "170 24";
minExtent = "12 24";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "value";
altCommand = "AH_RespawnText.update();";
helpTag = "0";
range = "10.000000 60.000000";
ticks = "51";
value = "45";
usePlusMinus = "1";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "277 215";
extent = "72 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Warmup Time:";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(AH_WarmupText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "354 216";
extent = "69 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "30 seconds";
longTextBuffer = "0";
maxLength = "255";
};
new ShellSliderCtrl(AH_WarmupSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "287 230";
extent = "170 24";
minExtent = "12 24";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "value";
altCommand = "AH_WarmupText.update();";
helpTag = "0";
range = "0.000000 30.000000";
ticks = "31";
value = "20";
usePlusMinus = "1";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "top";
position = "143 262";
extent = "58 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Server Info:";
longTextBuffer = "0";
maxLength = "255";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "center";
vertSizing = "top";
position = "140 275";
extent = "260 85";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "7 7";
extent = "230 71";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiMLTextEditCtrl(AH_ServerInfo) {
profile = "ShellMessageTextProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "230 71";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
deniedSound = "InputDeniedSound";
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "95 365";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.popDialog( AdvancedHostDlg );";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "317 365";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "AdvancedHostDlg.Accept();";
helpTag = "0";
text = "SAVE";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,96 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(BrowserEditInfoDlg) {
profile = "DlgBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "70 80";
extent = "500 320";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "EDIT DESCRIPTION";
maxLength = "255";
noTitleBar = "0";
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "81 265";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "TribePropertiesDlg.pendingChanges = \"\";WarriorPropertiesDlg.pendingChanges = \"\";Canvas.popDialog(BrowserEditInfoDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "height";
position = "25 34";
extent = "449 233";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "419 219";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextEditCtrl(EditDescriptionText) {
profile = "ShellMessageTextProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "419 219";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "1";
maxChars = "3600";
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "291 265";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "EditDescriptionApply();";
helpTag = "0";
text = "APPLY";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,147 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(BrowserSearchDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl(BrowserSearchPane) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "120 61";
extent = "399 358";
minExtent = "48 92";
visible = "1";
helpTag = "0";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "97 46";
extent = "44 16";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Search:";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "84 93";
extent = "226 187";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 7";
extent = "202 173";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(BrowserSearchMatchList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "202 8";
minExtent = "8 8";
visible = "1";
altCommand = "BrowserSearchDone();";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
};
};
};
new ShellBitmapButton(BSearchOKBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "201 288";
extent = "115 38";
minExtent = "32 38";
visible = "1";
command = "BrowserSearchDone();";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "172 80";
extent = "47 16";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Matches:";
};
new ShellTextEditCtrl(Search_EditField) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "139 33";
extent = "133 38";
minExtent = "32 38";
visible = "1";
variable = "$BrowserSearchField";
altCommand = "BrowserStartSearch();";
helpTag = "0";
historySize = "0";
maxLength = "255";
password = "0";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "80 288";
extent = "116 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(BrowserSearchDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "262 33";
extent = "51 38";
minExtent = "32 38";
visible = "1";
command = "BrowserStartSearch();";
helpTag = "0";
text = "GO";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,26 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(CenterPrintDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "638 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(CenterPrintText) {
profile = "ShellProgressBarTextProfile";
horizSizing = "center";
vertSizing = "center";
position = "300 240";
extent = "640 128";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "6";
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,107 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ChannelBanDlg) {
profile = "DlgBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl(ChannelBanPane) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "154 65";
extent = "332 346";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "EDIT BAN LIST";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "27 28";
extent = "72 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Warrior Name:";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "height";
position = "22 42";
extent = "287 248";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 7";
extent = "279 234";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellChatMemberList(ChannelBanList) {
profile = "ShellChatMemberListProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "263 8";
minExtent = "8 8";
visible = "1";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0 169";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new ShellBitmapButton(ChannelBanRemoveBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "32 291";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "ChannelRemoveBan();";
helpTag = "0";
text = "REMOVE BAN";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "169 291";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(ChannelBanDlg);";
helpTag = "0";
text = "DONE";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,111 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ChannelKeyDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "120 160";
extent = "400 159";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "CHANNEL PASSWORD";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "34 40";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Channel:";
};
new ShellFieldCtrl() {
profile = "ShellFieldProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "119 38";
extent = "221 24";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiTextCtrl(KeyChannelName) {
profile = "ShellStaticTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "8 3";
extent = "205 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
};
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "34 70";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Password:";
};
new ShellTextEditCtrl(EditChannelKey) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "110 62";
extent = "238 38";
minExtent = "32 38";
visible = "1";
helpTag = "0";
historySize = "0";
maxLength = "255";
password = "1";
glowOffset = "9 9";
altCommand = "keyChannelJoin();";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "48 104";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(ChannelKeyDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "224 104";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "KeyChannelJoin();";
helpTag = "0";
text = "JOIN";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,224 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ChannelOptionsDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "75 102";
extent = "490 276";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "CHANNEL OPTIONS";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "25 38";
extent = "60 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Channel:";
};
new ShellFieldCtrl() {
profile = "ShellFieldProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "91 36";
extent = "218 24";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiTextCtrl(EditChannelName) {
profile = "ShellStaticTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "8 3";
extent = "202 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
};
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "25 68";
extent = "60 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Topic:";
};
new ShellTextEditCtrl(EditChannelTopic) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "81 60";
extent = "362 38";
minExtent = "32 38";
visible = "1";
helpTag = "0";
historySize = "0";
maxLength = "64";
password = "0";
glowOffset = "9 9";
};
new ShellToggleButton(ButtonChannelInvite) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "63 106";
extent = "150 30";
minExtent = "26 27";
visible = "1";
variable = "$EditChannelInvite";
command = "ToggleChannelInvite();";
helpTag = "0";
text = "INVITE ONLY";
};
new ShellToggleButton(ButtonChannelModerate) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "277 106";
extent = "150 30";
minExtent = "26 27";
visible = "1";
variable = "$EditChannelModerate";
helpTag = "0";
text = "MODERATE";
};
new ShellToggleButton(ButtonChannelLimit) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "45 148";
extent = "150 30";
minExtent = "26 27";
visible = "1";
variable = "$EditChannelLimit";
command = "ToggleChannelLimit();";
helpTag = "0";
text = "LIMIT MEMBERS";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "201 151";
extent = "60 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Max:";
};
new ShellTextEditCtrl(EditChannelMaxMembers) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "256 143";
extent = "99 38";
minExtent = "32 38";
visible = "1";
helpTag = "0";
historySize = "0";
maxLength = "5";
password = "0";
glowOffset = "9 9";
};
new ShellToggleButton(ButtonChannelKey) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "45 178";
extent = "150 30";
minExtent = "26 27";
visible = "1";
variable = "$EditChannelKey";
command = "ToggleChannelKey();";
helpTag = "0";
text = "REQUIRE PASSWORD";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "201 181";
extent = "60 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Password:";
};
new ShellTextEditCtrl(EditChannelPassword) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "256 173";
extent = "198 38";
minExtent = "32 38";
visible = "1";
helpTag = "0";
historySize = "0";
maxLength = "16";
password = "1";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "315 30";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.pushDialog(ChannelBanDlg);";
helpTag = "0";
text = "BAN LIST";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "78 221";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "CancelChannelOptions();";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton(ButtonChannelAccept) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "284 221";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "AcceptChannelOptions();";
helpTag = "0";
text = "ACCEPT";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,138 @@
new GuiControl(MainChatHud) {
profile = "GuiModelessDialogProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
modal = "1";
bypassHideCursor = "1";
setFirstResponder = "0";
new GuiNoMouseCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "bottom";
position = "0 0";
extent = "300 300";
minExtent = "8 8";
visible = "1";
new HudHorzCtrl(mainVoteHud) {
profile = "HudVoteBackProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "8 75";
extent = "256 5";
minExtent = "2 2";
visible = "0";
new GuiVoteCtrl(voteHud) {
profile = "ShellProgressBarProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "6 2";
extent = "244 3";
minExtent = "2 2";
visible = "1";
};
new GuiBitmapCtrl(passHash)
{
profile = "GuiDefaultProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "151 -1";
extent = "5 10";
minExtent = "1 1";
visible = "1";
bitmap = "gui/voteMeterPassBar";
};
};
new ShellFieldCtrl(OuterChatHud)
{
profile = "GuiChatBackProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "8 8";
extent = "256 72";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
new GuiBitmapCtrl(chatPageDown)
{
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "250 50";
extent = "13 13";
minExtent = "8 8";
visible = "0";
bitmap = "gui/hud_chatPageDown";
};
new GuiScrollCtrl(ChatScrollHud)
{
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "4 4";
extent = "252 64";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOff";
constantThumbHeight = "0";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "4 4";
extent = "252 64";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMessageVectorCtrl(ChatHud)
{
profile = "GuiChatHudProfile";
horizSizing = "width";
vertSizing = "height";
position = "4 4";
extent = "252 64";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
lineSpacing = "0";
lineContinuedIndex = "10";
allowedMatches[0] = "http";
allowedMatches[1] = "t2server";
matchColors[0] = "0 0 255 255";
matchColors[1] = "255 0 0 255";
matchColors[2] = "0 0 255 255";
matchColors[3] = "0 0 255 255";
matchColors[4] = "0 0 255 255";
matchColors[5] = "0 0 255 255";
matchColors[6] = "0 0 255 255";
matchColors[7] = "0 0 255 255";
matchColors[8] = "0 0 255 255";
matchColors[9] = "0 0 255 255";
matchColors[10] = "0 0 255 255";
matchColors[11] = "0 0 255 255";
matchColors[12] = "0 0 255 255";
matchColors[13] = "0 0 255 255";
matchColors[14] = "0 0 255 255";
matchColors[15] = "0 0 255 255";
maxColorIndex = 5;
};
};
};
};
};
};

View file

@ -0,0 +1,419 @@
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(ChatGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "$ShellBackground";
helpTag = "0";
useVariable = "1";
new ShellPaneCtrl(ChatChannelPane) {
profile = "ShellPaneProfile";
horizSizing = "width";
vertSizing = "height";
position = "12 13";
extent = "620 423";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "CHAT";
longTextBuffer = "0";
maxLength = "255";
noTitleBar = "0";
new ShellTabFrame(ChatTabFrame) {
profile = "ShellHorzTabFrameProfile";
horizSizing = "width";
vertSizing = "height";
position = "22 54";
extent = "576 351";
minExtent = "26 254";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
isVertical = "0";
useCloseButton = "0";
edgeInset = "0";
new GuiBubbleTextCtrl(ChatChannelTopic) {
profile = "ShellTopicTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "59 14";
extent = "328 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "This is a sample chat topic";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "15 14";
extent = "38 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "TOPIC:";
longTextBuffer = "0";
maxLength = "255";
};
new ShellBitmapButton(ChatOpenPaneBtn) {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "444 5";
extent = "100 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "ChatTabView.openNewPane();";
helpTag = "0";
text = "CHANNELS";
simpleStyle = "0";
};
new ShellBitmapButton(ChatClosePaneBtn) {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "529 5";
extent = "43 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "ChatTabView.closeCurrentPane();";
accelerator = "x";
helpTag = "0";
text = "X";
simpleStyle = "0";
};
};
new ShellFieldCtrl(WelcomePanel) {
profile = "ShellFieldProfile";
horizSizing = "width";
vertSizing = "height";
position = "31 92";
extent = "559 315";
minExtent = "16 18";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "195 5";
extent = "360 303";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 2";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "4 6";
extent = "336 291";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiMLTextCtrl(WelcomeText) {
profile = "NewTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "362 2376";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
deniedSound = "InputDeniedSound";
};
};
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "height";
position = "2 21";
extent = "195 287";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 7";
extent = "187 273";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellTextList(WelcomeHeadlines) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "187 180";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new GuiTextCtrl() {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 6";
extent = "72 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "CONTENTS:";
longTextBuffer = "0";
maxLength = "255";
};
};
new ShellFieldCtrl(ChatPanel) {
profile = "ShellFieldProfile";
horizSizing = "width";
vertSizing = "height";
position = "31 92";
extent = "559 315";
minExtent = "16 18";
visible = "0";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellTextEditCtrl(ChatMessageEntry) {
profile = "NewTextEditProfile";
horizSizing = "width";
vertSizing = "top";
position = "-2 279";
extent = "392 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
altCommand = "ChatSendText();";
helpTag = "0";
longTextBuffer = "0";
maxLength = "255";
historySize = "0";
password = "0";
IRCName = "0";
tabComplete = "1";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellScrollCtrl(MemberScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "left";
vertSizing = "height";
position = "383 1";
extent = "175 311";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 2";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 6";
extent = "151 299";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellChatMemberList(ChatRoomMemberList) {
profile = "ShellChatMemberListProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "151 8";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
altCommand = "ChatPrivate();";
helpTag = "0";
enumerate = "1";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new ShellScrollCtrl(ChatGuiScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "4 2";
extent = "381 282";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "2 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "6 7";
extent = "353 268";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiChannelVectorCtrl(ChatGuiMessageVector) {
profile = "GuiChannelVectorProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "357 8";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
lineSpacing = "0";
lineContinuedIndex = "5";
allowedMatches[0] = "http";
matchColor = "4 235 105 255";
maxColorIndex = "9";
};
};
};
};
new ShellTabGroupCtrl(ChatTabView) {
profile = "TabGroupProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "30 25";
extent = "560 29";
minExtent = "38 29";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
glowOffset = "7";
tabSpacing = "2";
maxTabWidth = "150";
stretchToFit = "0";
};
new ShellBitmapButton(ChatEditChannelBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "15 -5";
extent = "128 38";
minExtent = "32 38";
visible = "0";
hideCursor = "0";
bypassHideCursor = "0";
command = "EditChannelOptions();";
helpTag = "0";
text = "CHANNEL OPTIONS";
simpleStyle = "0";
};
new ShellBitmapButton(ChatEditOptionsBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "15 -5";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EditChatOptions();";
helpTag = "0";
text = "CHAT OPTIONS";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,191 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ChatOptionsDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "75 102";
extent = "490 276";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "CHAT OPTIONS";
maxLength = "255";
noTitleBar = "0";
new ShellToggleButton(ButtonChatShowJoin) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "270 57";
extent = "177 30";
minExtent = "26 27";
visible = "1";
variable = "";
command = "ChatHideJoinMessage();";
helpTag = "0";
text = "Hide \"Join Server\" Messages";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 146";
extent = "88 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Away Message:";
maxLength = "255";
};
new ShellTextEditCtrl(EditChatAwayMessage) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 138";
extent = "366 38";
minExtent = "32 38";
visible = "1";
helpTag = "0";
maxLength = "64";
historySize = "0";
password = "0";
glowOffset = "9 9";
variable = "$tempAwayMsg";
};
new ShellToggleButton(ButtonChatHighlight) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "47 32";
extent = "150 30";
minExtent = "26 27";
visible = "1";
variable = "";
command = "ToggleChatHiglight();";
helpTag = "0";
text = "Highlight text with my nick";
maxLength = "255";
};
new ShellToggleButton(ButtonChatChannelHighlight) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "47 57";
extent = "150 30";
minExtent = "26 27";
visible = "1";
variable = "";
command = "ToggleChatHiglightChannel();";
helpTag = "0";
text = "Highlight Channel";
maxLength = "255";
};
new ShellToggleButton(ButtonChatNameLinkToggle) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "270 32";
extent = "176 30";
minExtent = "26 27";
visible = "1";
variable = "";
command = "ToggleChatLinkedNicks();";
helpTag = "0";
text = "Names are not links";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 174";
extent = "88 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Kick Message:";
maxLength = "255";
};
new ShellTextEditCtrl(EditChatKickMessage) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 166";
extent = "366 38";
minExtent = "32 38";
visible = "1";
helpTag = "0";
maxLength = "64";
historySize = "0";
password = "0";
glowOffset = "9 9";
variable = "$tempKickmsg";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 200";
extent = "88 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Ban Message:";
maxLength = "255";
};
new ShellTextEditCtrl(EditChatBanMessage) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 194";
extent = "366 38";
minExtent = "32 38";
visible = "1";
helpTag = "0";
maxLength = "64";
historySize = "0";
password = "0";
glowOffset = "9 9";
variable = "$tempBanmsg";
};
new ShellBitmapButton(ButtonChatOptionsAccept) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "284 221";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "AcceptChatOptions();";
helpTag = "0";
text = "ACCEPT";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "78 221";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "CancelChatOptions();";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,148 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ChooseFilterDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "95 78";
extent = "450 324";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "CHANGE FILTER";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "44 32";
extent = "98 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "CHOOSE A FILTER:";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "39 49";
extent = "218 220";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "188 206";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(CF_FilterList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "188 8";
minExtent = "8 8";
visible = "1";
altCommand = "ChooseFilterDlg.editFilter();";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new ShellBitmapButton(CF_NewFilterBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "280 46";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "ChooseFilterDlg.newFilter();";
helpTag = "0";
text = "NEW FILTER";
simpleStyle = "0";
};
new ShellBitmapButton(CF_EditFilterBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "280 76";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "ChooseFilterDlg.editFilter();";
helpTag = "0";
text = "EDIT FILTER";
simpleStyle = "0";
};
new ShellBitmapButton(CF_DeleteFilterBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "280 106";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "ChooseFilterDlg.deleteFilter();";
helpTag = "0";
text = "DELETE FILTER";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "65 269";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(ChooseFilterDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton(CF_GoBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "257 269";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "ChooseFilterDlg.go();";
helpTag = "0";
text = "GO!";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,81 @@
//--- OBJECT WRITE BEGIN ---
new GuiCommanderNoFocusCtrl(CommanderChatDlg)
{
profile = "GuiModelessDialogProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
new HudFancyCtrl()
{
profile = "GuiChatBackProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "60 0";
extent = "330 80";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
new GuiScrollCtrl()
{
profile = "GuiModelessDialogProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "7 4";
extent = "320 70";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOff";
constantThumbHeight = "0";
new GuiMessageVectorCtrl(CommanderChatHud)
{
profile = "GuiChatHudProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "7 4";
extent = "320 70";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
lineSpacing = "0";
lineContinuedIndex = "5";
allowedMatches[0] = "http";
allowedMatches[1] = "t2server";
matchColors[0] = "0 0 255 255";
matchColors[1] = "255 0 0 255";
matchColors[2] = "0 0 255 255";
matchColors[3] = "0 0 255 255";
matchColors[4] = "0 0 255 255";
matchColors[5] = "0 0 255 255";
matchColors[6] = "0 0 255 255";
matchColors[7] = "0 0 255 255";
matchColors[8] = "0 0 255 255";
matchColors[9] = "0 0 255 255";
matchColors[10] = "0 0 255 255";
matchColors[11] = "0 0 255 255";
matchColors[12] = "0 0 255 255";
matchColors[13] = "0 0 255 255";
matchColors[14] = "0 0 255 255";
matchColors[15] = "0 0 255 255";
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,284 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(CommanderMapGui)
{
profile = "CommanderGuiProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
visible = "1";
new GuiCommanderMap(CommanderMap)
{
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "475 480";
// field data
defaultCursor = DefaultCursor;
arrowCursor = CMDCursorArrow;
handCursor = CMDCursorHandOpen;
moveCursor = CMDCursorHandClosed;
zoomCursor = CMDCursorZoom;
addCursor = CMDCursorSelectAdd;
removeCursor = CMDCursorSelectRemove;
mouseSelectRectColor = "255 255 0 255";
cameraOffset = 10;
cameraVelocity = 500;
defaultIconName = CMDDefaultIcon;
waypintIconName = CMDWaypointIcon;
assignedTaskIconName = CMDAssignedTaskIcon;
potentialTaskIconName = CMDPotentialTaskIcon;
sensorSphereFrameAlpha = 75;
sensorSphereFillAlpha = 30;
renderMissionArea = true;
missionAreaFillColor = "60 60 60 80";
missionAreaFrameColor = "128 0 0 255";
renderText = true;
textOffset = 2;
hilightedObjectColor = "234 154 4 200";
selectedObjectColor = "2 247 248 200";
playerMarkerAngle = 30;
playerMarkerOffset = 8;
playerMarkerLen = 8;
playerMarkerColor = "0 255 0 200";
minIconSize = 20;
maxIconSize = 64;
iconProjLen = "20.0";
minDistanceScale = "0.02";
maxDistanceScale = "0.05";
enableEdgeMarkers = true;
edgeMarkerSize = 32;
renderSensors = false;
};
new ShellScrollCtrl(CommanderTreeContainer)
{
profile = "NewScrollCtrlProfile";
horizSizing = "left";
vertSizing = "height";
vScrollBar = "alwaysOn";
hScrollBar = "alwaysOff";
position = "471 -4";
extent = "173 458";
new GuiScrollContentCtrl()
{
profile = "CommanderScrollContentProfile";
horizSizing = "left";
vertSizing = "height";
new GuiCommanderTree(CommanderTree)
{
profile = "CommanderTreeProfile";
position = "0 0";
extent = "150 459";
horizSizing = "left";
vertSizing = "height";
visible = "true";
// field data
backdropBitmapName = "commander/gui/cmd_gradient";
headerFontType = "Arial Bold";
entryFontType = "Arial";
clientNoneFontType = "Arial";
headerFontSize = 14;
entryFontSize = 13;
clientNoneFontSize = 13;
entryIconOffset = "2 1";
entryTextOffset = "20 3";
headerBitmapName = "commander/gui/cmd_columnheadbar";
headerTextOffset = "10 4";
clientNoneText = "None Selected";
headerHeight = 20;
entryHeight = 20;
entryHilightColor = "44 168 219 100";
entrySelectColor = "255 0 0 100";
categoryOpenTime = 250;
damageColors = "0 255 0 20 255 255 0 70 255 0 0 100";
objectControlRect = "128 2 16 16";
objectControlBitmapName = "commander/gui/cmd_control_checkbox";
};
};
};
// boob-tube
new GuiCommanderTV(CommanderTV)
{
profile = "CommanderButtonBackdropProfile";
position = "475 300";
extent = "165 150";
visible = "false";
vertSizing = "top";
horizSizing = "left";
frameBitmap = "commander/gui/cmd_tv_frame";
staticBitmap = "commander/gui/cmd_tv_static";
open = false;
target = -1;
new GuiMouseEventCtrl(CommanderTVScreen)
{
profile = "DefaultProfile";
position = "0 0";
extent = "165 150";
vertSizing = "top";
horizSizing = "left";
visible = "true";
};
};
// return to game
new GuiControl()
{
profile = "CommanderButtonBackdropProfile";
position = "475 450";
extent = "165 31";
horizSizing = "left";
vertSizing = "top";
new ShellBitmapButton()
{
profile = "CommanderButtonProfile";
opaque = "true";
horizSizing = "left";
vertSizing = "top";
visible = "1";
position = "-6 -2";
extent = "177 31";
command = "CommanderMapGui.close();";
text = "RETURN TO GAME";
};
};
// top button bar
new GuiControl()
{
profile = "DefaultProfile";
position = "437 -4";
extent = "44 228";
horizSizing = "left";
vertSizing = "bottom";
visible = "true";
new GuiCommanderMapCheckbox(CMDPlayersButton)
{
profile = "CommanderButtonProfile";
position = "0 0";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_players";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDTacticalButton)
{
profile = "CommanderButtonProfile";
position = "0 31";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_tactical";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDDeployedTacticalButton)
{
profile = "CommanderButtonProfile";
position = "0 62";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_tactical_D";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDMiscButton)
{
profile = "CommanderButtonProfile";
position = "0 93";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_misc";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDDeployedMiscButton)
{
profile = "CommanderButtonProfile";
position = "0 124";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_misc_D";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDWaypointsButton)
{
profile = "CommanderButtonProfile";
position = "0 155";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_waypoints";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDObjectivesButton)
{
profile = "CommanderButtonProfile";
position = "0 186";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_objectives";
mouseRegion = "7 7 31 31";
};
};
// bottom button bar
new GuiControl()
{
profile = "DefaultProfile";
position = "437 286";
extent = "44 199";
horizSizing = "left";
vertSizing = "top";
visible = "true";
new GuiCommanderMapCheckbox(CMDShowSensorsButton)
{
profile = "CommanderButtonProfile";
position = "0 0";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_sensor";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDMoveSelectButton)
{
profile = "CommanderButtonProfile";
position = "0 31";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_moveselect";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDZoomButton)
{
profile = "CommanderButtonProfile";
position = "0 62";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_zoom";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapButton(CMDCenterButton)
{
profile = "CommanderButtonProfile";
position = "0 93";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_center";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDTextButton)
{
profile = "CommanderButtonProfile";
position = "0 124";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_text";
mouseRegion = "7 7 31 31";
};
new GuiCommanderMapCheckbox(CMDCameraButton)
{
profile = "CommanderButtonProfile";
position = "0 155";
extent = "44 44";
bitmap = "commander/gui/cmd_icon_camera";
mouseRegion = "7 7 31 31";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,143 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(loadFileDialog) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "205 148";
extent = "360 242";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "LOAD FILE";
resizeWidth = "True";
resizeHeight = "True";
canMove = "True";
canClose = "True";
canMinimize = "True";
canMaximize = "True";
minSize = "50 50";
closeCommand = "Canvas.popDialog(loadFileDialog);";
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "4 24";
extent = "281 212";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "alwaysOn";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "261 210";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextListCtrl(loadFileList) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "64 64";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
altCommand = "eval($loadFileCommand); Canvas.popDialog(loadFileDialog);";
helpTag = "0";
enumerate = "False";
resizeCell = "True";
columns = "0";
noDuplicates = "false";
};
};
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "291 181";
extent = "60 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "eval($loadFileCommand); Canvas.popDialog(loadFileDialog);";
helpTag = "0";
text = "LOAD";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "291 205";
extent = "60 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(loadFileDialog);";
helpTag = "0";
text = "CANCEL";
};
};
};
//--- OBJECT WRITE END ---
function fillFileList(%filespec, %ctrl, %hidePath)
{
%ctrl.clear();
%i = 0;
%f = 0;
for(%fld = getField(%filespec, 0); %fld !$= ""; %fld = getField(%filespec, %f++))
{
for(%file = findFirstFile(%fld); %file !$= ""; %file = findNextFile(%fld))
{
if(%hidePath)
%ctrl.addRow(%i++, fileBase(%file) TAB %file);
else
%ctrl.addRow(%i++, %file TAB %file);
}
}
%ctrl.sort(0);
}
//------------------------------------------------------------------------------
// ex: getLoadFilename("stuff\*.*", loadStuff);
// -- calls 'loadStuff(%filename)' on dblclick or ok
//------------------------------------------------------------------------------
function getLoadFilename(%filespec, %callback, %hidePath)
{
$loadFileCommand = "if(loadFileList.getSelectedId() >= 0)" @ %callback @ "(getField(loadFileList.getValue(), 1));";
Canvas.pushDialog(loadFileDialog, 99);
fillFileList(%filespec, loadFileList, %hidePath);
}

View file

@ -0,0 +1,143 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(saveFileDialog) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "217 140";
extent = "280 264";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "SAVE FILE";
resizeWidth = "True";
resizeHeight = "True";
canMove = "True";
canClose = "True";
canMinimize = "True";
canMaximize = "True";
minSize = "50 50";
closeCommand = "Canvas.popDialog(saveFileDialog);";
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 24";
extent = "196 212";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "alwaysOn";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "176 210";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextListCtrl(saveFileList) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "64 64";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
altCommand = "eval($saveFileCommand); Canvas.popDialog(saveFileDialog);";
helpTag = "0";
enumerate = "False";
resizeCell = "True";
columns = "0";
noDuplicates = "false";
};
};
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "209 181";
extent = "60 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "eval($saveFileCommand); Canvas.popDialog(saveFileDialog);";
helpTag = "0";
text = "SAVE";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "209 205";
extent = "60 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(saveFileDialog);";
helpTag = "0";
text = "CANCEL";
};
new GuiTextEditCtrl(saveNameEdit) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 240";
extent = "196 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
historySize = "0";
};
};
};
//--- OBJECT WRITE END ---
function saveFileList::onSelect(%this, %id)
{
saveNameEdit.setValue(%this.getValue());
}
//------------------------------------------------------------------------------
// ex: getSaveFilename("stuff\*.*", saveStuff);
// -- calls 'saveStuff(%filename)' on dblclick or ok
//------------------------------------------------------------------------------
function getSaveFilename(%filespec, %callback, %currentFile)
{
saveNameEdit.setValue(%currentFile);
$saveFileCommand = "if(saveNameEdit.getValue() !$= \"\")" @ %callback @ "(saveNameEdit.getValue());";
Canvas.pushDialog(saveFileDialog, 99);
fillFileList(%filespec, saveFileList);
}

View file

@ -0,0 +1,211 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(CompTestGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiScrollCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 10";
extent = "620 460";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "alwaysOn";
vScrollBar = "alwaysOff";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "618 440";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new CompTest(compObj) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "65536 460";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
};
};
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 20";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.setContent(MainMenuGui);";
helpTag = "0";
text = "Main Menu";
};
new GuiButtonCtrl(histoToggle) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 40";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "toggleHisto();";
helpTag = "0";
text = "Normal";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "124 20";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "compTestOpenFile();";
helpTag = "0";
text = "Open File";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "124 40";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "compTestSaveFile();";
helpTag = "0";
text = "Save File";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "244 20";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "compObj.buildRep(baseline);$CompTestType = baseline;";
helpTag = "0";
text = "Baseline";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "348 20";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "compObj.buildRep(hilbert);$CompTestType = hilbert;";
helpTag = "0";
text = "Hilbert";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "452 20";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "compObj.buildRep(delta);$CompTestType = delta;";
helpTag = "0";
text = "Delta";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "452 40";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "compObj.buildRep(delta2);$CompTestType = delta2;";
helpTag = "0";
text = "Delta2";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "452 60";
extent = "100 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "compObj.buildRep(delta3);$CompTestType = delta3;";
helpTag = "0";
text = "Delta3";
};
};
//--- OBJECT WRITE END ---
function compTest()
{
$CompTestShift = 0;
$CompTestHisto = 0;
$CompTestSaveHiLo = 0;
$CompTestFile = "heights.out";
$CompTestType = "baseline";
Canvas.setContent(CompTestGui);
compObj.buildRep($CompTestType);
}
function toggleHisto()
{
if($CompTestHisto)
{
histoToggle.setValue(Normal);
$CompTestHisto = 0;
}
else
{
histoToggle.setValue(Histo);
$CompTestHisto = 1;
}
compObj.buildRep($CompTestType);
}

View file

@ -0,0 +1,78 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ConsoleDlg) {
profile = "GuiDefaultProfile";
new GuiWindowCtrl()
{
profile = "GuiWindowProfile";
position = "0 0";
extent = "640 370";
text = "Console";
new GuiScrollCtrl()
{
profile = "GuiButtonProfile";
position = "0 0";
extent = "640 350";
hScrollBar = "alwaysOn";
vScrollBar = "alwaysOn";
horizSizing = "width";
vertSizing = "height";
new GuiScrollContentCtrl("testScrollContentCtrl")
{
profile = "GuiButtonProfile";
new GuiConsole("testArrayCtrl")
{
profile = "GuiConsoleProfile";
position = "0 0";
};
};
};
new GuiConsoleEditCtrl("ConsoleEntry")
{
profile = "GuiTextEditProfile";
position = "0 350";
extent = "640 20";
historySize = 20;
altCommand = "ConsoleEntry::eval();";
horizSizing = "width";
vertSizing = "top";
};
};
};
//--- OBJECT WRITE END ---
$ConsoleActive = false;
function ConsoleEntry::eval()
{
%text = ConsoleEntry.getValue();
echo("==>" @ %text);
eval(%text);
ConsoleEntry.setValue("");
}
function ToggleConsole(%make)
{
if (%make)
{
if ($ConsoleActive)
{
Canvas.popDialog(ConsoleDlg);
$ConsoleActive = false;
if ( $enableDirectInput )
activateKeyboard();
}
else
{
Canvas.pushDialog(ConsoleDlg, 99);
$ConsoleActive = true;
deactivateKeyboard();
}
}
}

View file

@ -0,0 +1,317 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(CreateAccountDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
open = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "70 36";
extent = "500 408";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "ACCOUNT INFORMATION";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 35";
extent = "100 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Login Name:";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 110";
extent = "100 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Password:";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 140";
extent = "100 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Confirm Password:";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 170";
extent = "100 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "CD Key:";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 218";
extent = "100 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Email:";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "174 289";
extent = "134 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "We are COPPA compliant.";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "73 305";
extent = "351 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "If you are under 13, you are not allowed to create a Tribes 2 account.";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 64";
extent = "100 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Warrior Name:";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "131 27";
extent = "180 38";
minExtent = "32 38";
visible = "1";
variable = "$CreateAccountLoginName";
helpTag = "0";
historySize = "0";
maxLength = "16";
password = "0";
glowOffset = "9 9";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "131 56";
extent = "180 38";
minExtent = "32 38";
visible = "1";
variable = "$CreateAccountWarriorName";
helpTag = "0";
historySize = "0";
maxLength = "16";
password = "0";
glowOffset = "9 9";
IRCName = true;
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "131 102";
extent = "180 38";
minExtent = "32 38";
visible = "1";
variable = "$CreateAccountPassword";
helpTag = "0";
historySize = "0";
maxLength = "16";
password = "1";
glowOffset = "9 9";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "131 132";
extent = "180 38";
minExtent = "32 38";
visible = "1";
variable = "$CreateAccountConfirmPassword";
helpTag = "0";
historySize = "0";
maxLength = "16";
password = "1";
glowOffset = "9 9";
};
new ShellTextEditCtrl(CreateAccountCDKey1) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "131 162";
extent = "72 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccountCDKey1.process();";
helpTag = "0";
historySize = "0";
maxLength = "4";
password = "0";
glowOffset = "9 9";
};
new ShellTextEditCtrl(CreateAccountCDKey2) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "191 162";
extent = "72 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccountCDKey2.process();";
helpTag = "0";
historySize = "0";
maxLength = "4";
password = "0";
glowOffset = "9 9";
};
new ShellTextEditCtrl(CreateAccountCDKey3) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "251 162";
extent = "72 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccountCDKey3.process();";
helpTag = "0";
historySize = "0";
maxLength = "4";
password = "0";
glowOffset = "9 9";
};
new ShellTextEditCtrl(CreateAccountCDKey4) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "311 162";
extent = "72 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccountCDKey4.process();";
helpTag = "0";
historySize = "0";
maxLength = "4";
password = "0";
glowOffset = "9 9";
};
new ShellTextEditCtrl(CreateAccountCDKey5) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "371 162";
extent = "72 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccountCDKey5.process();";
helpTag = "0";
historySize = "0";
maxLength = "4";
password = "0";
glowOffset = "9 9";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "131 209";
extent = "269 38";
minExtent = "32 38";
visible = "1";
variable = "$CreateAccountEmail";
helpTag = "0";
historySize = "0";
maxLength = "128";
password = "0";
glowOffset = "9 9";
};
new ShellToggleButton() {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "63 244";
extent = "366 30";
minExtent = "26 27";
visible = "1";
variable = "$CreateAccountSendInfo";
helpTag = "0";
text = "SEND ME INFORMATION ABOUT TRIBES 2 AND OTHER PRODUCTS";
};
new ShellToggleButton() {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "148 325";
extent = "201 30";
minExtent = "26 27";
visible = "1";
variable = "$CreateAccountAgeGood";
helpTag = "0";
text = "I AM AT LEAST 13 YEARS OF AGE";
};
new ShellBitmapButton(CreateAccountSubmitBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "282 351";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccountDlg.onSubmit();";
helpTag = "0";
text = "SUBMIT";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "72 351";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccountDlg.onCancel();";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,226 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(CreateTribeDlg) {
profile = "DlgBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "70 36";
extent = "500 408";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "CREATE TRIBE";
maxLength = "255";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "18 38";
extent = "70 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Tribe Name:";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "18 68";
extent = "70 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Tribe Tag:";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "18 128";
extent = "70 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Description:";
maxLength = "255";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "84 30";
extent = "260 38";
minExtent = "32 38";
visible = "1";
variable = "$CreateTribeName";
helpTag = "0";
maxLength = "24";
historySize = "0";
password = "0";
glowOffset = "9 9";
IRCName = true;
};
new ShellTextEditCtrl(CT_TagText) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "84 60";
extent = "107 38";
minExtent = "32 38";
visible = "1";
variable = "$CreateTribeTag";
command = "updateTribeTagPreview();";
helpTag = "0";
maxLength = "8";
historySize = "0";
password = "0";
glowOffset = "9 9";
IRCName = true;
};
new ShellToggleButton(rbAppendTag) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "189 64";
extent = "146 30";
minExtent = "26 27";
visible = "1";
variable = "$CreateTribeAppend";
command = "updateTribeTagPreview();";
helpTag = "0";
text = "APPEND TRIBE TAG";
maxLength = "255";
};
new ShellToggleButton(rbRecruiting) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "308 95";
extent = "162 30";
minExtent = "26 27";
visible = "1";
variable = "$CreateTribeRecruiting";
helpTag = "0";
text = "RECRUITING";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "18 98";
extent = "70 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Preview:";
maxLength = "255";
};
new ShellFieldCtrl() {
profile = "ShellFieldProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "93 97";
extent = "192 22";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiTextCtrl(CT_PreviewText) {
profile = "ShellAltTextCenterProfile";
horizSizing = "width";
vertSizing = "height";
position = "3 2";
extent = "186 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
maxLength = "255";
};
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "height";
position = "26 143";
extent = "448 208";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "418 194";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextEditCtrl(CreateTribeDescription) {
profile = "ShellMessageTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "418 194";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "3600";
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "81 354";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "CreateTribeDlg.Cancel();";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton(CreateTribeBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "291 354";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "CreateTribeDlg.CreateTribe();";
helpTag = "0";
text = "CREATE";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,75 @@
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(CreditsGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
variable = "$ShellBackground";
helpTag = "0";
useVariable = "1";
hideCursor = "1";
qLineCount = "0";
new ShellPaneCtrl() {
profile = "ShellPaneProfile";
horizSizing = "width";
vertSizing = "height";
position = "28 13";
extent = "584 459";
minExtent = "48 92";
visible = "1";
helpTag = "0";
noTitleBar = "1";
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "height";
position = "26 34";
extent = "312 402";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(CREDITS_Text) {
profile = "ShellLoadTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "312 1";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
};
};
new GuiControl() {
profile = "ShellLoadFrameProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "349 8";
extent = "212 428";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiChunkedBitmapCtrl(CREDITS_Pic) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "210 426";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "gui/loading";
useVariable = "0";
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,253 @@
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(DebriefGui) {
profile = "GuiContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
variable = "$ShellBackground";
helpTag = "0";
useVariable = "1";
new ShellPaneCtrl(DB_Pane) {
profile = "ShellPaneProfile";
horizSizing = "width";
vertSizing = "height";
position = "28 13";
extent = "584 459";
minExtent = "48 92";
visible = "1";
helpTag = "0";
noTitleBar = "1";
};
new GuiProgressCtrl(DB_LoadingProgress) {
profile = "ShellProgressBarProfile";
horizSizing = "right";
vertSizing = "top";
position = "67 423";
extent = "300 25";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiTextCtrl(DB_LoadingProgressTxt) {
profile = "ShellProgressBarTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 3";
extent = "300 19";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "LOADING MISSION...";
};
};
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "0 0";
extent = "300 236";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellScrollCtrl(DB_ChatScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "50 18";
extent = "251 184";
minExtent = "24 24";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "7 7";
extent = "221 170";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMessageVectorCtrl(DB_ChatVector) {
profile = "GuiChatHudProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "221 170";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "0";
lineContinuedIndex = "10";
allowedMatches[0] = "http";
allowedMatches[1] = "t2server";
matchColor = "0 0 255 255";
maxColorIndex = "5";
matchColors1 = "255 0 0 255";
matchColors0 = "0 0 255 255";
};
};
};
};
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "height";
position = "300 15";
extent = "340 405";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellFieldCtrl(DB_ResultPane) {
profile = "ShellFieldProfile";
horizSizing = "width";
vertSizing = "height";
position = "5 7";
extent = "280 392";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(DebriefResultText) {
profile = "DebriefHeadlineTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "4 3";
extent = "272 28";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
};
new ShellScrollCtrl(DB_ResultScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "2 58";
extent = "276 332";
minExtent = "24 24";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "7 7";
extent = "262 318";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(DebriefText) {
profile = "DebriefTextProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "262 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "1";
};
};
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonNoTabProfile";
horizSizing = "left";
vertSizing = "top";
position = "372 417";
extent = "115 38";
minExtent = "32 38";
visible = "1";
setFirstResponder = "0";
command = "debriefDisconnect();";
helpTag = "0";
text = "DISCONNECT";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonNoTabProfile";
horizSizing = "left";
vertSizing = "top";
position = "478 417";
extent = "115 38";
minExtent = "32 38";
visible = "1";
setFirstResponder = "0";
command = "debriefContinue();";
accelerator = "escape";
helpTag = "0";
text = "CONTINUE";
simpleStyle = "0";
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(DB_ChatDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "0 0";
extent = "300 236";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextEditCtrl(DB_ChatEntry) {
profile = "NewTextEditProfile";
horizSizing = "width";
vertSizing = "top";
position = "45 197";
extent = "261 38";
minExtent = "32 38";
visible = "1";
setFirstResponder = "0";
altCommand = "DB_ChatEntry.sendChat();";
escapeCommand = "DB_ChatEntry.onEscape();";
helpTag = "0";
historySize = "0";
maxLength = "120";
password = "0";
glowOffset = "9 9";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,145 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DebuggerBreakConditionDlg) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "220 146";
extent = "200 188";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Set the break condition";
resizeWidth = "True";
resizeHeight = "True";
canMove = "False";
canClose = "False";
canMinimize = "False";
canMaximize = "False";
minSize = "50 50";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 28";
extent = "121 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Enter the break condition:";
};
new GuiTextEditCtrl(BreakCondition) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 44";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
altCommand = "DbgBreakConditionSet();";
helpTag = "0";
historySize = "0";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 68";
extent = "57 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Pass Count:";
};
new GuiTextEditCtrl(BreakPassCount) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 84";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
historySize = "0";
returnTab = "true";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 108";
extent = "27 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Clear:";
};
new GuiTextEditCtrl(BreakClear) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 124";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
historySize = "0";
returnTab = "true";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "56 156";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgBreakConditionSet();";
helpTag = "0";
text = "Set";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 156";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(DebuggerBreakConditionDlg);";
helpTag = "0";
text = "Cancel";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,148 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DebuggerConnectDlg) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "220 146";
extent = "200 188";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Connect to server:";
resizeWidth = "True";
resizeHeight = "True";
canMove = "False";
canClose = "False";
canMinimize = "False";
canMaximize = "False";
minSize = "50 50";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 28";
extent = "55 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "IP Address:";
};
new GuiTextEditCtrl(DebuggerConnectAddress) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 44";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
variable = "$pref::DBGConnectAddress";
helpTag = "0";
historySize = "0";
returnTab = "true";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 68";
extent = "21 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Port:";
};
new GuiTextEditCtrl(DebuggerConnectPort) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 84";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
variable = "$pref::DBGConnectPort";
helpTag = "0";
historySize = "0";
returnTab = "true";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 108";
extent = "52 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Password:";
};
new GuiTextEditCtrl(DebuggerConnectPassword) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 124";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
variable = "$pref::DBGConnectPassword";
helpTag = "0";
historySize = "0";
returnTab = "true";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "56 156";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgConnect();";
helpTag = "0";
text = "Open";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 156";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(DebuggerConnectDlg);";
helpTag = "0";
text = "Cancel";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,93 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DebuggerEditWatchDlg) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "220 180";
extent = "200 108";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Edit a Variable";
resizeWidth = "True";
resizeHeight = "True";
canMove = "False";
canClose = "False";
canMinimize = "False";
canMaximize = "False";
minSize = "50 50";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 28";
extent = "99 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Enter the new value:";
};
new GuiTextEditCtrl(EditWatchDialogValue) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 44";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
altCommand = "DbgWatchDialogEdit();";
helpTag = "0";
historySize = "0";
fontHL = "14 253 Arial";
font = "14 244 Arial";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "56 80";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgWatchDialogEdit();";
helpTag = "0";
text = "Edit";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 80";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(DebuggerEditWatchDlg);";
helpTag = "0";
text = "Cancel";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,93 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DebuggerFindDlg) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "220 180";
extent = "200 108";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "File Search";
resizeWidth = "True";
resizeHeight = "True";
canMove = "False";
canClose = "False";
canMinimize = "False";
canMaximize = "False";
minSize = "50 50";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 28";
extent = "99 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Search for:";
};
new GuiTextEditCtrl(DebuggerFindStringText) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 44";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
altCommand = "DbgFileViewFind();";
helpTag = "0";
historySize = "0";
fontHL = "14 253 Arial";
font = "14 244 Arial";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "56 80";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgFileViewFind();";
helpTag = "0";
text = "Find";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 80";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(DebuggerFindDlg);";
helpTag = "0";
text = "Cancel";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,641 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DebuggerGui) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.pushDialog(DebuggerConnectDlg, 80);";
helpTag = "0";
text = "Connect";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "72 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.pushDialog(OpenFileDialog, 80);";
helpTag = "0";
text = "File";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "72 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "dbgStepIn();";
accelerator = "f7";
helpTag = "0";
text = "Step In";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "136 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "dbgStepOver();";
accelerator = "f8";
helpTag = "0";
text = "Step Over";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "200 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "dbgStepOut();";
accelerator = "f6";
helpTag = "0";
text = "Step Out";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "264 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "dbgContinue();";
accelerator = "f9";
helpTag = "0";
text = "Run";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "328 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.pushDialog(DebuggerFindDlg, 80);";
helpTag = "0";
text = "Find";
};
new GuiTextCtrl(DebuggerCursorWatch) {
profile = "GuiTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "398 4";
extent = "126 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "";
justify = "left";
};
new GuiTextCtrl(DebuggerStatus) {
profile = "GuiTextProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "532 4";
extent = "60 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "NOT CONNECTED";
justify = "right";
};
new GuiFrameSetCtrl(DebuggerRootFrame) {
profile = "GuiButtonProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 24";
extent = "640 456";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
columns = "0 486";
rows = "0";
borderWidth = "4";
borderColor = "0.000000, 0.000000, 0.000000, 0.000000";
borderEnable = "dynamic";
borderMovable = "dynamic";
new GuiFrameSetCtrl(DebuggerLeftFrame) {
profile = "GuiButtonProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "482 456";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
columns = "0";
rows = "0 350";
borderWidth = "4";
borderColor = "0.000000, 0.000000, 0.000000, 0.000000";
borderEnable = "dynamic";
borderMovable = "dynamic";
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "482 346";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 4";
extent = "47 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Open File:";
};
new GuiPopUpMenuCtrl(DebuggerFilePopup) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "64 4";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
maxPopupHeight = "200";
};
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 24";
extent = "482 321";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "462 301";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new DbgFileView(DebuggerFileView) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 -433";
extent = "509 3904";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
};
};
};
};
new GuiControl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 350";
extent = "482 106";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.pushDialog(DebuggerWatchDlg, 80);";
helpTag = "0";
text = "Add";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "72 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.pushDialog(DebuggerEditWatchDlg, 80);";
helpTag = "0";
text = "Edit";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "136 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgDeleteSelectedWatch();";
helpTag = "0";
text = "Delete";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "200 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DebuggerWatchView.clear();";
helpTag = "0";
text = "Clear";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "264 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgRefreshWatches();";
helpTag = "0";
text = "Refresh";
};
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 24";
extent = "481 80";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "479 60";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextListCtrl(DebuggerWatchView) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 8";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
enumerate = "False";
resizeCell = "True";
columns = "0 200";
};
};
};
};
};
new GuiFrameSetCtrl(DebuggerRightFrame) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "486 0";
extent = "154 456";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
columns = "0";
rows = "0 150 350";
borderWidth = "4";
borderColor = "0.000000, 0.000000, 0.000000, 0.000000";
borderEnable = "dynamic";
borderMovable = "dynamic";
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "154 146";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "152 126";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextListCtrl(DebuggerCallStack) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 8";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
enumerate = "False";
resizeCell = "True";
columns = "-1 -1 0";
};
};
};
new GuiControl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 150";
extent = "154 196";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.pushDialog(DebuggerBreakConditionDlg, 80);";
helpTag = "0";
text = "Condition";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "68 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgDeleteSelectedBreak();";
helpTag = "0";
text = "Delete";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "132 4";
extent = "56 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DebuggerBreakPoints.clearBreaks();";
helpTag = "0";
text = "Clear";
};
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 24";
extent = "153 171";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "151 151";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextListCtrl(DebuggerBreakPoints) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "182 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
enumerate = "False";
resizeCell = "True";
columns = "16 56 156";
};
};
};
};
new GuiControl() {
profile = "GuiWindowProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 350";
extent = "154 106";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "153 80";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "151 78";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextListCtrl(DebuggerConsoleView) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "62 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
enumerate = "False";
resizeCell = "True";
columns = "0";
};
};
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "top";
position = "15 83";
extent = "9 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "%";
};
new GuiTextEditCtrl(DbgConsoleEntry) {
profile = "GuiTextEditProfile";
horizSizing = "width";
vertSizing = "top";
position = "29 83";
extent = "120 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
altCommand = "DbgConsoleEntryReturn();";
helpTag = "0";
historySize = "32";
};
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,92 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DebuggerWatchDlg) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "220 180";
extent = "200 108";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Add a Watch Expression:";
resizeWidth = "True";
resizeHeight = "True";
canMove = "False";
canClose = "False";
canMinimize = "False";
canMaximize = "False";
minSize = "50 50";
opaque = "true";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 28";
extent = "88 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Enter the Variable:";
};
new GuiTextEditCtrl(WatchDialogExpression) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 44";
extent = "160 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
altCommand = "DbgWatchDialogAdd();";
helpTag = "0";
historySize = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "56 80";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DbgWatchDialogAdd();";
helpTag = "0";
text = "Add";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "104 80";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(DebuggerWatchDlg);";
helpTag = "0";
text = "Cancel";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,45 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DemoLoadProgressDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "178 189";
extent = "300 107";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Loading...";
longTextBuffer = "0";
maxLength = "255";
noTitleBar = "0";
new GuiProgressCtrl(DemoLoadProgressCtrl) {
profile = "ShellProgressBarProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "46 43";
extent = "209 30";
minExtent = "32 15";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
glowOffset = "9 9";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,100 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DemoPlaybackDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "0";
hideCursor = "1";
bypassHideCursor = "0";
helpTag = "0";
new ShellFieldCtrl() {
profile = "GuiChatBackProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "210 8";
extent = "217 82";
minExtent = "16 18";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiProgressCtrl() {
profile = "ShellProgressBarProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "9 34";
extent = "200 24";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "$DemoPlaybackProgress";
helpTag = "0";
new GuiTextCtrl(DemoPlayback_CurTime) {
profile = "ShellProgressBarTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 2";
extent = "200 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
longTextBuffer = "0";
maxLength = "255";
};
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 59";
extent = "31 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "00:00";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(DemoPlayback_EndTime) {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "142 59";
extent = "64 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(DemoPlayback_StatusText) {
profile = "ShellTextCenterProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "77 10";
extent = "64 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
longTextBuffer = "0";
maxLength = "255";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,97 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DemoRenameFileDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 186";
extent = "300 146";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Rename File...";
longTextBuffer = "0";
maxLength = "255";
noTitleBar = "0";
new ShellTextEditCtrl(DemoRenameFile_Edit) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "71 39";
extent = "209 39";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
longTextBuffer = "0";
maxLength = "255";
historySize = "0";
password = "0";
IRCName = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "28 47";
extent = "48 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Filename:";
longTextBuffer = "0";
maxLength = "255";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "28 82";
extent = "124 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "OK";
simpleStyle = "0";
command = "Canvas.popDialog(DemoRenameFileDlg); doDemoFileRename();";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "154 82";
extent = "124 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
command = "Canvas.popDialog(DemoRenameFileDlg);";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,868 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DetailSetDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 -1";
extent = "129 281";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Detail Settings";
resizeWidth = "True";
resizeHeight = "True";
canMove = "True";
canClose = "True";
canMinimize = "True";
canMaximize = "True";
minSize = "50 50";
closeCommand = "DetailSetDgl::onCleanup(true);";
new GuiPopUpMenuCtrl(DetailMenu) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 21";
extent = "91 21";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Detail Options";
maxPopupHeight = "200";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 197";
extent = "32 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DetailAdjustTabs(Low);";
helpTag = "0";
text = "Low";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "47 197";
extent = "30 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DetailAdjustTabs(Medium);";
helpTag = "0";
text = "Med";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "84 198";
extent = "35 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DetailAdjustTabs(High);";
helpTag = "0";
text = "High";
};
new GuiScrollCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 43";
extent = "112 151";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOff";
constantThumbHeight = "True";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "110 149";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiControl(Sky_Tab) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "112 151";
minExtent = "8 8";
visible = "False";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 5";
extent = "84 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "Sky Settings:";
};
new GuiTextEditSliderCtrl(Sky_Slider) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 38";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
command = "Sky::DetailSliders(\"Sky_Slider\");";
helpTag = "0";
text = "1";
historySize = "0";
format = "%1.0f";
range = "1 99";
increment = "1";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 23";
extent = "37 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Sphere:";
};
new GuiTextEditSliderCtrl(Cloud_Slider) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 75";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "3";
historySize = "0";
format = "%1.0f";
range = "0 3";
increment = "1";
command = "Sky::DetailSliders(\"Cloud_Slider\");";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 60";
extent = "29 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Cloud Layers:";
};
};
new GuiControl(Texture_Tab) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "112 151";
minExtent = "8 8";
visible = "False";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 5";
extent = "99 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "Texture Settings";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 23";
extent = "39 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Texture:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 38";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 60";
extent = "75 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Interior Texture:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 75";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
};
new GuiControl(Terrain_Tab) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "112 151";
minExtent = "8 8";
visible = "False";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "3 5";
extent = "97 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "Terrain Settings";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 23";
extent = "36 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Terrain:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 38";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 60";
extent = "64 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Screen Error:";
};
new GuiTextEditSliderCtrl(DetailScreenError) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 75";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
command = "$screenerror = DetailScreenError.getValue();";
helpTag = "0";
text = "3";
historySize = "0";
format = "%1.0f";
range = "0 10";
increment = "1";
};
};
new GuiControl(Shape_Tab) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "112 151";
minExtent = "8 8";
visible = "False";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 5";
extent = "89 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "Shape Settings";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 23";
extent = "63 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Static Shape:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 38";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 60";
extent = "66 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Player Shape:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 75";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
};
new GuiControl(Damage_Tab) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "-1 0";
extent = "112 151";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 7";
extent = "103 66";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "Damage Settings";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "23 26";
extent = "70 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Damage Detail:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 41";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "23 63";
extent = "64 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Damage Skin:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 78";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
};
new GuiControl(Decal_Tab) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "112 151";
minExtent = "8 8";
visible = "False";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "3 6";
extent = "84 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "Decal Settings";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 23";
extent = "29 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Decal:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 38";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 60";
extent = "57 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Smoke Trail:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 75";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
};
new GuiControl(Lighting_Tab) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "112 151";
minExtent = "8 8";
visible = "False";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 4";
extent = "101 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "Lighting Settings";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 23";
extent = "57 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Interior light:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 38";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 60";
extent = "69 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Dynamic Light:";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "31 75";
extent = "74 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
text = "0";
historySize = "0";
format = "%1.0f";
range = "0 1";
increment = "1";
};
};
};
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 255";
extent = "63 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "DetailSetDgl::onCleanup(true);";
helpTag = "0";
text = "Close";
};
new GuiRadioCtrl(RadioOutline) {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "9 217";
extent = "55 19";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "displayMode(True);";
helpTag = "0";
text = "OutLine";
groupNum = "1";
};
new GuiRadioCtrl(RadioTexture) {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "66 216";
extent = "55 19";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "displayMode(False);";
helpTag = "0";
text = "Texture";
groupNum = "1";
};
};
};
//--- OBJECT WRITE END ---
function DetailSetDialog()
{
showTabs();
$currentTab = "";
$currentSelected = "";
DetailMenu.clear();
DetailMenu.add("Sky",0);
DetailMenu.add("Texture",1);
DetailMenu.add("Terrain",2);
DetailMenu.add("Lighting",3);
DetailMenu.add("Decal",4);
DetailMenu.add("Shape",5);
DetailMenu.add("Damage",6);
DetailMenu.setText("Detail Options");
RadioTexture.setValue(true);
Canvas.pushDialog(DetailSetDlg,99);
}
function DetailMenu::onSelect(%this, %row)
{
%label = %this.getValue();
$currentTab = %label;
%this.setText("Detail Options");
DetailSetDgl::onCleanup();
showTabs(%label);
}
function showTabs(%tab)
{
%tab = %tab @ "_Tab";
GameCtrl.setvisible(false);
Sky_Tab.setvisible(false);
Texture_Tab.setvisible(false);
Terrain_Tab.setvisible(false);
Shape_Tab.setvisible(false);
Damage_Tab.setvisible(false);
Decal_Tab.setvisible(false);
Lighting_Tab.setvisible(false);
%tab.setvisible(true);
}
function displayMode(%bool)
{
echo("CurrentTab: ",$currentTab);
echo("CurrentSelected: ",$currentSelected);
echo("BOOL: ",%bool);
if($currentTab $= "Sky")
{
if($currentSelected $= "Sky")
{
echo("went in here: ",%bool);
$pref::SkyOutline = %bool;
}
else
{
$pref::CloudOutline = %bool;
}
}
else if ($currentTab $= "Terrain")
DetailScreenError.setValue($screenerror);
}
function DetailSetDgl::onCleanup(%close)
{
$pref::SkyOutline = false;
$pref::CloudOutline = false;
$pref::CloudsOn = true;
RadioTexture.setValue(true);
if(%close == true)
Canvas.popDialog(DetailSetDlg);
}
function Sky::detailSliders(%slider)
{
if(%slider $= "Sky_Slider")
{
$pref::sphereDetail = %slider.getValue();
$pref::CloudsOn = false;
$currentSelected = "Sky";
if($pref::SkyOutline)
RadioOutline.setValue(true);
else
RadioTexture.setValue(true);
}
else if(%slider $= "Cloud_Slider")
{
$pref::NumCloudLayers = %slider.getValue();
$pref::CloudsOn = true;
$currentSelected = "Cloud";
if($pref::CloudOutline)
RadioOutline.setValue(true);
else
RadioTexture.setValue(true);
}
}

View file

@ -0,0 +1,77 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(DriverInfoDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "120 90";
extent = "400 300";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "DRIVER INFO";
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "27 35";
extent = "346 209";
minExtent = "24 52";
childMargin = "4 2";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "322 201";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(DriverInfoText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "313 420";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "136 245";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(DriverInfoDlg);";
accelerator = "space";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,2 @@
//--- OBJECT WRITE BEGIN ---
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,177 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EditChatCommandDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "150 110";
extent = "340 260";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "EDIT ITEM";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "21 42";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Key:";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "97 34";
extent = "49 38";
minExtent = "32 38";
visible = "1";
variable = "$ECI::key";
helpTag = "0";
historySize = "0";
maxLength = "1";
password = "0";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "21 80";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Menu text:";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "97 72";
extent = "208 38";
minExtent = "32 38";
visible = "1";
variable = "$ECI::text";
helpTag = "0";
historySize = "0";
maxLength = "25";
password = "0";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "21 119";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Command:";
};
new ShellPopupMenu(EditChatCommandList) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "97 110";
extent = "209 36";
minExtent = "49 36";
visible = "1";
helpTag = "0";
maxPopupHeight = "200";
buttonBitmap = "gui/shll_pulldown";
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
selectedBarBitmap = "gui/shll_pulldownbar_act";
noButtonStyle = "0";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "21 158";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Message:";
};
new ShellFieldCtrl() {
profile = "ShellFieldProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "106 159";
extent = "191 36";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(EditChatCommandMessage) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 1";
extent = "187 16";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
};
};
new ShellBitmapButton(ChatCommandTestBtn) {
profile = "SoundTestButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "80 175";
extent = "24 24";
minExtent = "24 24";
visible = "1";
command = "testChatCommand($ECI::command);";
helpTag = "0";
simpleStyle = "1";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "180 205";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "eval($ECI::OKCommand);";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "32 205";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog( EditChatCommandDlg );";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,106 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EditChatMenuDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "150 156";
extent = "340 167";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "EDIT MENU";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "21 42";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Key:";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "97 34";
extent = "50 38";
minExtent = "32 38";
visible = "1";
variable = "$ECI::key";
helpTag = "0";
historySize = "0";
maxLength = "1";
password = "0";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "21 80";
extent = "80 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Menu text:";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "97 72";
extent = "208 38";
minExtent = "32 38";
visible = "1";
variable = "$ECI::text";
helpTag = "0";
historySize = "0";
maxLength = "25";
password = "0";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "180 112";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "eval($ECI::OKCommand);";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "32 112";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog( EditChatMenuDlg );";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,159 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EditChatMenuGui) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "20 55";
extent = "600 370";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "EDIT CHAT MENU";
noTitleBar = "0";
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "25 32";
extent = "408 315";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 0";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "384 307";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiChatMenuTreeCtrl(chatMenuGuiTree) {
profile = "ShellTreeViewProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "431 372";
minExtent = "8 8";
visible = "1";
altCommand = "editSelectedChatMenuItem();";
helpTag = "0";
tabSize = "16";
imagesBitmap = "gui/shll_treeView.png";
numImages = "13";
textOffset = "2";
fullRowSelect = "0";
itemHeight = "15";
altFontColor = "6 215 245 255";
altFontColorHL = "6 215 245 255";
altFontColorSE = "25 56 68 255";
dirty = "0";
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "445 29";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "newChatMenu();";
helpTag = "0";
text = "CLEAR";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "445 67";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "resetChatMenu();";
helpTag = "0";
text = "RESET";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "445 105";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "saveChatMenu();";
helpTag = "0";
text = "SAVE";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "445 315";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "leaveChatMenuEditor();";
helpTag = "0";
text = "DONE";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(ChatMenuItemActionDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new ShellPopupMenu(ChatMenuItemActionPopup) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "0 0";
minExtent = "0 0";
visible = "1";
command = "ChatMenuItemActionPopup.reset();";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
maxPopupHeight = "200";
noButtonStyle = "1";
};
};
//--- OBJECT WRITE END ---

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,336 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EditorSaveMissionDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "168 81";
extent = "333 313";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Save Mission...";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
new GuiControl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 50";
extent = "317 226";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiMediumBoldTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 6";
extent = "249 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Select the files which you wish to save:";
};
new GuiCheckBoxCtrl(SaveMissionCheckBox) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 32";
extent = "132 22";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Mission File";
};
new GuiTextCtrl(SaveMissionText) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 56";
extent = "64 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
new GuiTextCtrl(SaveTerrainText) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 102";
extent = "56 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
new GuiCheckBoxCtrl(SaveTerrainCheckBox) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 77";
extent = "132 22";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Terrain";
};
new GuiCheckBoxCtrl(SaveHeightFieldScriptCheckBox) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 122";
extent = "132 22";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Heightfield Script";
};
new GuiTextCtrl(SaveHeightFieldScriptText) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 148";
extent = "162 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
new GuiTextCtrl(SaveTextureScriptText) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 194";
extent = "132 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
new GuiCheckBoxCtrl(SaveTerrainScriptCheckBox) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 167";
extent = "132 22";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Texture Script";
};
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "158 284";
extent = "72 22";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "EditorSaveMissionDlg.doSave();Canvas.popDialog(EditorSaveMissionDlg);";
helpTag = "0";
text = "OK";
};
new GuiTextEditCtrl(MissionNameTextEdit) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "87 26";
extent = "238 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
altCommand = "EditorSaveMissionDlg.missionName = $ThisControl.getValue();EditorSaveMissionDlg.updateTextFields();";
helpTag = "0";
historySize = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "241 284";
extent = "72 22";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Canvas.popDialog(EditorSaveMissionDlg);";
helpTag = "0";
text = "Cancel";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "13 28";
extent = "66 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Mission Name";
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function EditorSaveMissionDlg::updateTextFields(%this)
{
SaveMissionText.setValue("missions/" @ %this.missionName @ ".mis");
SaveTerrainText.setValue("terrains/" @ %this.missionName @ ".ter");
SaveTextureScriptText.setValue("terrains/texture/" @ %this.missionName @ "_texture.cs");
SaveHeightFieldScriptText.setValue("terrains/heightfield/" @ %this.missionName @ "_heightfield.cs");
}
function EditorSaveMissionDlg::onWake(%this)
{
%this.missionName = fileBase($MissionName);
//
MissionNameTextEdit.setValue(%this.missionName);
%this.updateTextFields();
// set all to be saved
if(%this.initialized != true)
{
SaveMissionCheckBox.setValue(1);
SaveTerrainCheckBox.setValue(1);
SaveTerrainScriptCheckBox.setValue(1);
SaveHeightFieldScriptCheckBox.setValue(1);
%this.initialized = true;
}
}
function EditorSaveMissionDlg::doSave(%this)
{
//
if(!isObject(MissionGroup))
{
error("No mission exists to save!");
return;
}
// check the files for write access
//---------------------------------
if(SaveMissionCheckBox.getValue())
{
%file = "base/missions/" @ %this.missionName @ ".mis";
if(!isWriteableFileName(%file))
{
error("Mission file '" @ %file @ "' is not writeable.");
return;
}
}
if(SaveTerrainCheckBox.getValue())
{
%file = "base/terrains/" @ %this.missionName @ ".ter";
if(!isWriteableFileName(%file))
{
error("Terrain file '" @ %file @ "' is not writeable.");
return;
}
}
if(SaveTerrainScriptCheckBox.getValue())
{
%file = "base/terrains/texture/" @ %this.missionName @ "_texture.cs";
if(!isWriteableFileName(%file))
{
error("Terrain texture script file '" @ %file @ "' is not writeable.");
return;
}
}
if(SaveHeightFieldScriptCheckBox.getValue())
{
%file = "base/terrains/heightfield/" @ %this.missionName @ "_heightfield.cs";
if(!isWriteableFileName(%file))
{
error("Terrain heightfield script file '" @ %file @ "' is not writeable.");
return;
}
}
// Now, save out the files...
//---------------------------------
if(SaveMissionCheckBox.getValue())
{
// rename the terrainFile field in the TerrainBlock obj
if(SaveTerrainCheckBox.getValue())
if(isObject(terrain))
terrain.terrainFile = %this.missionName @ ".ter";
//
missionGroup.save("missions/" @ %this.missionName @ ".mis");
$MissionName = %this.missionName @ ".mis";
}
// requires that the terrain object be named 'terrain'
if(SaveTerrainCheckBox.getValue())
if(isObject(terrain))
terrain.save(%this.missionName @ ".ter");
else
warn(" Failed to save TerrainObject (no object exists)");
//
if(SaveTerrainScriptCheckBox.getValue())
if(Texture_material.rowCount())
Texture::save(%this.missionName @ "_texture.cs");
else
warn(" Failed to save Terrain Script file. Nothing to save.");
//
if(SaveHeightFieldScriptCheckBox.getValue())
if(Heightfield_operation.rowCount())
HeightField::doSaveHeightfield(%this.missionName @ "_heightfield.cs");
else
warn(" Failed to save HeightField Script file. Nothing to save.");
}

View file

@ -0,0 +1,71 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EditorToolBarGui) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 2";
extent = "80 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Editor.close();";
helpTag = "0";
text = "Back";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "452 2";
extent = "80 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.setContent(TerraformerGui);";
helpTag = "0";
text = "Terraformer";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "370 2";
extent = "80 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Editor.setView(TerrainEditorView);";
helpTag = "0";
text = "Terrain Editor";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "288 2";
extent = "80 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Editor.setView(WorldEditorView);";
helpTag = "0";
text = "World Editor";
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,322 @@
//--- OBJECT WRITE BEGIN ---
new GuiScrollCtrl(EditorToolCreatorGui)
{
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
vScrollBar = "allwaysOn";
hScrollBar = "dynamic";
new GuiScrollContentCtrl()
{
profile = "GuiScrollContentProfile";
new CreatorTree(Creator)
{
profile = "GuiTreeViewProfile";
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function Creator::init(%this)
{
%this.clear();
// %this.currentSel = -1;
// %this.currentRoot = -1;
// %this.currentObj = -1;
$InstantGroup = "MissionGroup";
// *** INTERIORS
%base = %this.addGroup(0, "Interiors");
%misc = %this.addGroup(%base, "Misc.");
//
%shapeGroup[0] = "Blood Eagle - Lush";
%shapeGroup[1] = "Diamond Sword - Volcanic";
%shapeGroup[2] = "Star Wolf - Ice";
%shapeGroup[3] = "Children of the Phoenix - Desert";
%shapeGroup[4] = "Bioderm - Badlands";
%groupShort[0] = "b";
%groupShort[1] = "d";
%groupShort[2] = "s";
%groupShort[3] = "p";
%groupShort[4] = "x";
//
%shapeType[0] = "Towers";
%shapeType[1] = "Bunkers";
%shapeType[2] = "Base";
%shapeType[3] = "Platform";
%shapeType[4] = "Bridge";
%shapeType[5] = "Wall";
%shapeType[6] = "Unique";
%shapeType[7] = "Power";
%shapeType[8] = "Misc.";
%shapeType[9] = "Vehicle";
%shapeType[10] = "Rocks";
%typeShort[0] = "towr";
%typeShort[1] = "bunk";
%typeShort[2] = "base";
%typeShort[3] = "plat";
%typeShort[4] = "brdg";
%typeShort[5] = "wall";
%typeShort[6] = "uniq";
%typeShort[7] = "powr";
%typeShort[8] = "misc";
%typeShort[9] = "vbay";
%typeShort[10] = "rock";
// create the groups
%grpCount = 0;
for(%i = 0; %shapeGroup[%i] !$= ""; %i++)
{
%parent = Creator.addGroup(%base, %shapeGroup[%i]);
for(%j = 0; %shapeType[%j] !$= ""; %j++)
{
%group[%grpCount] = %this.addGroup(%parent, %shapeType[%j]);
%grpCount++;
}
}
// walk all the interiors and add them to the correct group
%file = findFirstFile("interiors/*.dif");
while(%file !$= "")
{
%file = fileBase(%file);
%grpCount = 0;
%added = false;
for(%i = 0; !%added && %shapeGroup[%i] !$= ""; %i++)
{
for(%j = 0; %shapeType[%j] !$= ""; %j++)
{
if(%this.fileNameMatch(%groupShort[%i], %typeShort[%j], %file))
{
%this.addItem(%group[%grpCount], %file, "createInterior(" @ "\"" @ %file @ ".dif\"" @ ");");
%added = true;
}
%grpCount++;
}
}
// throw it in the 'misc' directory
if(!%added)
%this.addItem(%misc, %file, "createInterior(" @ "\"" @ %file @ ".dif\"" @ ");");
%file = findNextFile("interiors/*.dif");
}
// *** SHAPES - add in all the shapes now...
%base = %this.addGroup(0, "Shapes");
%dataGroup = "DataBlockGroup";
for(%i = 0; %i < %dataGroup.getCount(); %i++)
{
%obj = %dataGroup.getObject(%i);
if(%obj.catagory !$= "" || %obj.catagory != 0)
{
%grp = %this.addGroup(%base, %obj.catagory);
%this.addItem(%grp, %obj.getName(), %obj.getClassName() @ "::create(" @ %obj.getName() @ ");");
}
}
// Statics
%staticBase = %this.addGroup(0, "Static Objects");
for (%i = 0; %i < $NumStaticTSObjects; %i++) {
echo("This: " SPC $StaticTSObjects[%i]);
echo(getWord($StaticTSObjects[%i], 2));
%grp = %this.addGroup(%staticBase, getWord($StaticTSObjects[%i], 0));
echo("TSStatic::create(" @ getWord($StaticTSObjects[%i], 2) @");");
%this.addItem(%grp, getWord($StaticTSObjects[%i], 1), "TSStatic::create(\"" @ getWord($StaticTSObjects[%i], 2) @"\");");
}
// *** OBJECTS - do the objects now...
%objGroup[0] = "Environment";
%objGroup[1] = "Mission";
%objGroup[2] = "System";
%objGroup[3] = "AI";
%Environment_Item[0] = "Sky";
%Environment_Item[1] = "Sun";
%Environment_Item[2] = "Lightning";
%Environment_Item[3] = "Water";
%Environment_Item[4] = "Terrain";
%Environment_Item[5] = "AudioEmitter";
%Environment_Item[6] = "Precipitation";
%Environment_Item[7] = "ParticleEmitter";
%Mission_Item[0] = "MissionArea";
%Mission_Item[1] = "GameType";
%Mission_Item[2] = "Marker";
%Mission_Item[3] = "Forcefield";
%Mission_Item[4] = "Trigger";
%Mission_Item[5] = "PhysicalZone";
%Mission_Item[6] = "Camera";
%System_Item[0] = "SimGroup";
%AI_Item[0] = "Objective";
//%AI_Item[1] = "NavigationGraph";
// objects group
%base = %this.addGroup(0, "Objects");
// create 'em
for(%i = 0; %objGroup[%i] !$= ""; %i++)
{
%grp = %this.addGroup(%base, %objGroup[%i]);
%groupTag = "%" @ %objGroup[%i] @ "_Item";
%done = false;
for(%j = 0; !%done; %j++)
{
eval("%itemTag = " @ %groupTag @ %j @ ";");
if(%itemTag $= "")
%done = true;
else
%this.addItem(%grp, %itemTag, "ObjectBuilderGui.build" @ %itemTag @ "();");
}
}
}
function createInterior(%name)
{
%obj = new InteriorInstance()
{
position = "0 0 0";
rotation = "0 0 0";
interiorFile = %name;
};
return(%obj);
}
function Creator::onAction(%this)
{
// %this.currentSel = -1;
// %this.currentRoot = -1;
// %this.currentObj = -1;
%sel = %this.getSelected();
if(%sel == -1 || %this.isGroup(%sel) || !$MissionRunning)
return;
// the value is the callback function..
if(%this.getValue(%sel) $= "")
return;
%this.currentSel = %sel;
%this.currentRoot = %this.getRootGroup(%sel);
%this.create(%sel);
}
function Creator::create(%this, %sel)
{
// create the obj and add to the instant group
%obj = eval(%this.getValue(%sel));
if(%obj == -1 || %obj == 0)
return;
// %this.currentObj = %obj;
$InstantGroup.add(%obj);
// drop it from the editor - only SceneObjects can be selected...
wEditor.clearSelection();
wEditor.selectObject(%obj);
wEditor.dropSelection();
}
//function Creator::getRootGroup(%sel)
//{
// if(%sel == -1 || %sel == 0)
// return(-1);
//
// %parent = %this.getParent(%sel);
// while(%parent != 0 || %parent != -1)
// {
// %sel = %parent;
// %parent = %this.getParent(%sel);
// }
//
// return(%sel);
//}
//
//function Creator::getLastItem(%rootGroup)
//{
// %traverse = %rootGroup + 1;
// while(%this.getRootGroup(%traverse) == %rootGroup)
// %traverse++;
// return(%traverse - 1);
//}
//
//function Creator::createNext(%this)
//{
// if(%this.currentSel == -1 || %this.currentRoot == -1 || %this.currentObj == -1)
// return;
//
// %sel = %this.currentSel;
// %this.currentSel++;
//
// while(%this.currentSel != %sel)
// {
// if(%this.getRootGroup(%this.currentSel) != %this.currentRoot)
// %this.currentSel = %this.currentRoot + 1;
//
// if(%this.isGroup(%this.currentSel))
// %this.currentSel++;
// else
// %sel = %this.currentSel;
// }
//
// //
// %this.currentObj.delete();
// %this.create(%sel);
//}
//
//function Creator::createPrevious(%this)
//{
// if(%this.currentSel == -1 || %this.currentGroup == -1 || %this.currentObj == -1)
// return;
//
// %sel = %this.currentSel;
// %this.currentSel--;
//
// while(%this.currentSel != %sel)
// {
// if(%this.getRootGroup(%this.currentSel) != %this.currentRoot)
// %this.currentSel = getLastItem(%this.currentRoot);
//
// if(%this.isGroup(%this.currentSel))
// %this.currentSel--;
// else
// %sel = %this.currentSel;
// }
//
// //
// %this.currentObj.delete();
// %this.create(%sel);
//}

View file

@ -0,0 +1,59 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EditorToolInspectorGui)
{
profile = "GuiButtonProfile";
position = "0 0";
extent = "200 200";
horizSizing = "width";
vertSizing = "height";
new GuiButtonCtrl()
{
profile = "GuiButtonProfile";
position = "2 2";
extent = "40 20";
text = "Apply";
command = "inspector.apply(InspectorNameEdit.getValue());";
};
new GuiTextEditCtrl(InspectorNameEdit)
{
profile = "GuiTextEditProfile";
position = "44 2";
extent = "160 20";
text = "";
horizSizing = "width";
vertSizing = "bottom";
};
new GuiScrollCtrl()
{
profile = "GuiScrollCtrlProfile";
vScrollBar = "alwaysOn";
hScrollBar = "dynamic";
vertSizing = "height";
horizSizing = "width";
position = "0 24";
new GuiScrollContentCtrl()
{
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
new GuiInspector(Inspector)
{
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
};
};
};
};
//--- OBJECT WRITE END ---
function Inspector::init()
{
}

View file

@ -0,0 +1,195 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(editortoolmissionareagui) {
profile = "EditorContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiControl(AE_MainBar) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiCheckBoxCtrl() {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "2 2";
extent = "60 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
variable = "AreaEditor.enableEditing";
command = "AreaEditor.enableEditing = $ThisControl.getValue();";
helpTag = "0";
text = "Edit Area";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "63 2";
extent = "60 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "AreaEditor.centerWorld();";
helpTag = "0";
text = "Center";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "125 2";
extent = "60 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "AreaEditor.enableMirroring = true;AE_MainBar.setVisible(0);AE_MirrorBar.setVisible(1);";
helpTag = "0";
text = "Mirror";
};
};
new GuiControl(AE_MirrorBar) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 20";
minExtent = "8 8";
visible = "0";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 1";
extent = "30 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "if(AreaEditor.mirrorIndex == 0) AreaEditor.mirrorIndex = 7; else AreaEditor.mirrorIndex--;";
helpTag = "0";
text = "<--";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "37 1";
extent = "30 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "if(AreaEditor.mirrorIndex == 7) AreaEditor.mirrorIndex = 0; else AreaEditor.mirrorIndex++;";
helpTag = "0";
text = "-->";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "78 1";
extent = "60 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "AreaEditor.enableMirroring = false;tEditor.mirrorTerrain(AreaEditor.mirrorIndex);AreaEditor.updateTerrain();AE_MirrorBar.setVisible(0);AE_MainBar.setVisible(1);";
helpTag = "0";
text = "Apply";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "141 1";
extent = "60 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "AreaEditor.enableMirroring = false;AE_MirrorBar.setVisible(0);AE_MainBar.setVisible(1);";
helpTag = "0";
text = "Cancel";
};
};
new MissionAreaEditor(AreaEditor) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 20";
extent = "640 440";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
wrap = "0";
squareBitmap = "1";
enableEditing = "0";
renderCamera = "1";
handleFrameColor = "255 255 255 255";
handleFillColor = "0 0 0 255";
defaultObjectColor = "0 255 0 100";
waterObjectColor = "0 0 255 100";
missionBoundsColor = "255 0 0 255";
cameraColor = "255 0 0 255";
enableMirroring = "0";
mirrorIndex = "0";
mirrorLineColor = "255 0 255 255";
mirrorArrowColor = "255 0 255 128";
};
new GuiTextCtrl(AreaEditingText) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "top";
position = "5 460";
extent = "640 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function AreaEditor::init(%this)
{
}
function AreaEditor::onUpdate(%this, %area)
{
AreaEditingText.setValue( "X: " @ getWord(%area,0) @ " Y: " @ getWord(%area,1) @ " W: " @ getWord(%area,2) @ " H: " @ getWord(%area,3));
}
function AreaEditor::onWorldOffset(%this, %offset)
{
}

View file

@ -0,0 +1,30 @@
//--- OBJECT WRITE BEGIN ---
new GuiScrollCtrl(ThumbnailView)
{
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
vScrollBar = "allwaysOn";
hScrollBar = "dynamic";
new GuiScrollContentCtrl()
{
profile = "GuiScrollContentProfile";
new GuiBitmapCtrl(ThumbnailPreview)
{
profile = "GuiScrollContentProfile";
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function ThumbnailPreview::init(%this)
{
}

View file

@ -0,0 +1,108 @@
//--- OBJECT WRITE BEGIN ---
new GuiScrollCtrl(EditorToolTreeViewGui)
{
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
vScrollBar = "alwaysOn";
hScrollBar = "dynamic";
position = "0 0";
extent = "200 400";
new GuiScrollContentCtrl()
{
profile = "GuiScrollContentProfile";
// new GuiTreeViewCtrl(EditorTree)
new GuiTreeView(EditorTree)
{
profile = "GuiTreeViewProfile";
position = "0 0";
extent = "300 300";
horizSizing = "width";
allowMultipleSelections = "true";
recurseSets = "true";
};
};
};
//--- OBJECT WRITE END ---
//------------------------------------------------------------------------------
// Functions
//------------------------------------------------------------------------------
function EditorTree::init(%this)
{
%this.open(MissionGroup);
// context menu
new GuiControl(ETContextPopupDlg)
{
profile = "GuiModelessDialogProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
new GuiPopUpMenuCtrl(ETContextPopup)
{
profile = "GuiButtonProfile";
position = "0 0";
extent = "0 0";
minExtent = "0 0";
maxPopupHeight = "200";
command = "canvas.popDialog(ETContextPopupDlg);";
};
};
ETContextPopup.setVisible(false);
}
function EditorTree::onInspect(%this, %obj)
{
Inspector.inspect(%obj);
InspectorNameEdit.setValue(%obj.getName());
}
function EditorTree::onSelect(%this, %obj)
{
if($AIEdit)
aiEdit.selectObject(%obj);
else
wEditor.selectObject(%obj);
}
function EditorTree::onUnselect(%this, %obj)
{
if($AIEdit)
aiEdit.unselectObject(%obj);
else
wEditor.unselectObject(%obj);
}
function EditorTree::onContextMenu(%this, %mousePos, %obj)
{
ETContextPopup.position = %mousePos;
ETContextPopup.clear();
ETContextPopup.add("Delete", 0);
canvas.pushDialog(ETContextPopupDlg);
ETContextPopup.forceOnAction();
%this.contextObj = %obj;
}
function ETContextPopup::onSelect(%this, %index, %value)
{
switch(%index)
{
case 0:
EditorTree.contextObj.delete();
}
}

View file

@ -0,0 +1,85 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EditorToolbarDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "80 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "editor.close();";
helpTag = "0";
text = "Back";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "123 4";
extent = "80 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Editor.setEditor(WorldEditor);";
helpTag = "0";
text = "World Editor";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "207 4";
extent = "80 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Editor.setEditor(TerrainEditor);";
helpTag = "0";
text = "Terrain Editor";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "291 4";
extent = "80 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Editor.setEditor(Terraformer);";
helpTag = "0";
text = "Terraformer";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "375 4";
extent = "80 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Editor.setEditor(AIEditor);";
helpTag = "0";
text = "AI Editor";
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,118 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EmailBlockDlg) {
profile = "DlgBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "154 64";
extent = "332 320";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "EDIT BLOCK LIST";
noTitleBar = "0";
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "32 265";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "EmailBlockRemove();";
helpTag = "0";
text = "REMOVE BLOCK";
simpleStyle = "0";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "height";
position = "22 42";
extent = "287 222";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 7";
extent = "279 208";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(EmailBlockList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "263 8";
minExtent = "8 8";
visible = "1";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0 169";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 28";
extent = "45 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Sender:";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "169 265";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(EmailBlockDlg);";
helpTag = "0";
text = "DONE";
simpleStyle = "0";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "179 28";
extent = "103 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "# Blocked Emails:";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,218 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EMailComposeDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
state = "done";
key = "6";
new ShellWindowCtrl(EmailComposeWindow) {
profile = "ShellWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "77 37";
extent = "500 408";
minExtent = "386 230";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "COMPOSE EMAIL";
maxLength = "255";
frameBase = "gui/window";
borderWidth = "2";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
closeCommand = "EmailComposeDlg.Cancel();";
new ShellTextEditCtrl(Email_TOEdit) {
profile = "NewTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "51 30";
extent = "443 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
maxLength = "2001";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellTextEditCtrl(Email_CCEdit) {
profile = "NewTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "51 56";
extent = "443 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
maxLength = "2001";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellTextEditCtrl(EMail_Subject) {
profile = "NewTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "51 82";
extent = "443 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "$EmailSubject";
helpTag = "0";
maxLength = "48";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "11 117";
extent = "478 250";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "7 7";
extent = "448 236";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiMLTextEditCtrl(EmailBodyText) {
profile = "ShellMessageTextProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "448 236";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "3600";
deniedSound = "InputDeniedSound";
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "96 368";
extent = "100 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailComposeDlg.Cancel();";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "306 368";
extent = "100 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EMailComposeDlg.SendMail();";
helpTag = "0";
text = "SEND";
simpleStyle = "0";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 91";
extent = "47 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Subject:";
maxLength = "255";
};
new ShellBitmapButton(ToButton) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "13 30";
extent = "50 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "LaunchAddressDlg();";
helpTag = "0";
text = "TO:";
simpleStyle = "0";
};
new ShellBitmapButton(CCButton) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "13 56";
extent = "50 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "LaunchAddressDlg();";
helpTag = "0";
text = "CC:";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,394 @@
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(EmailGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "$ShellBackground";
helpTag = "0";
useVariable = "1";
new ShellPaneCtrl() {
profile = "ShellPaneProfile";
horizSizing = "width";
vertSizing = "height";
position = "12 13";
extent = "620 423";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "EMAIL";
maxLength = "255";
noTitleBar = "0";
new ShellBitmapButton(EM_BlockEditBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "324 42";
extent = "90 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailEditBlocks();";
helpTag = "0";
text = "BLOCK LIST";
simpleStyle = "0";
};
new ShellBitmapButton(EM_AddBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "427 29";
extent = "93 38";
minExtent = "32 38";
visible = "0";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailBlockSender();";
helpTag = "0";
text = "TRACK SENDER";
simpleStyle = "0";
};
new ShellBitmapButton(EM_DeleteBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "275 42";
extent = "65 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailMessageDelete();";
accelerator = "delete";
helpTag = "0";
text = "DELETE";
simpleStyle = "0";
};
new ShellBitmapButton(EM_ForwardBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "216 42";
extent = "75 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailMessageForward();";
helpTag = "0";
text = "FORWARD";
simpleStyle = "0";
};
new ShellBitmapButton(EM_ReplyToAllBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "152 42";
extent = "80 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailMessageReplyAll();";
helpTag = "0";
text = "REPLY ALL";
simpleStyle = "0";
};
new ShellBitmapButton(EM_ReplyBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "108 42";
extent = "60 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailMessageReply();";
helpTag = "0";
text = "REPLY";
simpleStyle = "0";
};
new ShellBitmapButton(em_NewMailbtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "71 42";
extent = "53 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailMessageNew();";
helpTag = "0";
text = "NEW";
simpleStyle = "0";
};
new GuiFrameSetCtrl(EM_Frame) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "18 70";
extent = "583 334";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
columns = "0";
rows = "0 146";
borderWidth = "4";
borderColor = "5 199 145 255";
borderEnable = "dynamic";
borderMovable = "dynamic";
autoBalance = "0";
fudgeFactor = "4";
new ShellFancyArrayScrollCtrl(EM_BrowserPane) {
profile = "ShellServerBrowserProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "583 142";
minExtent = "8 72";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
fixedHorizontal = "1";
vertSpacerBitmap = "gui/shll_vertspacer";
horzSpacerBitmap = "gui/shll_horzspacer";
new VirtualScrollCtrl() {
profile = "ShellServerBrowserProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 16";
extent = "583 126";
minExtent = "8 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "0";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 0";
new VirtualScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "559 118";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "8 59";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
};
};
};
new GuiEmailBrowser(EM_Browser) {
profile = "ShellServerBrowserProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "563 138";
minExtent = "8 20";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
startScrollRegion = "4 0";
headerBitmap = "gui/server_tabs";
sortArrowBitmap = "gui/shll_sortarrow";
fieldBase = "gui/shll_field";
barBase = "gui/shll_bar";
glowOffset = "4";
rowHeight = "19";
headerFontType = "Univers Condensed";
headerFontSize = "16";
headerFontColor = "8 19 6 255";
headerFontColorHL = "25 68 56 255";
separatorColor = "192 192 192 255";
drawSeparators = "0";
headerSort = "1";
allowReposition = "1";
noSelect = "0";
iconBase = "gui/email";
unreadFontType = "Univers Bold";
unreadFontSize = "16";
unreadFontColor = "6 245 215 255";
headerGlowOffset = "4";
};
};
new ShellScrollCtrl(EM_MessagePane) {
profile = "NewScrollCtrlProfile";
horizSizing = "left";
vertSizing = "height";
position = "0 146";
extent = "583 188";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "553 174";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiMLTextCtrl(EMailInboxBodyText) {
profile = "ShellMessageTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "551 248";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
deniedSound = "InputDeniedSound";
};
};
};
};
new ShellBitmapButton(EM_BuddyEditBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "504 29";
extent = "100 38";
minExtent = "32 38";
visible = "0";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailEditBuddys();";
helpTag = "0";
text = "TRACKING LIST";
simpleStyle = "0";
};
new ShellBitmapButton(EM_BlockBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "398 42";
extent = "105 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailBlockSender();";
helpTag = "0";
text = "BLOCK SENDER";
simpleStyle = "0";
};
new ShellBitmapButton(em_GetMailBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 42";
extent = "75 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "GetEmailBtnClick();";
helpTag = "0";
text = "GET MAIL";
simpleStyle = "0";
};
new ShellRadioButton(rbInbox) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "15 24";
extent = "101 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EMailGui.ButtonClick(0);";
helpTag = "0";
text = "INBOX";
maxLength = "255";
groupNum = "0";
};
new ShellRadioButton(rbSendItems) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "222 24";
extent = "110 30";
minExtent = "26 27";
visible = "0";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "SENT MAIL";
maxLength = "255";
groupNum = "0";
};
new ShellRadioButton(rbDeleted) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "113 24";
extent = "112 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EmailGui.buttonClick(1);";
helpTag = "0";
text = "DELETED MAIL";
maxLength = "255";
groupNum = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,81 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(EnterIPDlg) {
profile = "DlgBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "155 175";
extent = "330 130";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "ENTER IP ADDRESS";
maxLength = "255";
noTitleBar = "0";
new ShellTextEditCtrl(IPEntry) {
profile = "NewTextEditProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "28 35";
extent = "273 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
altCommand = "EnterIPDlg.onDone();";
helpTag = "0";
maxLength = "24";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "43 75";
extent = "100 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.popDialog( EnterIPDlg );";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "187 75";
extent = "100 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "EnterIPDlg.onDone();";
helpTag = "0";
text = "DONE";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,533 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(FilterEditDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "22 37";
extent = "600 390";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "EDIT GAME FILTER";
maxLength = "255";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "48 40";
extent = "80 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Filter Name:";
maxLength = "255";
};
new ShellTextEditCtrl(FilterEditName) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "124 32";
extent = "180 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "New Filter";
maxLength = "16";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "26 78";
extent = "60 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Rules Set:";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "26 108";
extent = "60 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Game Type:";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "239 78";
extent = "106 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Min Player Count:";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "239 108";
extent = "106 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Max Player Count:";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "42 244";
extent = "82 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Server Location:";
maxLength = "255";
};
new ShellPopupMenu(FilterEditGameType) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "83 69";
extent = "160 36";
minExtent = "49 36";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Any";
maxLength = "255";
maxPopupHeight = "200";
buttonBitmap = "gui/shll_pulldown";
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
selectedBarBitmap = "gui/shll_pulldownbar_act";
noButtonStyle = "0";
};
new ShellTextEditCtrl(FilterEditMinPlayers) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "341 70";
extent = "80 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "0";
maxLength = "3";
validate = "FilterEditDlg.setMinPlayers();";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "422 78";
extent = "84 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Max Bot Count:";
maxLength = "255";
};
new ShellTextEditCtrl(FilterEditMaxBots) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "502 70";
extent = "80 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "16";
maxLength = "3";
validate = "FilterEditDlg.setMaxBots();";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellPopupMenu(FilterEditMissionType) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "83 99";
extent = "160 36";
minExtent = "49 36";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Any";
maxLength = "255";
maxPopupHeight = "200";
buttonBitmap = "gui/shll_pulldown";
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
selectedBarBitmap = "gui/shll_pulldownbar_act";
noButtonStyle = "0";
};
new ShellTextEditCtrl(FilterEditMaxPlayers) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "341 100";
extent = "80 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "255";
maxLength = "3";
validate = "FilterEditDlg.setMaxPlayers();";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "422 108";
extent = "84 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Min CPU Speed:";
maxLength = "255";
};
new ShellTextEditCtrl(FilterEditMinCPU) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "502 100";
extent = "80 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "0";
maxLength = "4";
validate = "FilterEditDlg.setMinCPU();";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellToggleButton(FilterEditUsePingTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "38 145";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "FILTER BY MAX PING";
maxLength = "255";
};
new ShellTextEditCtrl(FilterEditMaxPing) {
profile = "NewTextEditNumericProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "207 140";
extent = "80 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "0";
maxLength = "3";
validate = "FilterEditDlg.setMaxPing();";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellToggleButton(FilterEditDedicatedTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "396 145";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "DEDICATED";
maxLength = "255";
};
new ShellToggleButton(FilterEditTDOnTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "38 175";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "TEAM DAMAGE ON";
maxLength = "255";
};
new ShellToggleButton(FilterEditWindowsTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "217 177";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "WINDOWS ONLY";
maxLength = "255";
};
new ShellToggleButton(FilterEditNoPwdTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "396 175";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "NOT PASSWORDED";
maxLength = "255";
};
new ShellToggleButton(FilterEditTDOffTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "38 205";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "TEAM DAMAGE OFF";
maxLength = "255";
};
new ShellToggleButton(FilterEditLinuxTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "217 205";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "LINUX ONLY";
maxLength = "255";
};
new ShellToggleButton(FilterEditCurVersionTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "396 205";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "CURRENT VERSION";
maxLength = "255";
};
new ShellToggleButton(FilterEditLocMask0) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "38 266";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FilterEditDlg.checkRegionMasks( 0 );";
helpTag = "0";
text = "NORTH AMERICA EAST";
maxLength = "255";
};
new ShellToggleButton(FilterEditLocMask2) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "217 266";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FilterEditDlg.checkRegionMasks( 2 );";
helpTag = "0";
text = "SOUTH AMERICA";
maxLength = "255";
};
new ShellToggleButton(FilterEditLocMask3) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "396 266";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FilterEditDlg.checkRegionMasks( 3 );";
helpTag = "0";
text = "AUSTRALIA";
maxLength = "255";
};
new ShellToggleButton(FilterEditLocMask1) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "38 294";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FilterEditDlg.checkRegionMasks( 1 );";
helpTag = "0";
text = "NORTH AMERICA WEST";
maxLength = "255";
};
new ShellToggleButton(FilterEditLocMask5) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "217 294";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FilterEditDlg.checkRegionMasks( 5 );";
helpTag = "0";
text = "EUROPE";
maxLength = "255";
};
new ShellToggleButton(FilterEditLocMask4) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "396 294";
extent = "165 27";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FilterEditDlg.checkRegionMasks( 4 );";
helpTag = "0";
text = "ASIA";
maxLength = "255";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "83 335";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.popDialog(FilterEditDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "396 335";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "ChooseFilterDlg.saveFilter();";
helpTag = "0";
text = "SAVE";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,111 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(FindServerDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "155 156";
extent = "330 167";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "FIND SERVER";
maxLength = "255";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 45";
extent = "75 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Find Text:";
maxLength = "255";
};
new ShellTextEditCtrl(FS_SearchPattern) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "91 36";
extent = "205 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FS_SearchPattern.validate();";
altCommand = "FindServerDlg::onGo();";
helpTag = "0";
maxLength = "24";
historySize = "5";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new ShellToggleButton() {
profile = "ShellRadioProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "85 76";
extent = "160 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "$pref::ServerBrowser::IgnoreCase";
helpTag = "0";
text = "IGNORE CASE";
maxLength = "255";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "43 112";
extent = "100 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.popDialog( FindServerDlg );";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton(FS_GoBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "187 112";
extent = "100 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "FindServerDlg.onGo();";
helpTag = "0";
text = "GO";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,29 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(FrameOverlayGui) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "false";
helpTag = "0";
bypassHideCursor = "1";
new GuiConsoleTextCtrl(TextOverlayControl) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 5";
extent = "15 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
helpTag = "0";
expression = "10";
};
};
//--- OBJECT WRITE END ---

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,121 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(GenDialog) {
profile = "ShellWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellDlgFrame() {
profile = "ShellDlgProfile";
horizSizing = "center";
vertSizing = "center";
position = "161 168";
extent = "317 143";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "LOCK TOPIC";
maxLength = "255";
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "169 99";
extent = "79 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.PopDIalog(\"GenDialog\");";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "233 99";
extent = "79 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "TopicsPopupMenu.ExecuteLock();";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "9 53";
extent = "298 52";
minExtent = "24 52";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 0";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "274 44";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiMLTextEditCtrl(LockTopicReason) {
profile = "ShellMessageTextProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "274 44";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "1";
maxChars = "80";
deniedSound = "InputDeniedSound";
};
};
};
new GuiTextCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "16 40";
extent = "286 17";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "REASON";
maxLength = "255";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,435 @@
//----------------------------------------------------------------
new GuiControlProfile (HotPinkProfile)
{
opaque = true;
fillColor = "255 128 128";
border = true;
borderColor = "255 128 128";
fontType = "Arial";
fontSize = 12;
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fixedExtent = true;
justify = "center";
};
new GuiControl(GuiEditorGui) {
profile = GuiDefaultProfile;
position = "0 0";
extent = "800 600";
new GuiControl() // pink background
{
profile = HotPinkProfile;
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
};
new GuiControl(GuiEditorContent)
{
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
};
new GuiEditCtrl(GuiEditor)
{
profile = "GuiTextEditProfile"; // so it's tabable
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
};
new GuiFrameSetCtrl()
{
position = "640 0";
extent = "160 600";
profile = "GuiButtonProfile";
horizSizing = "width";
vertSizing = "height";
columns = "0";
rows = "0 300";
new GuiScrollCtrl() // tree view
{
profile = "GuiScrollCtrlProfile";
position = "0 0";
extent = "160 300";
horizSizing = "width";
vertSizing = "height";
vScrollBar = "alwaysOn";
hScrollBar = "dynamic";
new GuiScrollContentCtrl()
{
profile = "GuiScrollContentProfile";
new GuiTreeView (GuiEditorTreeView)
{
profile = "GuiTreeViewProfile";
position = "0 0";
horizSizing = "width";
};
};
};
new GuiControl() { // inspector
profile = "GuiButtonProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "160 300";
new GuiButtonCtrl () {
profile = "GuiButtonProfile";
position = "4, 4";
extent = "40 16";
font = "12 252 Arial";
fontHL = "12 253 Arial";
text = "APPLY";
command = "GuiEditorInspectApply();";
fillColor = "249";
borderColor = "249";
selectBorderColor = "255";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
position = "52 4";
extent = "30 16";
font = "12 244 Arial";
text = "Name:";
};
new GuiTextEditCtrl (GuiEditorInspectName) {
profile = "GuiTextEditProfile";
position = "84 3";
extent = "72 18";
text = "";
horizSizing = "width";
vertSizing = "bottom";
};
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
position = "0 24";
extent = "160 276";
horizSizing = "width";
vertSizing = "height";
vScrollBar = "alwaysOn";
hScrollBar = "alwaysOff";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
extent = "140 274";
horizSizing = "width";
vertSizing = "height";
new GuiInspector (GuiEditorInspectFields) {
profile = "GuiDefaultProfile";
position = "0 0";
extent = "140 0";
horizSizing = "width";
vertSizing = "bottom";
};
};
};
};
};
// toolbar
new GuiControl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "height";
position = "0 480";
extent = "640 120";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "4 24";
extent = "70 16";
text = "Align Left";
command = "GuiEditor.Justify(0);";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "80 24";
extent = "70 16";
text = "Align Right";
command = "GuiEditor.Justify(2);";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "156 24";
extent = "70 16";
text = "Center Horiz";
command = "GuiEditor.Justify(1);";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "232 24";
extent = "70 16";
text = "Align Top";
command = "GuiEditor.Justify(3);";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "308 24";
extent = "70 16";
text = "Align Bottom";
command = "GuiEditor.Justify(4);";
};
new GuiControlListPopup(GuiEditorClassPopup)
{
profile = "GuiButtonProfile";
position = "382 24";
extent = "180 16";
};
new GuiPopUpMenuCtrl(GuiEditorContentList)
{
profile = "GuiButtonProfile";
position = "382 44";
extent = "180 16";
};
new GuiButtonCtrl () {
profile = "GuiButtonProfile";
position = "570 24";
extent = "60 16";
text = "New...";
command = "GuiEditorStartCreate();";
};
new GuiButtonCtrl () {
profile = "GuiButtonProfile";
position = "570 44";
extent = "60 16";
text = "Save";
command = "GuiEditorSaveGui();";
};
new GuiButtonCtrl ("GuiEditorButtonToggle") {
profile = "GuiButtonProfile";
position = "4 44";
extent = "70 16";
text = "Stop Edit";
command = "GuiEdit();";
};
new GuiButtonCtrl () {
profile = "GuiButtonProfile";
position = "80 44";
extent = "70 16";
text = "Space Vert";
command = "GuiEditor.Justify(5);";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "156 44";
extent = "70 16";
text = "Space Horiz";
command = "GuiEditor.Justify(6);";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "232 44";
extent = "70 16";
text = "Bring Front";
command = "GuiEditor.BringToFront();";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "308 44";
extent = "70 16";
text = "Send Back";
command = "GuiEditor.PushToBack();";
};
};
};
new GuiControl(NewGuiDialog)
{
profile = "GuiDialogProfile";
position = "0 0";
extent = "640 480";
new GuiWindowCtrl()
{
profile = "GuiWindowProfile";
position = "220 146";
extent = "200 188";
text = "Create new GUI";
canMove = "false";
canClose = "false";
canMinimize = "false";
canMaximize = "false";
horizSizing = "center";
vertSizing = "center";
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 28";
text = "GUI Name:";
};
new GuiTextEditCtrl(NewGuiDialogName)
{
profile = "GuiTextEditProfile";
position = "20 44";
extent = "160 20";
};
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 68";
text = "Class:";
};
new GuiControlListPopup(NewGuiDialogClass)
{
profile = "GuiTextEditProfile";
position = "20 84";
extent = "160 20";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "56 156";
extent = "40 16";
text = "Create";
command = "GuiEditorCreate();";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
position = "104 156";
extent = "40 16";
text = "Cancel";
command = "Canvas.popDialog(NewGuiDialog);";
};
};
};
function GuiEditorStartCreate()
{
NewGuiDialogClass.setText("GuiControl");
NewGuiDialogClass.sort();
NewGuiDialogName.setValue("NewGui");
Canvas.pushDialog(NewGuiDialog);
}
function GuiEditorCreate()
{
%name = NewGuiDialogName.getValue();
%class = NewGuiDialogClass.getText();
Canvas.popDialog(NewGuiDialog);
%obj = eval("return new " @ %class @ "(" @ %name @ ");");
GuiEditorOpen(%obj);
}
function GuiEditorSaveGui()
{
%obj = GuiEditorContent.getObject(0);
if(%obj == -1 || %obj.getName() $= "")
return;
%obj.save("gui/" @ %obj.getName() @ ".gui");
}
function GuiEdit(%val)
{
if(%val != 0)
return;
%content = Canvas.getContent();
if(%content == GuiEditorGui.getId())
{
//GlobalActionMap.bind(mouse, button1, mouselook);
%obj = GuiEditorContent.getObject(0);
if(%obj != -1)
{
GuiGroup.add(%obj);
Canvas.setContent(%obj);
}
}
else
{
//GlobalActionMap.unbind(mouse, button1);
GuiEditorOpen(%content);
}
}
function GuiEditorOpen(%content)
{
Canvas.setContent(GuiEditorGui);
while((%obj = GuiEditorContent.getObject(0)) != -1)
GuiGroup.add(%obj); // get rid of anything being edited
%i = 0;
GuiEditorContentList.clear();
while((%obj = GuiGroup.getObject(%i)) != -1)
{
if(%obj.getName() !$= Canvas)
{
if(%obj.getName() $= "")
%name = "(unnamed) - " @ %obj;
else
%name = %obj.getName() @ " - " @ %obj;
GuiEditorContentList.add(%name, %obj);
}
%i++;
}
GuiEditorContent.add(%content);
GuiEditorContentList.sort();
GuiEditorClassPopup.sort();
if(%content.getName() $= "")
%name = "(unnamed) - " @ %content;
else
%name = %content.getName() @ " - " @ %content;
GuiEditorContentList.setText(%name);
GuiEditorClassPopup.setText("New Control");
GuiEditor.setRoot(%content);
%content.resize(0,0,640,480);
GuiEditorTreeView.open(%content);
}
function GuiEditorContentList::onSelect(%this, %id)
{
GuiEditorOpen(%id);
}
function GuiEditorClassPopup::onSelect(%this, %id)
{
%class = %this.getText();
%obj = eval("return new " @ %class @ "();");
GuiEditor.addNewCtrl(%obj);
GuiEditorClassPopup.setText("New Control");
}
function GuiEditorTreeView::onSelect(%this, %obj)
{
GuiEditorInspectFields.inspect(%obj);
GuiEditorInspectName.setValue(%obj.getName());
GuiEditor.select(%obj);
}
function GuiEditorInspectApply()
{
GuiEditorInspectFields.apply(GuiEditorInspectName.getValue());
}
function GuiEditor::onSelect(%this, %ctrl)
{
GuiEditorInspectFields.inspect(%ctrl);
GuiEditorInspectName.setValue(%ctrl.getName());
}
if (!isDemo())
GlobalActionMap.bind(keyboard, "alt f1", GuiEdit);

View file

@ -0,0 +1,496 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(GuiTestGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 440";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "canvas.setContent(TestGui);";
helpTag = "0";
text = "BACK";
};
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "10 7";
extent = "622 430";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "GuiWindowCtrl test";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 40";
extent = "74 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "GuiTextCtrl test";
};
new GuiTextEditCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 80";
extent = "200 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "GuiTextEditCtrl test";
historySize = "5";
maxLength = "255";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 120";
extent = "120 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "GuiButtonCtrl test";
};
new GuiRadioCtrl() {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 160";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "$TestRadio = 1;";
helpTag = "0";
text = "GuiRadioCtrl1 test";
groupNum = "1";
};
new GuiRadioCtrl() {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 190";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "$TestRadio = 2;";
helpTag = "0";
text = "GuiRadioCtrl2 test";
groupNum = "1";
};
new GuiRadioCtrl() {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 220";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "$TestRadio = 3;";
helpTag = "0";
text = "GuiRadioCtrl3 test";
groupNum = "1";
};
new GuiCheckBoxCtrl() {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 270";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "CheckBoxCtrl1 test";
};
new GuiCheckBoxCtrl() {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 300";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "CheckBoxCtrl2 test";
};
new GuiCheckBoxCtrl() {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 330";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "CheckBoxCtrl3 test";
};
new GuiPopUpMenuCtrl(Menu1) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 35";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Menu1";
maxPopupHeight = "200";
};
new GuiPopUpMenuCtrl(Menu2) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "360 35";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Menu2";
maxPopupHeight = "200";
};
new GuiPopUpMenuCtrl(Menu3) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "230 375";
extent = "125 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Menu3";
maxPopupHeight = "200";
};
new GuiTextEditSliderCtrl() {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "166 133";
extent = "104 18";
minExtent = "8 8";
visible = "1";
setFirstResponder = "1";
modal = "1";
helpTag = "0";
text = "50";
historySize = "0";
maxLength = "255";
format = "%3.2f";
range = "0 100";
increment = "1";
};
new GuiScrollCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 160";
extent = "200 200";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOn";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
new GuiScrollContentCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "180 180";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiArrayCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "400 400";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
};
};
new GuiScrollCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "371 252";
extent = "238 170";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "dynamic";
vScrollBar = "dynamic";
constantThumbHeight = "0";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "236 168";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiMLTextEditCtrl() {
profile = "GuiBigTextProfileWhite";
horizSizing = "width";
vertSizing = "top";
position = "0 0";
extent = "208 23";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
lineSpacing = "0";
};
};
};
new GuiScrollCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "376 61";
extent = "239 188";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "237 186";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiMessageVectorCtrl(GMVControl) {
profile = "GuiBigTextProfileWhite";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "215 35";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
lineSpacing = "0";
lineContinuedIndex = "5";
allowedMatches[0] = "http";
allowedMatches[1] = "t2server";
matchColor = "0 0 1 1";
textColors1 = "1 0 0 1";
textColors5 = "1 0 1 1";
textColors9 = "0 0.5 0 1";
textColors2 = "0 1 0 1";
textColors6 = "0 1 1 1";
textColors3 = "0 0 1 1";
textColors7 = "1 1 1 1";
textColors0 = "0 0 0 1";
textColors4 = "1 1 0 1";
textColors8 = "0.5 0 0 1";
};
};
};
};
};
//--- OBJECT WRITE END ---
Menu1.add(TestData0, 0);
Menu1.add(TestData1, 1);
Menu1.add(TestData2, 2);
Menu1.add(TestData3, 3);
Menu1.add(TestData4, 4);
Menu1.add(TestData5, 5);
Menu1.add(TestData6, 6);
Menu1.add(TestData7, 7);
Menu1.add(TestData8, 8);
Menu1.add(TestData9, 9);
Menu1.add(TestData10,10);
Menu1.add(TestData11,11);
Menu1.add(TestData12,12);
Menu1.add(TestData13,13);
Menu1.add(TestData14,14);
Menu1.add(TestData15,15);
Menu1.add(TestData16,16);
Menu1.add(TestData17,17);
Menu1.add(TestData18,18);
Menu1.add(TestData19,19);
Menu1.add(TestData20,20);
Menu1.add(TestData21,21);
Menu1.add(TestData22,22);
Menu1.add(TestData23,23);
Menu1.add(TestData24,24);
Menu1.add(TestData25,25);
Menu1.add(TestData26,26);
Menu1.add(TestData27,27);
Menu1.add(TestData28,28);
Menu1.add(TestData29,29);
Menu1.add(TestData30,30);
Menu1.add(TestData31,31);
Menu1.add(TestData32,32);
Menu1.add(TestData33,33);
Menu1.add(TestData34,34);
Menu1.add(TestData35,35);
Menu1.add(TestData36,36);
Menu1.add(TestData37,37);
Menu1.add(TestData38,38);
Menu1.add(TestData39,39);
Menu1.add(TestData40,40);
Menu1.add(TestData41,41);
Menu1.add(TestData42,42);
Menu1.add(TestData43,43);
Menu1.add(TestData44,44);
Menu1.add(TestData45,45);
Menu2.add(TestData1, 0);
Menu2.add(TestData2, 1);
Menu2.add(TestData3, 2);
Menu2.add(TestData4, 3);
Menu2.add(TestData5, 4);
Menu2.add(TestData6, 5);
Menu2.add(TestData7, 6);
Menu3.add(TestData0, 0);
Menu3.add(TestData1, 1);
Menu3.add(TestData2, 2);
Menu3.add(TestData3, 3);
Menu3.add(TestData4, 4);
Menu3.add(TestData5, 5);
Menu3.add(TestData6, 6);
Menu3.add(TestData7, 7);
Menu3.add(TestData8, 8);
Menu3.add(TestData9, 9);
Menu3.add(TestData10,10);
Menu3.add(TestData11,11);
Menu3.add(TestData12,12);
Menu3.add(TestData13,13);
Menu3.add(TestData14,14);
Menu3.add(TestData15,15);
Menu3.add(TestData16,16);
Menu3.add(TestData17,17);
Menu3.add(TestData18,18);
Menu3.add(TestData19,19);
Menu3.add(TestData20,20);
Menu3.add(TestData21,21);
Menu3.add(TestData22,22);
Menu3.add(TestData23,23);
Menu3.add(TestData24,24);
Menu3.add(TestData25,25);
Menu3.add(TestData26,26);
Menu3.add(TestData27,27);
Menu3.add(TestData28,28);
Menu3.add(TestData29,29);
Menu3.add(TestData30,30);
Menu3.add(TestData31,31);
Menu3.add(TestData32,32);
Menu3.add(TestData33,33);
Menu3.add(TestData34,34);
Menu3.add(TestData35,35);
Menu3.add(TestData36,36);
Menu3.add(TestData37,37);
Menu3.add(TestData38,38);
Menu3.add(TestData39,39);
Menu3.add(TestData40,40);
Menu3.add(TestData41,41);
Menu3.add(TestData42,42);
Menu3.add(TestData43,43);
Menu3.add(TestData44,44);
Menu3.add(TestData45,45);
$mvid1 = new MessageVector();
$mvid1.pushBackLine("a URL: http://www.test.com/other not part of the url", 0);
$mvid1.pushBackLine("a server: t2server://5assedmonkey.com:8080/", 0);
$mvid1.pushBackLine("a server: http://t2server://malformed/", 0);
$mvid1.pushBackLine("a http://small server", 0);
$mvid2 = new MessageVector();
$mvid2.pushBackLine("<Symlink> This is a completely separate text vector", 0);
$mvid2.pushBackLine("It contains no URLS, only two servers, t2server://5assedmonkey.com:28000/ and t2server://5assedmonkey.com:28001/", 0);
$mvid2.pushBackLine("It does contain a malformed URL: http://t2server://malformed/", 0);
$mvid2.pushBackLine("That URL should show up in http blue. The tribes server url should be in tribes server red.", 0);
function GMVControl::urlClickCallback(%this, %url)
{
echo("Overridden click callback");
Parent::urlClickCallback(%this, %url);
}

View file

@ -0,0 +1,369 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(InventoryScreen) {
profile = "GuiDialogProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "45 12";
extent = "550 443";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "INVENTORY";
noTitleBar = "0";
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "205 388";
extent = "140 38";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
command = "InventoryScreen.onDone();";
text = "DONE";
};
new ShellFieldCtrl(INV_Root) {
profile = "GuiChatBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "29 36";
extent = "492 351";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new ShellTabFrame() {
profile = "ShellTabFrameProfile";
horizSizing = "left";
vertSizing = "height";
position = "207 9";
extent = "254 333";
minExtent = "254 26";
visible = "1";
helpTag = "0";
isVertical = "1";
useCloseButton = "0";
edgeInset = "0";
};
};
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(vehicleHud) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "53 67";
extent = "542 328";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "VEHICLE STATION";
noTitleBar = "0";
new ShellFieldCtrl(VIN_Root) {
profile = "GuiChatBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "29 36";
extent = "484 236";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new ShellTabFrame() {
profile = "ShellTabFrameProfile";
horizSizing = "right";
vertSizing = "height";
position = "206 9";
extent = "254 217";
minExtent = "254 26";
visible = "1";
helpTag = "0";
isVertical = "1";
useCloseButton = "0";
edgeInset = "0";
};
new HudBitmapCtrl(VIN_Picture) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "215 19";
extent = "256 158";
minExtent = "8 8";
visible = "1";
helpTag = "0";
fillColor = "0.250000 0.250000 0.250000 1.000000";
frameColor = "0.000000 1.000000 0.000000 1.000000";
opacity = "1";
autoCenter = "0";
autoResize = "1";
flipVertical = "0";
flipHorizontal = "0";
};
new ShellFieldCtrl() {
profile = "GuiChatBackProfile";
horizSizing = "right";
vertSizing = "top";
position = "220 183";
extent = "133 29";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiTextCtrl(VIN_RemainingText) {
profile = "ShellMediumTextCenterProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "8 5";
extent = "117 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "3 Remaining";
};
};
new ShellBitmapButton(VIN_BuyBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "356 180";
extent = "124 38";
minExtent = "32 38";
visible = "1";
command = "VehicleHud.onBuy();";
helpTag = "0";
text = "BUY";
simpleStyle = "0";
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "201 273";
extent = "140 38";
minExtent = "32 38";
visible = "1";
command = "VehicleHud.onCancel();";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(ScoreScreen) {
profile = "GuiDialogProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl(ScoreParent) {
profile = "ShellPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "0 0";
extent = "640 480";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "SCORE";
noTitleBar = "0";
new ShellFieldCtrl(ScoreHeaderField) {
profile = "GuiChatBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "23 32";
extent = "594 36";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(ScoreHeaderText) {
profile = "ScoreHeaderTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "586 28";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
};
};
new ShellFieldCtrl(ScoreField) {
profile = "GuiChatBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "23 72";
extent = "594 386";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(ScoreSubheaderText) {
profile = "ScoreSubheaderTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "586 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
};
new ShellScrollCtrl(ScoreScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "height";
position = "1 26";
extent = "592 358";
minExtent = "24 24";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "578 344";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiControl(ScoreContent) {
profile = "GuiScrollContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "586 8";
minExtent = "8 8";
visible = "1";
helpTag = "0";
};
};
};
};
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageHud)
{
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "0";
bypassHideCursor = "1";
new ShellFieldCtrl(MessageHud_Frame)
{
profile = "GuiChatBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "120 375";
extent = "356 24";
minExtent = "8 8";
visible = "1";
new GuiTextCtrl(MessageHud_Text)
{
profile = "GuiMessageEditHudTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 5";
extent = "10 22";
minExtent = "8 8";
visible = "1";
};
new GuiTextEditCtrl(MessageHud_Edit)
{
profile = "GuiMessageEditHudProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 5";
extent = "10 22";
minExtent = "8 8";
visible = "1";
altCommand = "$ThisControl.eval();";
escapeCommand = "MessageHud_Edit.onEscape();";
historySize = "5";
maxLength = "120";
};
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(ChatMenuHudDlg)
{
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "0";
bypassHideCursor = "1";
new ShellFieldCtrl(ChatMenuHud)
{
profile = "GuiVMenuProfile";
horizSizing = "right";
vertSizing = "top";
position = "8 209";
extent = "143 0";
minExtent = "8 8";
visible = "1";
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,94 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(HelpDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "75 36";
extent = "483 393";
minExtent = "300 200";
visible = "1";
helpTag = "0";
text = "Help";
maxLength = "255";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
closeCommand = "Canvas.popDialog(HelpDlg);";
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "right";
vertSizing = "height";
position = "8 26";
extent = "132 356";
minExtent = "8 8";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiTextListCtrl(HelpFileList) {
profile = "GuiTextListProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "130 8";
minExtent = "8 8";
visible = "1";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
new GuiScrollCtrl() {
profile = "GuiScrollProfile";
horizSizing = "width";
vertSizing = "height";
position = "146 26";
extent = "328 356";
minExtent = "8 8";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
childMargin = "0 0";
new GuiMLTextCtrl(HelpText) {
profile = "GuiMLTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "1 1";
extent = "310 16";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,259 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(IHVTest) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "34 52";
extent = "209 318";
minExtent = "8 8";
visible = "1";
setFirstResponder = "1";
modal = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "1";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "189 316";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new GuiTextListCtrl(RecordingsList) {
profile = "GuiTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "52 80";
minExtent = "8 8";
visible = "1";
setFirstResponder = "1";
modal = "1";
helpTag = "0";
enumerate = "1";
resizeCell = "1";
columns = "0";
};
};
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "34 379";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "1";
modal = "1";
command = "quit();";
helpTag = "0";
text = "Exit";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "143 379";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "1";
modal = "1";
command = "IHVStartSelectedDemo();";
helpTag = "0";
text = "Start Demo";
};
new GuiTextCtrl() {
profile = "GuiBigTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "5 5";
extent = "268 40";
minExtent = "8 8";
visible = "1";
setFirstResponder = "1";
modal = "1";
helpTag = "0";
text = "IHV Test Recordings";
};
new GuiCheckBoxCtrl(ArbMultitexture) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "290 52";
extent = "235 24";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
variable = "$pref::OpenGL::disableARBMultitexture";
helpTag = "0";
text = "Disable ARB_multitexture";
};
new GuiCheckBoxCtrl(FogCoord) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "290 80";
extent = "235 24";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
variable = "$pref::OpenGL::disableEXTFogCoord";
helpTag = "0";
text = "Disable EXT_fog_coord";
};
new GuiCheckBoxCtrl(TexEnvCombine) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "290 108";
extent = "235 24";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
variable = "$pref::OpenGL::disableEXTTexEnvCombine";
helpTag = "0";
text = "Disable EXT_texture_env_combine";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "290 211";
extent = "235 24";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "toggleFullscreen();";
helpTag = "0";
text = "Toggle Fullscreen";
};
new GuiCheckBoxCtrl(CVArray) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "290 136";
extent = "235 24";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
variable = "$pref::OpenGL::disableEXTCompiledVertexArray";
helpTag = "0";
text = "Disable EXT_compiled_vertex_array";
};
new GuiCheckBoxCtrl(timedemo) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "290 239";
extent = "235 24";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Timedemo style playback";
};
new GuiTextCtrl(DemoStats) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "245 286";
extent = "325 24";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
text = "Last Demo: None";
};
};
//--- OBJECT WRITE END ---
function IHVTest::onWake(%gui)
{
RecordingsList.clear();
%search = "recordings/*.rec";
%ct = 0;
for(%file = findFirstFile(%search); %file !$= ""; %file = findNextFile(%search))
{
%fileName = fileBase(%file);
RecordingsList.addRow(%ct++, %fileName);
}
RecordingsList.sort(0);
}
function IHVStartSelectedDemo()
{
%sel = RecordingsList.getSelectedId();
%file = RecordingsList.getRowTextById(%sel);
Canvas.setContent(PlayGui);
$TSControl::FrameCount = 0;
playDemo("recordings/" @ %file @ ".rec");
}
function TexEnvCombine::onAction()
{
$pref::OpenGL::disableEXTTexEnvCombine = !$pref::OpenGL::disableEXTTexEnvCombine;
}
function FogCoord::onAction()
{
$pref::OpenGL::disableEXTFogCoord = !$pref::OpenGL::disableEXTFogCoord;
}
function CVArray::onAction()
{
$pref::OpenGL::disableEXTCompiledVertexArray = !$pref::OpenGL::disableEXTCompiledVertexArray;
}
function ARBMultitexture::onAction()
{
$pref::OpenGL::disableARBMultitexture = !$pref::OpenGL::disableARBMultitexture;
}
function timedemo::onAction()
{
echo("here");
if ($timeAdvance == 0) {
$timeAdvance = 30;
} else {
$timeAdvance = 0;
}
}
function resetDemoStats()
{
%mspf = $Demo::playbackTime / $TSControl::frameCount;
%fps = 1000 / %mspf;
DemoStats.setValue("Last Demo: " @ $TSControl::frameCount @ " frames, " @ %fps @ " fps (" @ %mspf @ " mspf)");
}

View file

@ -0,0 +1,36 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ImmSplashDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiControl() {
profile = "GuiModelessDialogProfile";
horizSizing = "center";
vertSizing = "center";
position = "40 150";
extent = "540 168";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiBitmapCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "540 168";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "gui/ImmersionLogo.png";
wrap = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,103 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(InspectAddFieldDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "center";
vertSizing = "center";
position = "209 177";
extent = "221 125";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Add dynamic field...";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
canMinimize = "1";
canMaximize = "1";
minSize = "50 50";
closeCommand = "Canvas.popDialog(InspectAddFieldDlg);";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "22 32";
extent = "30 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Name:";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "21 58";
extent = "31 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Value:";
};
new GuiTextEditCtrl(InspectAddFieldValue) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "62 58";
extent = "146 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
historySize = "0";
maxLength = "255";
};
new GuiTextEditCtrl(InspectAddFieldName) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "62 32";
extent = "146 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
historySize = "0";
maxLength = "255";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "25 88";
extent = "73 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "OK";
command = "canvas.popDialog(InspectAddFieldDlg);InspectAddFieldDlg.doAction();";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "125 88";
extent = "73 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "CANCEL";
command = "canvas.popDialog(InspectAddFieldDlg);";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,238 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(InspectDlg) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "False";
helpTag = "0";
new GuiWindowCtrl(InspectTitle) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 20";
extent = "200 400";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
resizeWidth = "True";
resizeHeight = "True";
canMove = "True";
canClose = "True";
canMinimize = "True";
canMaximize = "True";
minSize = "50 50";
closeCommand = "Canvas.popDialog(InspectDlg);";
font = "12 244 Arial";
selectfillColor = "253";
fillColor = "250";
opaque = "true";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 24";
extent = "40 16";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "InspectApply();";
helpTag = "0";
text = "APPLY";
selectBorderColor = "255";
borderColor = "249";
fillColor = "249";
fontHL = "12 253 Arial";
font = "12 252 Arial";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "56 24";
extent = "29 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Name:";
font = "12 244 Arial";
};
new GuiTextEditCtrl(InspectObjectName) {
profile = "GuiTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "98 23";
extent = "72 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
historySize = "0";
};
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "8 44";
extent = "184 348";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "164 346";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiInspector(InspectFields) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "184 8";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
};
};
};
};
new GuiWindowCtrl(InspectTreeTitle) {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "232 20";
extent = "200 400";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "TREE VIEW";
resizeWidth = "True";
resizeHeight = "True";
canMove = "True";
canClose = "True";
canMinimize = "True";
canMaximize = "True";
minSize = "50 50";
closeCommand = "Canvas.popDialog(InspectDlg);";
new GuiScrollCtrl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "width";
vertSizing = "height";
position = "8 24";
extent = "184 368";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
willFirstRespond = "True";
hScrollBar = "dynamic";
vScrollBar = "alwaysOn";
constantThumbHeight = "False";
new GuiScrollContentCtrl() {
profile = "GuiScrollContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "1 1";
extent = "164 366";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTreeView(InspectTreeView) {
profile = "GuiTreeViewProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "64 64";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
};
};
};
};
};
//--- OBJECT WRITE END ---
function Inspect(%obj)
{
Canvas.popDialog("InspectDlg");
Canvas.pushDialog("InspectDlg", 30);
InspectFields.inspect(%obj);
InspectObjectName.setValue(%obj.getName());
InspectTitle.setValue(%obj.getId() @ ": " @ %obj.getName());
}
function InspectApply()
{
InspectFields.apply(InspectObjectName.getValue());
}
function InspectTreeView::onSelect(%this, %obj)
{
Inspect(%obj);
}
function Tree(%obj)
{
Canvas.popDialog("InspectDlg");
Canvas.pushDialog("InspectDlg", 20);
InspectTreeView.open(%obj);
}
function GuiInspector::addDynamicField(%this, %obj)
{
InspectAddFieldDlg.object = %obj;
InspectAddFieldDlg.inspector = %this;
InspectAddFieldName.setValue("");
InspectAddFieldValue.setValue("");
Canvas.pushDialog(InspectAddFieldDlg, 99);
}
function InspectAddFieldDlg::doAction(%this)
{
if(InspectAddFieldName.getValue() $= "" || InspectAddFieldValue.getValue() $= "")
return;
eval(%this.object @ "." @ firstWord(InspectAddFieldName.getValue()) @ " = " @ InspectAddFieldValue.getValue() @ ";");
%this.inspector.inspect(%this.object);
}

View file

@ -0,0 +1,155 @@
new GuiControl(interiorDebugDialog) {
profile = "GuiDialogProfile";
new GuiWindowCtrl()
{
profile = GuiWindowProfile;
position = "25 25";
extent = "240 200";
text = "Interior Debug Options";
closeCommand = "Canvas.popDialog(interiorDebugDialog);";
new GuiTextCtrl() {
profile = "GuiCenterTextProfile";
position = "20 25";
extent = "200 20";
text = "Render Mode:";
};
new GuiPopUpMenuCtrl(InteriorRenderMode) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 45";
extent = "200 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Options";
maxPopupHeight = "200";
setText = "false";
};
new GuiTextCtrl() {
profile = "GuiCenterTextProfile";
position = "20 73";
extent = "200 20";
text = "Options:";
};
new GuiButtonCtrl(InteriorAlarmMode) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "45 93";
extent = "150 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "false";
modal = "True";
helpTag = "0";
text = "Toggle Alarm Mode";
};
new GuiCheckBoxCtrl(InteriorFocusDebugModes) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "45 115";
extent = "150 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "false";
modal = "True";
helpTag = "0";
text = "Focus Debug Modes";
};
new GuiCheckBoxCtrl(InteriorDontRestrict) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "45 137";
extent = "150 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "false";
modal = "True";
helpTag = "0";
text = "Don't Restrict outside";
};
};
};
$InteriorRenderModes[0] = "Normal";
$InteriorRenderModes[1] = "Render as Lines";
$InteriorRenderModes[2] = "Show Detail Polys";
$InteriorRenderModes[3] = "Show Ambiguous Polys";
$InteriorRenderModes[4] = "Show Orphaned Polys";
$InteriorRenderModes[5] = "Show Lightmap";
$InteriorRenderModes[6] = "Show Only Textures";
$InteriorRenderModes[7] = "Show Portal Zones";
$InteriorRenderModes[8] = "Show Ambient lit Surfaces";
$InteriorRenderModes[9] = "[* Show Collision Fans *]";
$InteriorRenderModes[10] = "[* Show Triangle Strips *]";
$InteriorRenderModes[11] = "[* Show Null Surfaces *]";
$InteriorRenderModes[12] = "[* Show Large Textures *]";
$InteriorRenderModes[13] = "[* Show Hull Surfaces *]";
$InteriorRenderModes[14] = "[* Show Vehicle Hull Surfaces *]";
$InteriorRenderModes[15] = "[* Show vertex colors *]";
$InteriorRenderModes[16] = "[* Show detail level *]";
$NumInteriorRenderModes = 17;
for ($i = 0; $i < $NumInteriorRenderModes; $i++) {
InteriorRenderMode.add($InteriorRenderModes[$i], $i);
}
InteriorRenderMode.setText($InteriorRenderModes[0]);
function InteriorRenderMode::onSelect(%object, %idNum)
{
%name = %object.getValue();
%renderMode = 0;
for (%i = 0; %i < $NumInteriorRenderModes; %i++) {
if (%name $= $InteriorRenderModes[%i]) {
%renderMode = %i;
break;
}
}
setInteriorRenderMode(%renderMode);
if(%renderMode == 1) // line mode
$T2::renderoutline = true;
else
$T2::renderoutline = false;
}
$InteriorPreviewGuiAlarmMode = "off";
function InteriorAlarmMode::onAction()
{
if ($InteriorPreviewGuiAlarmMode $= "on")
$InteriorPreviewGuiAlarmMode = "off";
else
$InteriorPreviewGuiAlarmMode = "on";
TestObject.setAlarmMode($InteriorPreviewGuiAlarmMode);
}
function InteriorFocusDebugModes::onAction()
{
setInteriorFocusedDebug(InteriorFocusDebugModes.getValue());
}
function InteriorDontRestrict::onAction()
{
$Interior::DontRestrictOutside = InteriorDontRestrict.getValue();
}
function interiorDebugDialog::onWake( %this )
{
}
function interiorDebugDialog::onSleep( %this )
{
}

View file

@ -0,0 +1,296 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(interiorPreviewGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GameTSCtrl() {
profile = "GuiButtonProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
beaconBaseTextureName = "gui/beacon_base";
beaconTargetTextureName = "gui/crosshairs";
beaconTargetPeriod = "4000";
beaconsVisible = "1";
enemyBeaconLineBeginColor = "0.000000 1.000000 0.000000 0.200000";
enemyBeaconLineEndColor = "0.000000 1.000000 0.000000 0.800000";
vehicleBeaconLineBeginColor = "1.000000 0.000000 0.000000 0.200000";
vehicleBeaconLineEndColor = "1.000000 0.000000 0.000000 0.800000";
friendBeaconLineBeginColor = "1.000000 1.000000 0.000000 0.200000";
friendBeaconLineEndColor = "1.000000 1.000000 0.000000 0.800000";
beaconLineWidth = "2.5";
beaconTextYOffset = "14";
showAlternateTarget = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "22 438";
extent = "100 20";
minExtent = "8 8";
visible = "1";
command = "quit();";
helpTag = "0";
text = "Exit";
};
new ShellFieldCtrl(metricsIMain) {
profile = "GuiChatBackProfile";
horizSizing = "right";
vertSizing = "top";
position = "10 160";
extent = "242 275";
minExtent = "16 18";
visible = "0";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiTextCtrl(title) {
profile = "CenterPrintTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "63 7";
extent = "110 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Mapper Metrics";
longTextBuffer = "0";
maxLength = "255";
lineSpacing = "2";
maxChars = "-1";
allowColorChars = "0";
};
new GuiTextCtrl(ThreeSpacePolysText) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 148";
extent = "85 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "TS Polys: ";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(InteriorPolysText) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 118";
extent = "98 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Interior Polys: ";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(TerrainPolysText) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 88";
extent = "99 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Terrain Polys: ";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(TotalPolysText) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 226";
extent = "101 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Scene Polys: ";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(WaterPolysText) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 178";
extent = "127 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Water Polys: ";
longTextBuffer = "0";
maxLength = "255";
};
new GuiTextCtrl(FrameRateText) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "12 40";
extent = "87 26";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Frame Rate: ";
longTextBuffer = "0";
maxLength = "255";
};
new GuiConsoleVariableCtrl(frameRate) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "156 40";
extent = "70 25";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
expression = "$FPS::Real";
};
new GuiConsoleVariableCtrl(ThreeSpacePolys) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "156 148";
extent = "70 25";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
expression = "$OpenGL::triCount3";
};
new GuiConsoleVariableCtrl(InteriorPolys) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "156 118";
extent = "70 25";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
expression = "$OpenGL::triCount2";
};
new GuiConsoleVariableCtrl(TerrainPolys) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "156 88";
extent = "70 25";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
expression = "$OpenGL::triCount1";
};
new GuiConsoleVariableCtrl(TotalPolys) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "156 226";
extent = "70 25";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
expression = "$OpenGL::triCount";
};
new GuiConsoleVariableCtrl(WaterPolys) {
profile = "ScoreTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "156 179";
extent = "70 25";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
expression = "$Water::triCount";
};
};
};
//--- OBJECT WRITE END ---
function toggleMouse()
{
if(Canvas.isCursorOn())
CursorOff();
else
CursorOn();
}
function interiorDebug(%val)
{
if ( !%val )
Canvas.pushDialog( interiorDebugDialog );
}
function InteriorPreviewGui::onWake(%this)
{
GlobalActionMap.bindcmd( keyboard, "tab", "", "toggleMouse();" );
GlobalActionMap.bindcmd( keyboard, "f9", "", "interiorDebug();" );
GlobalActionMap.bindcmd( keyboard, escape, "", "quit();" );
if ( isObject( previewMap ) )
{
previewMap.pop();
previewMap.delete();
}
new ActionMap( previewMap );
previewMap.bind( keyboard, w, moveforward );
previewMap.bind( keyboard, s, movebackward );
previewMap.bind( keyboard, a, moveleft );
previewMap.bind( keyboard, d, moveright );
previewMap.bind( keyboard, e, moveup );
previewMap.bind( keyboard, c, movedown );
previewMap.bindCmd( keyboard, k, "cycleDebugRenderMode();", "" );
previewMap.copyBind( moveMap, yaw );
previewMap.copyBind( moveMap, pitch );
previewMap.push();
}
function InteriorPreviewGui::onSleep(%this)
{
previewMap.pop();
previewMap.delete();
GlobalActionMap.unbind(keyboard, "tab");
GlobalActionMap.unbind(keyboard, "f9");
lockMouse(false);
}

View file

@ -0,0 +1,198 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(JoinChatDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl(JoinChatPane) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "120 60";
extent = "400 360";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "CHOOSE CHAT CHANNEL";
maxLength = "255";
noTitleBar = "0";
new ShellFancyArrayScrollCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "48 39";
extent = "304 227";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
fixedHorizontal = "1";
vertSpacerBitmap = "gui/shll_vertspacer";
horzSpacerBitmap = "gui/shll_horzspacer";
new VirtualScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 16";
extent = "304 211";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
willFirstRespond = "0";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 0";
new VirtualScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "280 203";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "288 9616";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
};
};
};
new ShellFancyTextList(JoinChatList) {
profile = "ShellServerBrowserProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "284 223";
minExtent = "8 20";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
altCommand = "JoinChatDlg.join();";
helpTag = "0";
startScrollRegion = "0 0";
headerBitmap = "gui/server_tabs";
sortArrowBitmap = "gui/shll_sortarrow";
fieldBase = "gui/shll_field";
barBase = "gui/shll_bar";
glowOffset = "4";
rowHeight = "19";
headerFontSize = "0";
headerFontColor = "8 19 6 255";
headerFontColorHL = "25 68 56 255";
separatorColor = "192 192 192 255";
drawSeparators = "0";
headerSort = "1";
allowReposition = "0";
noSelect = "0";
allowColorChars = "0";
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "48 305";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.popDialog(JoinChatDlg); LaunchTabView.viewTab(\"CHAT\",ChatGui,0);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "center";
vertSizing = "top";
position = "67 269";
extent = "272 36";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellTextEditCtrl(JoinChatName) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "48 0";
extent = "223 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "JoinChatName.onCharInput();";
altCommand = "JoinChatDlg.join();";
helpTag = "0";
maxLength = "24";
historySize = "0";
password = "0";
tabComplete = "0";
deniedSound = "InputDeniedSound";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "8 8";
extent = "44 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Channel:";
maxLength = "255";
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "228 305";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "JoinChatDlg.join();";
helpTag = "0";
text = "JOIN CHAT";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,227 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(JoystickConfigDlg) {
profile = "DlgBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
pane = "0";
new ShellPaneCtrl(JoystickConfigFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "95 50";
extent = "450 380";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "CONFIGURE JOYSTICK";
maxLength = "255";
noTitleBar = "0";
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "155 325";
extent = "140 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.popDialog(JoystickConfigDlg);";
helpTag = "0";
text = "DONE";
simpleStyle = "0";
};
new ShellTabFrame() {
profile = "ShellTabFrameProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "129 37";
extent = "254 283";
minExtent = "254 26";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
isVertical = "1";
useCloseButton = "0";
edgeInset = "0";
};
new ShellFieldCtrl() {
profile = "ShellFieldProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "140 47";
extent = "278 263";
minExtent = "16 18";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "6 48";
extent = "60 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Action:";
maxLength = "255";
};
new ShellPopupMenu(JoyAxisActionMenu) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "63 39";
extent = "200 36";
minExtent = "49 36";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
maxLength = "255";
maxPopupHeight = "200";
buttonBitmap = "gui/shll_pulldown";
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
selectedBarBitmap = "gui/shll_pulldownbar_act";
noButtonStyle = "0";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "47 80";
extent = "57 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Sensitivity:";
maxLength = "255";
};
new GuiTextCtrl(JoySensText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "109 80";
extent = "28 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "(0.5)";
maxLength = "255";
};
new ShellSliderCtrl(JoyAxisSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "57 95";
extent = "170 24";
minExtent = "12 24";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "value";
altCommand = "JoySensText.update();";
helpTag = "0";
range = "0.000000 1.000000";
ticks = "1000";
value = "0.5";
usePlusMinus = "1";
};
new ShellToggleButton(InvertJoyAxisTgl) {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "75 167";
extent = "127 30";
minExtent = "26 27";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "INVERT";
maxLength = "255";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "47 120";
extent = "57 22";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Dead Zone:";
maxLength = "255";
};
new GuiTextCtrl(DeadZoneText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "109 120";
extent = "28 20";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "(0.5)";
maxLength = "255";
};
new ShellSliderCtrl(DeadZoneSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "57 135";
extent = "170 24";
minExtent = "12 24";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
variable = "value";
altCommand = "DeadZoneText.update();";
helpTag = "0";
range = "0.000000 1.000000";
ticks = "100";
value = "0.5";
usePlusMinus = "1";
};
//new ShellToggleButton(JoyAxisRelativeTgl) {
// profile = "ShellRadioProfile";
// horizSizing = "right";
// vertSizing = "bottom";
// position = "75 197";
// extent = "127 30";
// minExtent = "26 27";
// visible = "1";
// hideCursor = "0";
// bypassHideCursor = "0";
// helpTag = "0";
// text = "RELATIVE";
// maxLength = "255";
//};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,14 @@
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(LaunchGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
variable = "$ShellBackground";
helpTag = "0";
useVariable = "1";
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,76 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(LaunchToolbarDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "0";
helpTag = "0";
ctrlCount = "0";
new GuiControl(LaunchToolbarPane) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "top";
position = "-2 436";
extent = "644 44";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new ShellLaunchMenu(LaunchToolbarMenu) {
profile = "LaunchMenuProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "3 0";
extent = "115 56";
minExtent = "8 8";
visible = "1";
setFirstResponder = "1";
modal = "1";
helpTag = "0";
text = "LAUNCH";
maxPopupHeight = "200";
buttonFontType = "Sui Generis";
buttonFontSize = "14";
};
new ShellTabGroupCtrl(LaunchTabView) {
profile = "LaunchTabProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "120 11";
extent = "520 29";
minExtent = "38 29";
visible = "1";
helpTag = "0";
glowOffset = "0";
tabSpacing = "1";
maxTabWidth = "160";
stretchToFit = "0";
};
};
new ShellBitmapButton(LaunchToolbarCloseButton) {
profile = "CloseButtonProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "583 13";
extent = "33 26";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
command = "LaunchTabView.closeCurrentTab();";
text = "";
simpleStyle = "1";
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,161 @@
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(LoadingGui) {
profile = "GuiContentProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
variable = "$ShellBackground";
helpTag = "0";
useVariable = "1";
qLineCount = "0";
new ShellPaneCtrl() {
profile = "ShellPaneProfile";
horizSizing = "width";
vertSizing = "height";
position = "28 13";
extent = "584 459";
minExtent = "48 92";
visible = "1";
helpTag = "0";
maxLength = "255";
noTitleBar = "1";
new GuiProgressCtrl(LoadingProgress) {
profile = "ShellProgressBarProfile";
horizSizing = "right";
vertSizing = "top";
position = "81 410";
extent = "262 25";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiTextCtrl(LoadingProgressTxt) {
profile = "ShellProgressBarTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 3";
extent = "262 19";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "LOADING MISSION";
maxLength = "255";
};
};
new GuiTextCtrl(LOAD_MapName) {
profile = "ShellSubHeaderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 6";
extent = "90 32";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Map Name";
maxLength = "255";
};
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "bottom";
position = "26 34";
extent = "312 165";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(LOAD_MapText) {
profile = "ShellLoadTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "312 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
};
new GuiTextCtrl(LOAD_MissionType) {
profile = "ShellSubHeaderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "24 207";
extent = "115 32";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Mission Type";
maxLength = "255";
};
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "bottom";
position = "26 235";
extent = "312 165";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(LOAD_GameText) {
profile = "ShellLoadTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "312 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
maxChars = "-1";
};
};
new GuiControl() {
profile = "ShellLoadFrameProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "349 8";
extent = "212 428";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiChunkedBitmapCtrl(LOAD_MapPic) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "1 1";
extent = "210 426";
minExtent = "8 8";
visible = "1";
helpTag = "0";
bitmap = "gui/loading.png";
useVariable = "0";
};
};
new ShellBitmapButton() {
profile = "ShellButtonNoTabProfile";
horizSizing = "right";
vertSizing = "top";
position = "14 404";
extent = "70 38";
minExtent = "32 38";
visible = "1";
command = "Disconnect();";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,347 @@
//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(LobbyGui) {
profile = "GuiContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
variable = "$ShellBackground";
helpTag = "0";
useVariable = "1";
new ShellPaneCtrl() {
profile = "ShellPaneProfile";
horizSizing = "width";
vertSizing = "height";
position = "20 20";
extent = "600 440";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "LOBBY";
noTitleBar = "0";
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "bottom";
position = "23 36";
extent = "276 140";
minExtent = "16 18";
visible = "1";
new ShellFieldCtrl() {
profile = "ShellFieldProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "4 0";
extent = "268 27";
minExtent = "16 18";
visible = "1";
helpTag = "0";
new GuiTextCtrl(LobbyServerName) {
profile = "ShellLargeLabelProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "3 2";
extent = "262 26";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "";
};
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 28";
extent = "276 111";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "7 7";
extent = "262 97";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(LobbyStatusText) {
profile = "ShellTextArrayProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "242 16";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
};
};
};
};
new ShellFancyArrayScrollCtrl() {
profile = "ShellServerBrowserProfile";
horizSizing = "relative";
vertSizing = "height";
position = "23 175";
extent = "275 209";
minExtent = "24 72";
visible = "1";
helpTag = "0";
fixedHorizontal = "0";
vertSpacerBitmap = "gui/shll_vertspacer";
horzSpacerBitmap = "gui/shll_horzspacer";
new VirtualScrollCtrl() {
profile = "ShellServerBrowserProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 16";
extent = "275 193";
minExtent = "8 52";
visible = "1";
helpTag = "0";
willFirstRespond = "0";
hScrollBar = "alwaysOn";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "0 0";
new VirtualScrollContentCtrl() {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "4 4";
extent = "251 169";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiControl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "8 8";
minExtent = "8 8";
visible = "1";
helpTag = "0";
};
};
};
new ShellFancyTextList(LobbyPlayerList) {
profile = "LobbyPlayerListProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "255 188";
minExtent = "8 20";
visible = "1";
helpTag = "0";
startScrollRegion = "3 0";
headerBitmap = "gui/server_tabs";
sortArrowBitmap = "gui/shll_sortarrow";
fieldBase = "gui/shll_field";
barBase = "gui/shll_bar";
glowOffset = "4";
rowHeight = "19";
headerFontType = "Univers Condensed";
headerFontSize = "16";
headerFontColor = "8 19 6 255";
headerFontColorHL = "25 68 56 255";
separatorColor = "192 192 192 255";
drawSeparators = "0";
headerSort = "1";
allowReposition = "0";
noSelect = "1";
};
};
new GuiControl() {
profile = "NewScrollCtrlProfile";
horizSizing = "relative";
vertSizing = "bottom";
position = "298 32";
extent = "275 143";
minExtent = "24 52";
visible = "1";
helpTag = "0";
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "275 143";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "261 129";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(LobbyVoteMenu) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "261 8";
minExtent = "8 8";
visible = "1";
altCommand = "lobbyVote();";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new ShellBitmapButton(LobbyCancelBtn) {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "bottom";
position = "178 1";
extent = "80 38";
minExtent = "32 38";
visible = "0";
command = "LobbyVoteMenu.reset();";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
new ShellScrollCtrl(LobbyMessageScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "relative";
vertSizing = "height";
position = "298 174";
extent = "275 178";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "alwaysOn";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "7 7";
extent = "245 164";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMessageVectorCtrl(LobbyMessageVector) {
profile = "GuiChatHudProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "245 12";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "0";
lineContinuedIndex = "10";
matchColor = "0 0 255 255";
maxColorIndex = 5;
};
};
};
new ShellTextEditCtrl(LobbyChatEnter) {
profile = "NewTextEditProfile";
horizSizing = "relative";
vertSizing = "top";
position = "293 350";
extent = "285 38";
minExtent = "32 38";
visible = "1";
altCommand = "LobbyChatEnter.send();";
escapeCommand = "LobbyChatEnter.onEscape();";
helpTag = "0";
historySize = "0";
maxLength = "120";
password = "0";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "195 385";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.pushDialog(OptionsDlg);";
helpTag = "0";
text = "SETTINGS";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "315 385";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "lobbyDisconnect();";
helpTag = "0";
text = "LEAVE GAME";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "left";
vertSizing = "top";
position = "435 385";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "lobbyReturnToGame();";
accelerator = "escape";
helpTag = "0";
text = "RETURN TO GAME";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,162 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(LoginDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "72 143";
extent = "495 194";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "LOGIN";
maxLength = "255";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "37 47";
extent = "85 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Account Name:";
maxLength = "255";
};
new ShellTextEditCtrl(LoginEditBox) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "118 39";
extent = "180 38";
minExtent = "32 38";
visible = "1";
variable = "$LoginName";
altCommand = "LoginProcess();";
helpTag = "0";
maxLength = "16";
historySize = "0";
password = "0";
glowOffset = "9 9";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "37 77";
extent = "85 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Password:";
maxLength = "255";
};
new GuiLoginPasswordCtrl(LoginPasswordBox) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "118 69";
extent = "180 38";
minExtent = "32 38";
visible = "1";
variable = "$LoginPassword";
altCommand = "LoginProcess();";
helpTag = "0";
maxLength = "16";
historySize = "0";
password = "1";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "300 39";
extent = "147 38";
minExtent = "32 38";
visible = "1";
command = "LoginProcess(false);";
helpTag = "0";
text = "LOG IN";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "300 69";
extent = "147 38";
minExtent = "32 38";
visible = "1";
command = "CreateAccount();";
helpTag = "0";
text = "CREATE NEW ACCOUNT";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "300 99";
extent = "147 38";
minExtent = "32 38";
visible = "1";
command = "LoginProcess(true);";
helpTag = "0";
text = "EDIT ACCOUNT";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "300 129";
extent = "147 38";
minExtent = "32 38";
visible = "1";
command = "quit();";
accelerator = "escape";
helpTag = "0";
text = "QUIT";
simpleStyle = "0";
};
new ShellToggleButton() {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "122 104";
extent = "167 27";
minExtent = "26 27";
visible = "1";
variable = "$pref::RememberPassword";
helpTag = "0";
text = "REMEMBER PASSWORD";
maxLength = "255";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "118 129";
extent = "180 38";
minExtent = "32 38";
visible = "1";
command = "PasswordProcess(true);";
helpTag = "0";
text = "EMAIL ME MY PASSWORD";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,48 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(LoginMessageBoxDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl(LoginMessageBoxFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 137";
extent = "300 206";
minExtent = "48 92";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(LoginMessageBoxText) {
profile = "ShellMediumTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
};
new ShellBitmapButton(LoginMessageBoxButton) {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "70 140";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "LoginMessageBoxButtonProcess();";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,183 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageBoxOKDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl(MBOKFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 137";
extent = "300 206";
minExtent = "48 92";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(MBOKText) {
profile = "ShellMediumTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
};
new ShellBitmapButton(MBOKButton) {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "90 151";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(MessageBoxOKDlg);";
accelerator = "return";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageBoxYesNoDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl(MBYesNoFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 137";
extent = "300 206";
minExtent = "48 92";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(MBYesNoText) {
profile = "ShellMediumTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
};
new ShellBitmapButton(MBYesNoButtonYes) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "26 151";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(MessageBoxYesNoDlg);";
accelerator = "enter";
helpTag = "0";
text = "YES";
simpleStyle = "0";
};
new ShellBitmapButton(MBYesNoButtonNo) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "154 151";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(MessageBoxYesNoDlg);";
accelerator = "escape";
helpTag = "0";
text = "NO";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageBoxOKCancelDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl(MBOKCancelFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "170 137";
extent = "300 206";
minExtent = "48 92";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(MBOKCancelText) {
profile = "ShellMediumTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "32 39";
extent = "236 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
};
new ShellBitmapButton(MBOKCancelButtonOK) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "154 151";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(MessageBoxOKCancelDlg);";
accelerator = "return";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new ShellBitmapButton(MBOKCancelButtonCancel) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "26 151";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(MessageBoxOKCancelDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,35 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessagePopupDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl(MessagePopFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "165 194";
extent = "310 108";
minExtent = "48 92";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(MessagePopText) {
profile = "ShellMediumTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "32 40";
extent = "247 32";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,178 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MouseConfigDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "125 104";
extent = "390 271";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "CONFIGURE MOUSE";
noTitleBar = "0";
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "50 216";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(MouseConfigDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "220 216";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "MouseConfigDlg::onOK();";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "86 36";
extent = "94 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "X-Axis Sensitivity:";
};
new GuiTextCtrl(MouseXText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "185 36";
extent = "28 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "(0.5)";
};
new ShellSliderCtrl(MouseXSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "96 51";
extent = "170 24";
minExtent = "12 24";
visible = "1";
variable = "value";
altCommand = "MouseXSlider.sync();";
helpTag = "0";
range = "0.000000 1.000000";
ticks = "1000";
value = "0.480769";
usePlusMinus = "1";
};
new ShellToggleButton() {
profile = "ShellRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "247 73";
extent = "71 30";
minExtent = "26 27";
visible = "1";
variable = "$pref::Input::LinkMouseSensitivity";
helpTag = "0";
text = "LINK";
};
new GuiTextCtrl() {
profile = "ShellTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "86 85";
extent = "93 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Y-Axis Sensitivity:";
};
new GuiTextCtrl(MouseYText) {
profile = "ShellAltTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "184 85";
extent = "28 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "(0.5)";
};
new ShellSliderCtrl(MouseYSlider) {
profile = "ShellSliderProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "96 100";
extent = "170 24";
minExtent = "12 24";
visible = "1";
variable = "value";
altCommand = "MouseYSlider.sync();";
helpTag = "0";
range = "0.000000 1.000000";
ticks = "1000";
value = "0.480769";
usePlusMinus = "1";
};
new ShellToggleButton(InvertMouseTgl) {
profile = "ShellRadioProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "125 138";
extent = "140 30";
minExtent = "26 27";
visible = "1";
helpTag = "0";
text = "INVERT Y-AXIS";
};
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "47 183";
extent = "100 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Mouse Wheel:";
};
new ShellPopupMenu(MouseZActionMenu) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "144 174";
extent = "180 36";
minExtent = "49 36";
visible = "1";
helpTag = "0";
maxPopupHeight = "200";
buttonBitmap = "gui/shll_pulldown";
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
selectedBarBitmap = "gui/shll_pulldownbar_act";
noButtonStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,93 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(MoveThreadDlg) {
profile = "DlgBackProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl(MoveThreadDlgPane) {
profile = "ShellPaneProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "168 155";
extent = "277 125";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "MOVE THREAD";
maxLength = "255";
noTitleBar = "0";
new ShellPopupMenu(MoveToForumList) {
profile = "ShellPopupProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "17 43";
extent = "247 36";
minExtent = "49 36";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
maxLength = "255";
maxPopupHeight = "200";
buttonBitmap = "gui/shll_pulldown";
rolloverBarBitmap = "gui/shll_pulldownbar_rol";
selectedBarBitmap = "gui/shll_pulldownbar_act";
noButtonStyle = "0";
};
new GuiTextCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "27 35";
extent = "225 16";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "Select New Forum:";
maxLength = "255";
};
new ShellBitmapButton(mtdOKbtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "201 72";
extent = "65 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "TopicsPopupMenu.ExecuteMove();";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
new ShellBitmapButton(mtdCancelbtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "142 72";
extent = "75 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.PopDIalog(\"MoveThreadDlg\");";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,290 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(NewMissionGui) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "236 83";
extent = "228 276";
minExtent = "100 100";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "CREATE NEW MISSION";
resizeWidth = "False";
resizeHeight = "False";
canMove = "True";
canClose = "True";
canMinimize = "False";
canMaximize = "False";
minSize = "50 50";
closeCommand = "Canvas.popDialog(NewMissionGui);";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "11 30";
extent = "68 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Mission Name:";
};
new GuiTextEditCtrl(MissionNameEdit) {
profile = "GuiTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "82 30";
extent = "120 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
historySize = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "27 239";
extent = "80 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "CreateMission();Canvas.popDialog(NewMissionGui);";
helpTag = "0";
text = "OK";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "121 239";
extent = "80 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
command = "Canvas.popDialog(NewMissionGui);";
helpTag = "0";
text = "CANCEL";
};
new GuiControl() {
profile = "GuiScrollCtrlProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "15 110";
extent = "198 114";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 40";
extent = "145 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "MISSION TYPE OPTIONS HERE";
};
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "15 55";
extent = "64 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Base Terrain:";
};
new GuiPopUpMenuCtrl(TerrainFileMenu) {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "82 55";
extent = "120 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
maxPopupHeight = "200";
};
new GuiTextCtrl() {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "27 88";
extent = "26 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Type:";
};
new GuiPopUpMenuCtrl(MissionTypeMenu) {
profile = "GuiRadioProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "59 86";
extent = "120 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
maxPopupHeight = "200";
};
};
};
//--- OBJECT WRITE END ---
function CreateMission()
{
if($MissionRunning)
return;
%missionName = MissionNameEdit.getValue() @ ".mis";
if(%missionName $= "")
return;
echo("--- Creating mission: " @ %missionName);
// do the terrain
%terrainName = MissionNameEdit.getValue() @ ".ter";
%baseTerrain = TerrainFileMenu.getValue() @ ".ter";
%graphName = MissionNameEdit.getValue() @ ".nav";
%obj = new TerrainBlock(BaseTerrain)
{
position = "0 0 0 1";
rotation = "0 0 0 0";
scale = "1 1 1";
terrainFile = %baseTerrain;
squareSize = "8";
visibleDistance = "1200";
hazeDistance = "250";
emptySquares = "250";
};
if(%obj == -1)
{
echo("!!! Failed to create base terrain: " @ %baseTerrain);
return;
}
BaseTerrain.save(%terrainName);
BaseTerrain.delete();
rebuildModPaths();
// create a mission...
new SimGroup(MissionGroup)
{
new MissionArea(MissionArea)
{
area = "512 512 1024 1024";
};
new Sun()
{
position = "0 0 0 1";
rotation = "0 0 0 0";
scale = "1 1 1";
direction = "0.5 0.5 -0.5";
ambient = "0.2 0.2 0.2 1.0";
color = "0.6 0.6 0.6 1.0";
};
new TerrainBlock(Terrain)
{
position = "0 0 0 1";
rotation = "0 0 0 0";
scale = "1 1 1";
terrainFile = %terrainName;
squareSize = "8";
visibleDistance = "1200";
hazeDistance = "250";
emptySquares = "250";
};
new NavigationGraph(NavGraph)
{
position = "0 0 0 1";
rotation = "0 0 0 0";
scale = "1 1 1";
GraphFile = %graphName;
};
};
MissionGroup.save("missions/" @ %missionName);
MissionGroup.delete();
// create a server and connect
setNetPort($Host::Port);
$ServerName = $Host::GameName;
CreateServer(%missionName);
localConnect();
Canvas.setContent(PlayGui);
}
function NewMissionGui::onWake(%this)
{
//
$NewMissionName = "NewMission";
MissionNameEdit.setValue("NewMission");
// fill the terrain list...
TerrainFileMenu.clear();
%spec = "terrains/*.ter";
%count = 0;
for(%file = findFirstFile(%spec); %file !$= ""; %file = findNextFile(%spec))
{
TerrainFileMenu.add(fileBase(%file), %count);
%count++;
}
TerrainFileMenu.setSelected(0);
// fill the mission types.. bunk for now
MissionTypeMenu.clear();
MissionTypeMenu.add("Capture the Flag", 0);
MissionTypeMenu.add("Defend and Destroy", 1);
MissionTypeMenu.add("Find and Retrieve", 2);
MissionTypeMenu.add("Death Match", 3);
MissionTypeMenu.add("Rabbit", 4);
MissionTypeMenu.add("Football", 5);
MissionTypeMenu.add("Flag Hunters", 6);
MissionTypeMenu.setSelected(0);
}

View file

@ -0,0 +1,80 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(NewWarriorDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "155 167";
extent = "330 145";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "NEW WARRIOR";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 52";
extent = "81 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Name:";
};
new ShellTextEditCtrl(NW_NameEdit) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "97 44";
extent = "180 38";
minExtent = "32 38";
visible = "1";
command = "NW_NameEdit.checkValidPlayerName();";
altCommand = "NW_NameEdit.processEnter();";
helpTag = "0";
historySize = "0";
maxLength = "16";
password = "0";
glowOffset = "9 9";
};
new ShellBitmapButton(NW_DoneBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "182 90";
extent = "108 38";
minExtent = "32 38";
visible = "1";
command = "NewWarriorDlg.createPlayer();";
helpTag = "0";
text = "DONE";
simpleStyle = "0";
};
new ShellBitmapButton(NW_CancelBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "40 90";
extent = "108 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(NewWarriorDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,15 @@
//--- OBJECT WRITE BEGIN ---
new GameTSCtrl(PanoramaGui) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,80 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(PasswordDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "147 142";
extent = "345 172";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "PASSWORD";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellMediumTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "54 42";
extent = "236 20";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "This server requires a password.";
};
new ShellTextEditCtrl() {
profile = "NewTextEditProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "78 68";
extent = "180 38";
minExtent = "32 38";
visible = "1";
variable = "$JoinGamePassword";
altCommand = "PasswordDlg.accept();";
helpTag = "0";
historySize = "0";
maxLength = "16";
password = "0";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "35 117";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(PasswordDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "190 117";
extent = "120 38";
minExtent = "32 38";
visible = "1";
command = "PasswordDlg.accept();";
helpTag = "0";
text = "OK";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,74 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(PickTeamDlg) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
mouseOn = "1";
new ShellPaneCtrl(PickTeamFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "220 115";
extent = "250 250";
minExtent = "48 92";
visible = "1";
helpTag = "0";
noTitleBar = "0";
new ShellBitmapButton("PickTeamAButton") {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "158 60";
extent = "120 60";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "";
command = "clientCmdprocessPickTeam(1);";
};
new ShellBitmapButton("PickTeamBButton") {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "158 95";
extent = "120 60";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "";
command = "clientCmdprocessPickTeam(2);";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "158 130";
extent = "120 60";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Observer";
command = "clientCmdprocessPickTeam(4);";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "158 165";
extent = "120 60";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "Automatic";
command = "clientCmdprocessPickTeam(3);";
};
};
};
//--- OBJECT WRITE END ---

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,140 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(RecordingsDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "60 61";
extent = "530 360";
minExtent = "48 92";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
text = "SELECT RECORDING";
longTextBuffer = "0";
maxLength = "255";
noTitleBar = "0";
new ShellFancyArrayScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "center";
vertSizing = "height";
position = "23 37";
extent = "484 266";
minExtent = "32 32";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
fixedHorizontal = "1";
vertSpacerBitmap = "gui/shll_vertspacer";
horzSpacerBitmap = "gui/shll_horzspacer";
new ShellFancyTextList(RecordingsDlgList) {
profile = "ShellServerBrowserProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "464 262";
minExtent = "8 20";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
helpTag = "0";
startScrollRegion = "3 0";
headerBitmap = "gui/server_tabs";
sortArrowBitmap = "gui/shll_sortarrow";
fieldBase = "gui/shll_field";
barBase = "gui/shll_bar";
glowOffset = "4";
rowHeight = "19";
headerFontType = "Univers Condensed";
headerFontSize = "16";
headerFontColor = "8 19 6 255";
headerFontColorHL = "25 68 56 255";
separatorColor = "192 192 192 255";
drawSeparators = "0";
headerSort = "1";
allowReposition = "1";
noSelect = "0";
allowColorChars = "1";
altCommand = "startSelectedDemo();";
};
};
new ShellBitmapButton(PR_CancelBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "386 304";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "Canvas.popDialog(RecordingsDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton(PR_StartDemoBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "16 304";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "StartSelectedDemo();";
helpTag = "0";
text = "PLAY";
simpleStyle = "0";
};
new ShellBitmapButton(PR_DeleteDemoBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "134 304";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "DeleteSelectedDemo();";
helpTag = "0";
text = "DELETE";
simpleStyle = "0";
};
new ShellBitmapButton(PR_RenameDemoBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "252 304";
extent = "128 38";
minExtent = "32 38";
visible = "1";
hideCursor = "0";
bypassHideCursor = "0";
command = "RenameSelectedDemo();";
helpTag = "0";
text = "RENAME";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,48 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(RemapDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
hideCursor = "1";
bypassHideCursor = "0";
helpTag = "0";
new ShellPaneCtrl(RemapFrame) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "71 172";
extent = "498 126";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "REMAP";
new GuiMLTextCtrl(RemapText) {
profile = "ShellMediumTextProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "49 47";
extent = "400 18";
minExtent = "8 8";
visible = "1";
helpTag = "0";
lineSpacing = "2";
};
new GuiInputCtrl(RemapInputCtrl) {
profile = "GuiInputCtrlProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "0 0";
extent = "64 64";
minExtent = "8 8";
visible = "1";
helpTag = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,146 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ServerInfoDlg) {
profile = "GuiModelessDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellWindowCtrl(SI_Window) {
profile = "ShellWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "145 105";
extent = "350 270";
minExtent = "200 200";
visible = "1";
helpTag = "0";
text = "INFO";
frameBase = "gui/window";
borderWidth = "2";
resizeWidth = "1";
resizeHeight = "1";
canMove = "1";
canClose = "1";
closeCommand = "Canvas.popDialog(ServerInfoDlg);";
new GuiFrameSetCtrl(SI_Frame) {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "height";
position = "7 32";
extent = "336 202";
minExtent = "8 8";
visible = "1";
helpTag = "0";
columns = "0";
rows = "0 130";
borderWidth = "4";
borderColor = "25 68 56 206";
borderEnable = "dynamic";
borderMovable = "dynamic";
autoBalance = "0";
fudgeFactor = "4";
new ShellScrollCtrl(SI_InfoScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "336 96";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "7 7";
extent = "306 88";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(SI_InfoWindow) {
profile = "ShellAltTextProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "306 52";
minExtent = "24 52";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "0";
};
};
};
new ShellScrollCtrl(SI_ContentScroll) {
profile = "NewScrollCtrlProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 100";
extent = "336 162";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "7 7";
extent = "306 174";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new GuiMLTextCtrl(SI_ContentWindow) {
profile = "InfoWindowProfile";
horizSizing = "width";
vertSizing = "bottom";
position = "0 0";
extent = "306 52";
minExtent = "24 52";
visible = "1";
helpTag = "0";
lineSpacing = "2";
allowColorChars = "1";
};
};
};
};
new ShellBitmapButton(SI_RefreshBtn) {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "105 230";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "SI_RefreshBtn.setActive(false); GMJ_Browser.refreshSelectedServer();";
helpTag = "0";
text = "REFRESH";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,98 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ShellLoadFileDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl(LOAD_Title) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "135 95";
extent = "370 290";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "LOAD FILE";
noTitleBar = "0";
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "47 33";
extent = "276 200";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "262 186";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(LOAD_FileList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "268 8";
minExtent = "8 8";
visible = "1";
altCommand = "Canvas.popDialog(ShellLoadFileDlg);";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0 275";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "38 235";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(ShellLoadFileDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton(LOAD_LoadBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "204 235";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(ShellLoadFileDlg);";
helpTag = "0";
text = "LOAD";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,125 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(ShellSaveFileDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl(SAVE_Title) {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "135 95";
extent = "370 290";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "SAVE FILE";
noTitleBar = "0";
new GuiTextCtrl() {
profile = "ShellTextRightProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "61 208";
extent = "60 22";
minExtent = "8 8";
visible = "1";
helpTag = "0";
text = "File Name:";
};
new ShellTextEditCtrl(SAVE_FileName) {
profile = "NewTextEditProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "117 200";
extent = "184 38";
minExtent = "32 38";
visible = "1";
command = "SAVE_FileName.checkValid();";
altCommand = "Canvas.popDialog(ShellSaveFileDlg);";
helpTag = "0";
historySize = "0";
maxLength = "32";
password = "0";
glowOffset = "9 9";
};
new ShellBitmapButton() {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "38 235";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(ShellSaveFileDlg);";
accelerator = "escape";
helpTag = "0";
text = "CANCEL";
simpleStyle = "0";
};
new ShellBitmapButton(SAVE_SaveBtn) {
profile = "ShellButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "204 235";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "Canvas.popDialog(ShellSaveFileDlg);";
helpTag = "0";
text = "SAVE";
simpleStyle = "0";
};
new ShellScrollCtrl() {
profile = "NewScrollCtrlProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "47 33";
extent = "276 169";
minExtent = "24 52";
visible = "1";
helpTag = "0";
willFirstRespond = "1";
hScrollBar = "alwaysOff";
vScrollBar = "dynamic";
constantThumbHeight = "0";
defaultLineHeight = "15";
childMargin = "3 3";
fieldBase = "gui/shll_field";
new GuiScrollContentCtrl() {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "7 7";
extent = "262 155";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellTextList(SAVE_FileList) {
profile = "ShellTextArrayProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "268 8";
minExtent = "8 8";
visible = "1";
altCommand = "SAVE_FileList.onDoubleClick();";
helpTag = "0";
enumerate = "0";
resizeCell = "1";
columns = "0 275";
fitParentWidth = "1";
clipColumnText = "0";
};
};
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,66 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(SinglePlayerEscapeDlg) {
profile = "DlgBackProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
helpTag = "0";
new ShellPaneCtrl() {
profile = "ShellDlgPaneProfile";
horizSizing = "center";
vertSizing = "center";
position = "226 151";
extent = "188 178";
minExtent = "48 92";
visible = "1";
helpTag = "0";
text = "PAUSE";
noTitleBar = "0";
new ShellBitmapButton(SinglePlayerEscLeaveBtn) {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "30 31";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "SinglePlayerEscapeDlg.leaveGame();";
helpTag = "0";
text = "LEAVE GAME";
simpleStyle = "0";
};
new ShellBitmapButton(SinglePlayerEscSettingsBtn) {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "30 66";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "SinglePlayerEscapeDlg.gotoSettings();";
helpTag = "0";
text = "SETTINGS";
simpleStyle = "0";
};
new ShellBitmapButton(SinglePlayerEscReturnBtn) {
profile = "ShellButtonProfile";
horizSizing = "center";
vertSizing = "top";
position = "30 123";
extent = "128 38";
minExtent = "32 38";
visible = "1";
command = "SinglePlayerEscapeDlg.returnToGame();";
accelerator = "escape";
helpTag = "0";
text = "RESUME GAME";
simpleStyle = "0";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,133 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(TSShowDetailControlDlg) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "False";
helpTag = "0";
new GuiWindowCtrl() {
profile = "GuiWindowProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "195 259";
extent = "220 140";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Detail Control";
resizeWidth = "True";
resizeHeight = "True";
canMove = "True";
canClose = "True";
canMinimize = "True";
canMaximize = "True";
minSize = "50 50";
closeCommand = "Canvas.popDialog(TSShowDetailControlDlg);";
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "13 28";
extent = "27 20";
minExtent = "8 8";
visible = "True";
setFirstResponder = "True";
modal = "True";
command = "showToggleDetail();";
helpTag = "0";
text = "==>";
};
new GuiTextCtrl(showDetailInfoText1) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "16 89";
extent = "184 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Slider Sets Detail";
FONT = "12 244 Arial";
justify = "center";
};
new GuiTextCtrl(showDetailInfoText2) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "16 112";
extent = "184 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Slider Sets Detail";
FONT = "12 244 Arial";
justify = "center";
};
new GuiTextCtrl(showDetailText) {
profile = "GuiTextProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "46 30";
extent = "80 18";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
helpTag = "0";
text = "Slider Sets Detail";
FONT = "12 244 Arial";
justify = "center";
};
new GuiSliderCtrl(showDetailSlider) {
profile = "GuiDefaultProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "16 57";
extent = "153 23";
minExtent = "8 8";
visible = "True";
setFirstResponder = "False";
modal = "True";
variable = "value";
helpTag = "0";
range = "0.000000 1.000000";
ticks = "5";
value = "0";
tab = "true";
};
};
};
//--- OBJECT WRITE END ---
$showAutoDetail = false;
function showToggleDetail()
{
if ($showAutoDetail)
{
showDetailText.setValue("Slider Sets Detail Level");
showSetDetailSlider();
$showAutoDetail = false;
}
else
{
showDetailText.setValue("Auto Detail Using Distance");
$showAutoDetail = true;
}
}

View file

@ -0,0 +1,40 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(TSShowEditScale)
{
profile = "GuiDefaultProfile";
new GuiWindowCtrl()
{
profile = "GuiWindowProfile";
position = "100 100";
extent = "180 100";
text = "Edit Scale";
new GuiTextEditCtrl(showScale)
{
profile = "GuiTextEditProfile";
position = "80 20";
extent = "50 20";
altCommand = "showSetScale(threadList.getValue(),showScale.getValue()); Canvas.popDialog(TSShowEditScale);";
};
new GuiButtonCtrl ()
{
profile = "GuiButtonProfile";
position = "20 50";
extent = "60 20";
text = "Ok";
command = "showSetScale(threadList.getValue(),showScale.getValue()); Canvas.popDialog(TSShowEditScale);";
};
new GuiButtonCtrl ()
{
profile = "GuiButtonProfile";
position = "110 50";
extent = "60 20";
text = "Cancel";
command = "Canvas.popDialog(TSShowEditScale);";
};
};
};
//--- OBJECT WRITE END ---

View file

@ -0,0 +1,253 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl(TSShowGui) {
profile = "GuiDialogProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
new ShowTSCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "0 0";
extent = "800 600";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
helpTag = "0";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 271";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "showSetFileList(\"base/shapes\",\"dts\",\"showShapeLoad(showFileList.getValue());\"); Canvas.pushDialog(TSShowLoadDlg,99);";
helpTag = "0";
text = "Load Shape";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 301";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "showSetFileList(\"base/shapes\",\"dsq\",\"showSequenceLoad(showFileList.getValue());\"); Canvas.pushDialog(TSShowLoadDlg,99);";
helpTag = "0";
text = "Load Sequence";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 361";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Canvas.pushDialog(TSShowDetailControlDlg,99);";
helpTag = "0";
text = "Detail Control";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 390";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Canvas.pushDialog(TSShowLightDlg,99);";
helpTag = "0";
text = "Lighting";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 420";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Canvas.pushDialog(TSShowMiscDlg,99);";
helpTag = "0";
text = "Misc";
};
new GuiButtonCtrl(showExitButton) {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 450";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "showPopAll(); showMoveMap.pop(); quit();";
helpTag = "0";
text = "Quit";
};
new GuiButtonCtrl() {
profile = "GuiButtonProfile";
horizSizing = "right";
vertSizing = "bottom";
position = "20 331";
extent = "100 20";
minExtent = "8 8";
visible = "1";
setFirstResponder = "0";
modal = "1";
command = "Canvas.pushDialog(TSShowThreadControlDlg,99); showUpdateThreadControl();";
helpTag = "0";
text = "Thread control";
};
};
//--- OBJECT WRITE END ---
$showMission = "emptyMission";
function showPopAll()
{
Canvas.popDialog(TSShowThreadControlDlg);
Canvas.popDialog(TSShowTransitionDlg);
Canvas.popDialog(TSShowLoadDialog);
Canvas.popDialog(TSShowLightDlg);
Canvas.popDialog(TSShowMiscDialog);
Canvas.popDialog(TShowEditScale);
Canvas.popDialog(TSShowDetailControlDlg);
}
function startShow()
{
$ServerName = "show";
CreateServer("emptyMission", "ctf");
localConnect();
Canvas.setContent(TSShowGui);
// if (!$missionRunning)
// {
// DestroyServer();
// $missionSequence = 0;
// new SimGroup( ServerGroup);
// loadMission($showMission, true);
// localConnect();
// }
//
// allowConnections(false);
}
function showSetSpeed(%speed)
{
if(%speed)
$showMovementSpeed = %speed;
}
function showMoveleft(%val)
{
$showLeftAction = %val;
}
function showMoveright(%val)
{
$showRightAction = %val;
}
function showMoveforward(%val)
{
$showForwardAction = %val;
}
function showMovebackward(%val)
{
$showBackwardAction = %val;
}
function showMoveup(%val)
{
$showUpAction = %val;
}
function showMovedown(%val)
{
$showDownAction = %val;
}
function showYaw(%val)
{
$showYaw += %val * 0.01;
}
function showPitch(%val)
{
$showPitch += %val * 0.01;
}
function toggleMouse()
{
if(Canvas.isCursorOn())
CursorOff();
else
CursorOn();
}
function TSShowGui::onWake(%this)
{
if ( !Canvas.isCursorOn() )
CursorOn();
GlobalActionMap.bindcmd(keyboard, "tab", "", "toggleMouse();");
showMoveMap.push();
}
function TSShowGui::onSleep(%this)
{
GlobalActionMap.unbind(keyboard, "tab");
showMoveMap.pop();
lockMouse(false);
CursorOn();
}
new ActionMap(showMoveMap);
showMoveMap.bind(keyboard, a, showMoveleft);
showMoveMap.bind(keyboard, d, showMoveright);
showMoveMap.bind(keyboard, w, showMoveforward);
showMoveMap.bind(keyboard, s, showMovebackward);
showMoveMap.bind(keyboard, e, showMoveup);
showMoveMap.bind(keyboard, c, showMovedown);
showMoveMap.bind(keyboard, z, showTurnLeft);
showMoveMap.bind(keyboard, x, showTurnRight);
showMoveMap.bind(keyboard, 1, S, 0.10, showSetSpeed);
showMoveMap.bind(keyboard, 2, S, 0.25, showSetSpeed);
showMoveMap.bind(keyboard, 3, S, 0.50, showSetSpeed);
showMoveMap.bind(keyboard, 4, S, 1.00, showSetSpeed);
showMoveMap.bind(keyboard, 5, S, 1.50, showSetSpeed);
showMoveMap.bind(keyboard, 6, S, 2.00, showSetSpeed);
showMoveMap.bind(keyboard, 7, S, 3.00, showSetSpeed);
showMoveMap.bind(keyboard, 8, S, 5.00, showSetSpeed);
showMoveMap.bind(keyboard, 9, S, 10.00, showSetSpeed);
showMoveMap.bind(keyboard, 0, S, 20.00, showSetSpeed);
showMoveMap.bind(mouse, xaxis, showYaw);
showMoveMap.bind(mouse, yaxis, showPitch);

View file

@ -0,0 +1,181 @@
//--- OBJECT WRITE BEGIN ---
new GuiControl (TSShowLightDlg)
{
profile = "DialogProfile";
modal = false;
new GuiWindowCtrl()
{
profile = "GuiWindowProfile";
closeCommand = "Canvas.popDialog(TSShowLightDlg);";
position = "20 20";
extent = "150 400";
text = "Light Control";
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 30";
extent = "50 16";
font = "12 244 Arial";
justify = "center";
text = "Environment mapping:";
};
new GuiSliderCtrl( "emapAlpha")
{
profile = "GuiSliderProfile";
position = "20 50";
extent = "100 20";
tab = "true";
range = "0.0 1.0";
value = 0.0;
ticks = 5;
};
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 70";
extent = "50 16";
font = "12 244 Arial";
justify = "center";
text = "Ambient Red:";
};
new GuiSliderCtrl( "ambR")
{
profile = "GuiSliderProfile";
position = "20 90";
extent = "100 20";
tab = "true";
range = "0.0 1.0";
value = 0.5;
ticks = 5;
};
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 110";
extent = "50 16";
font = "12 244 Arial";
justify = "center";
text = "Ambient Green:";
};
new GuiSliderCtrl( "ambG")
{
profile = "GuiSliderProfile";
position = "20 130";
extent = "100 20";
tab = "true";
range = "0.0 1.0";
value = 0.5;
ticks = 5;
};
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 150";
extent = "50 16";
font = "12 244 Arial";
justify = "center";
text = "Ambient Blue:";
};
new GuiSliderCtrl( "ambB")
{
profile = "GuiSliderProfile";
position = "20 170";
extent = "100 20";
tab = "true";
range = "0.0 1.0";
value = 0.5;
ticks = 5;
};
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 190";
extent = "50 16";
font = "12 244 Arial";
justify = "center";
text = "Directional Red:";
};
new GuiSliderCtrl( "diffR")
{
profile = "GuiSliderProfile";
position = "20 210";
extent = "100 20";
tab = "true";
range = "0.0 1.0";
value = 0.5;
ticks = 5;
};
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 230";
extent = "50 16";
font = "12 244 Arial";
justify = "center";
text = "Directional Green:";
};
new GuiSliderCtrl( "diffG")
{
profile = "GuiSliderProfile";
position = "20 250";
extent = "100 20";
tab = "true";
range = "0.0 1.0";
value = 0.5;
ticks = 5;
};
new GuiTextCtrl()
{
profile = "GuiTextProfile";
position = "20 270";
extent = "50 16";
font = "12 244 Arial";
justify = "center";
text = "Directional Blue:";
};
new GuiSliderCtrl( "diffB")
{
profile = "GuiSliderProfile";
position = "20 290";
extent = "100 20";
tab = "true";
range = "0.0 1.0";
value = 0.5;
ticks = 5;
};
new GuiButtonCtrl ()
{
profile = "GuiButtonProfile";
position = "40 330";
extent = "60 20";
text = "Set Direction";
command = "showSetLightDirection();";
};
new GuiButtonCtrl ()
{
profile = "GuiButtonProfile";
position = "40 360";
extent = "60 20";
text = "OK";
command = "Canvas.popDialog(TSShowLightDlg);";
};
};
};
//--- OBJECT WRITE END ---

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