Added editor.

This commit is contained in:
Daniel Buckmaster 2014-11-29 00:52:09 +11:00
parent bbb0777162
commit 163b14fac1
40 changed files with 5642 additions and 6 deletions

View file

@ -0,0 +1,130 @@
%paletteId = new GuiControl(NavEditorPalette,EditorGuiGroup) {
canSaveDynamicFields = "0";
Enabled = "1";
isContainer = "1";
Profile = "GuiDefaultProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "1024 768";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
hovertime = "1000";
new GuiBitmapButtonCtrl(ENavEditorSelectModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorSelectMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.prepSelectionMode();";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "View NavMesh (1).";
DetailedDesc = "";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/visibility-toggle";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorLinkModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorLinkMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"LinkMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "Create off-mesh links (2).";
DetailedDesc = "Click to select/add. Shift-click to add multiple end points.";
hovertime = "1000";
bitmap = "tools/navEditor/images/nav-link";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorCoverModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorCoverMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"CoverMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "Edit cover (3).";
DetailedDesc = "";
hovertime = "1000";
bitmap = "tools/navEditor/images/nav-cover";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorTileModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorTileMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"TileMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "View tiles (4).";
DetailedDesc = "Click to select.";
hovertime = "1000";
bitmap = "tools/gui/images/menubar/select-bounds";
buttonType = "RadioButton";
useMouseEvents = "0";
};
new GuiBitmapButtonCtrl(ENavEditorTestModeBtn) {
canSaveDynamicFields = "1";
class = ENavEditorPaletteButton;
internalName = "NavEditorTestMode";
Enabled = "1";
isContainer = "0";
Profile = "GuiButtonProfile";
HorizSizing = "right";
VertSizing = "bottom";
Position = "0 0";
Extent = "25 19";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
Command = "NavEditorGui.setMode(\"TestMode\");";
tooltipprofile = "GuiToolTipProfile";
ToolTip = "Test pathfinding (5).";
DetailedDesc = "Click to select/move character, CTRL-click to spawn, SHIFT-click to deselect.";
hovertime = "1000";
bitmap = "tools/worldEditor/images/toolbar/3rd-person-camera";
buttonType = "RadioButton";
useMouseEvents = "0";
};
};

View file

@ -83,8 +83,6 @@ function EWCreatorWindow::init( %this )
%this.registerMissionObject( "SpawnSphere", "Observer Spawn Sphere", "ObserverDropPoint" );
%this.registerMissionObject( "SFXSpace", "Sound Space" );
%this.registerMissionObject( "OcclusionVolume", "Occlusion Volume" );
%this.registerMissionObject("NavMesh", "Navigation mesh");
%this.registerMissionObject("NavPath", "Path");
%this.endGroup();
@ -787,4 +785,4 @@ function genericCreateObject( %class )
// In case the caller wants it.
return %obj;
}
}