mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Removed GuiFlexibleArrayControl.
This commit is contained in:
parent
2ed175b52c
commit
add9f990f7
4 changed files with 268 additions and 513 deletions
|
|
@ -1,184 +0,0 @@
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// Copyright (c) 2012 Daniel Buckmaster
|
|
||||||
//
|
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
// of this software and associated documentation files (the "Software"), to
|
|
||||||
// deal in the Software without restriction, including without limitation the
|
|
||||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
||||||
// sell copies of the Software, and to permit persons to whom the Software is
|
|
||||||
// furnished to do so, subject to the following conditions:
|
|
||||||
//
|
|
||||||
// The above copyright notice and this permission notice shall be included in
|
|
||||||
// all copies or substantial portions of the Software.
|
|
||||||
//
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
||||||
// IN THE SOFTWARE.
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#include "console/engineAPI.h"
|
|
||||||
#include "platform/platform.h"
|
|
||||||
#include "gui/containers/guiFlexibleArrayCtrl.h"
|
|
||||||
#include "platform/types.h"
|
|
||||||
|
|
||||||
GuiFlexibleArrayControl::GuiFlexibleArrayControl()
|
|
||||||
{
|
|
||||||
mRows = 0;
|
|
||||||
mRowSpacing = 0;
|
|
||||||
mColSpacing = 0;
|
|
||||||
mIsContainer = true;
|
|
||||||
|
|
||||||
mResizing = false;
|
|
||||||
|
|
||||||
mFrozen = false;
|
|
||||||
|
|
||||||
mPadding.set(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
GuiFlexibleArrayControl::~GuiFlexibleArrayControl()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
IMPLEMENT_CONOBJECT(GuiFlexibleArrayControl);
|
|
||||||
|
|
||||||
ConsoleDocClass( GuiFlexibleArrayControl,
|
|
||||||
"@brief A container that arranges children into a grid.\n\n"
|
|
||||||
|
|
||||||
"This container maintains a 2D grid of GUI controls. If one is added, deleted, "
|
|
||||||
"or resized, then the grid is updated. The insertion order into the grid is "
|
|
||||||
"determined by the internal order of the children (ie. the order of addition).<br>"
|
|
||||||
|
|
||||||
"Children are added to the grid by row or column until they fill the assocated "
|
|
||||||
"GuiFlexibleArrayControl extent (width or height). For example, a "
|
|
||||||
"GuiFlexibleArrayControl with 10 children, and <i>fillRowFirst</i> set to "
|
|
||||||
"true may be arranged as follows:\n\n"
|
|
||||||
|
|
||||||
"<pre>\n"
|
|
||||||
"1 2 ...3... 4\n"
|
|
||||||
"..5.. 6 7 .8.\n"
|
|
||||||
"9 ....10....\n"
|
|
||||||
"</pre>\n"
|
|
||||||
|
|
||||||
"@tsexample\n"
|
|
||||||
"new GuiFlexibleArrayControl()\n"
|
|
||||||
"{\n"
|
|
||||||
" colSpacing = \"2\";\n"
|
|
||||||
" rowSpacing = \"2\";\n"
|
|
||||||
" frozen = \"0\";\n"
|
|
||||||
" padding = \"0 0 0 0\";\n"
|
|
||||||
" //Properties not specific to this control have been omitted from this example.\n"
|
|
||||||
"};\n"
|
|
||||||
"@endtsexample\n\n"
|
|
||||||
|
|
||||||
"@see GuiDynamicCtrlArrayControl\n"
|
|
||||||
"@ingroup GuiContainers"
|
|
||||||
);
|
|
||||||
|
|
||||||
// ConsoleObject...
|
|
||||||
|
|
||||||
void GuiFlexibleArrayControl::initPersistFields()
|
|
||||||
{
|
|
||||||
addField("rowCount", TypeS32, Offset( mRows, GuiFlexibleArrayControl),
|
|
||||||
"Number of rows the child controls have been arranged into. This value "
|
|
||||||
"is calculated automatically when children are added, removed or resized; "
|
|
||||||
"writing it directly has no effect.");
|
|
||||||
|
|
||||||
addField("rowSpacing", TypeS32, Offset(mRowSpacing, GuiFlexibleArrayControl),
|
|
||||||
"Spacing between rows");
|
|
||||||
|
|
||||||
addField("colSpacing", TypeS32, Offset(mColSpacing, GuiFlexibleArrayControl),
|
|
||||||
"Spacing between columns");
|
|
||||||
|
|
||||||
addField("frozen", TypeBool, Offset(mFrozen, GuiFlexibleArrayControl),
|
|
||||||
"When true, the array will not update when new children are added or in "
|
|
||||||
"response to child resize events. This is useful to prevent unnecessary "
|
|
||||||
"resizing when adding, removing or resizing a number of child controls.");
|
|
||||||
|
|
||||||
addField("padding", TypeRectSpacingI, Offset(mPadding, GuiFlexibleArrayControl),
|
|
||||||
"Padding around the top, bottom, left, and right of this control. This "
|
|
||||||
"reduces the area available for child controls.");
|
|
||||||
|
|
||||||
Parent::initPersistFields();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GuiFlexibleArrayControl::inspectPostApply()
|
|
||||||
{
|
|
||||||
resize(getPosition(), getExtent());
|
|
||||||
Parent::inspectPostApply();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GuiFlexibleArrayControl::addObject(SimObject *obj)
|
|
||||||
{
|
|
||||||
Parent::addObject(obj);
|
|
||||||
|
|
||||||
if(!mFrozen)
|
|
||||||
refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool GuiFlexibleArrayControl::resize(const Point2I &newPosition, const Point2I &newExtent)
|
|
||||||
{
|
|
||||||
if(size() == 0)
|
|
||||||
return Parent::resize(newPosition, newExtent);
|
|
||||||
|
|
||||||
if(mResizing)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
mResizing = true;
|
|
||||||
|
|
||||||
// Place each child.
|
|
||||||
S32 childcount = 0;
|
|
||||||
Point2I pos(mPadding.left, mPadding.top);
|
|
||||||
mRows = 0;
|
|
||||||
S32 rowHeight = 0;
|
|
||||||
for(S32 i = 0; i < size(); i++)
|
|
||||||
{
|
|
||||||
GuiControl *gc = dynamic_cast<GuiControl*>(operator [](i));
|
|
||||||
if(gc && gc->isVisible())
|
|
||||||
{
|
|
||||||
if(pos.x + gc->getWidth() > getExtent().x - mPadding.right)
|
|
||||||
{
|
|
||||||
pos.y += rowHeight + mRowSpacing;
|
|
||||||
pos.x = mPadding.left;
|
|
||||||
rowHeight = 0;
|
|
||||||
mRows++;
|
|
||||||
}
|
|
||||||
gc->setPosition(pos);
|
|
||||||
|
|
||||||
rowHeight = getMax(rowHeight, gc->getHeight());
|
|
||||||
|
|
||||||
pos.x += mColSpacing + gc->getWidth();
|
|
||||||
childcount++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Point2I realExtent(newExtent);
|
|
||||||
realExtent.y = pos.y + rowHeight;
|
|
||||||
realExtent.y += mPadding.bottom;
|
|
||||||
|
|
||||||
mResizing = false;
|
|
||||||
|
|
||||||
return Parent::resize(newPosition, realExtent);
|
|
||||||
}
|
|
||||||
|
|
||||||
void GuiFlexibleArrayControl::childResized(GuiControl *child)
|
|
||||||
{
|
|
||||||
Parent::childResized(child);
|
|
||||||
|
|
||||||
if ( !mFrozen )
|
|
||||||
refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GuiFlexibleArrayControl::refresh()
|
|
||||||
{
|
|
||||||
resize(getPosition(), getExtent());
|
|
||||||
}
|
|
||||||
|
|
||||||
DefineEngineMethod( GuiFlexibleArrayControl, refresh, void, (),,
|
|
||||||
"Recalculates the position and size of this control and all its children." )
|
|
||||||
{
|
|
||||||
object->refresh();
|
|
||||||
}
|
|
||||||
|
|
@ -1,67 +0,0 @@
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
// Copyright (c) 2012 Daniel Buckmaster
|
|
||||||
//
|
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
// of this software and associated documentation files (the "Software"), to
|
|
||||||
// deal in the Software without restriction, including without limitation the
|
|
||||||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
||||||
// sell copies of the Software, and to permit persons to whom the Software is
|
|
||||||
// furnished to do so, subject to the following conditions:
|
|
||||||
//
|
|
||||||
// The above copyright notice and this permission notice shall be included in
|
|
||||||
// all copies or substantial portions of the Software.
|
|
||||||
//
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
||||||
// IN THE SOFTWARE.
|
|
||||||
//-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#ifndef _GUIFLEXIBLEARRAYCTRL_H_
|
|
||||||
#define _GUIFLEXIBLEARRAYCTRL_H_
|
|
||||||
|
|
||||||
#include "gui/core/guiControl.h"
|
|
||||||
|
|
||||||
class GuiFlexibleArrayControl : public GuiControl
|
|
||||||
{
|
|
||||||
typedef GuiControl Parent;
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
GuiFlexibleArrayControl();
|
|
||||||
virtual ~GuiFlexibleArrayControl();
|
|
||||||
|
|
||||||
DECLARE_CONOBJECT(GuiFlexibleArrayControl);
|
|
||||||
DECLARE_CATEGORY( "Gui Containers" );
|
|
||||||
|
|
||||||
// ConsoleObject
|
|
||||||
static void initPersistFields();
|
|
||||||
|
|
||||||
// SimObject
|
|
||||||
void inspectPostApply();
|
|
||||||
|
|
||||||
// SimSet
|
|
||||||
void addObject(SimObject *obj);
|
|
||||||
|
|
||||||
// GuiControl
|
|
||||||
bool resize(const Point2I &newPosition, const Point2I &newExtent);
|
|
||||||
void childResized(GuiControl *child);
|
|
||||||
|
|
||||||
// GuiFlexibleArrayCtrl
|
|
||||||
void refresh();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
S32 mRows;
|
|
||||||
S32 mRowSpacing;
|
|
||||||
S32 mColSpacing;
|
|
||||||
bool mResizing;
|
|
||||||
bool mFrozen;
|
|
||||||
|
|
||||||
RectSpacingI mPadding;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // _GUIFLEXIBLEARRAYCTRL_H_
|
|
||||||
|
|
@ -199,10 +199,8 @@
|
||||||
Extent = "86 18";
|
Extent = "86 18";
|
||||||
text = "Actions";
|
text = "Actions";
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "SelectActions";
|
internalName = "SelectActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -216,40 +214,47 @@
|
||||||
text = "Build NavMesh";
|
text = "Build NavMesh";
|
||||||
command = "NavEditorGui.buildSelectedMeshes();";
|
command = "NavEditorGui.buildSelectedMeshes();";
|
||||||
};
|
};
|
||||||
new GuiCheckboxCtrl() {
|
new GuiControl() {
|
||||||
internalName = "BackgroundBuildButton";
|
profile = "GuiDefaultProfile";
|
||||||
text = "Background";
|
Extent = "182 20";
|
||||||
groupNum = "-1";
|
position = "0 20";
|
||||||
buttonType = "ToggleButton";
|
|
||||||
useMouseEvents = "0";
|
new GuiCheckboxCtrl() {
|
||||||
extent = "75 20";
|
internalName = "BackgroundBuildButton";
|
||||||
minExtent = "8 2";
|
text = "Background";
|
||||||
profile = "GuiCheckBoxProfile";
|
groupNum = "-1";
|
||||||
visible = "1";
|
buttonType = "ToggleButton";
|
||||||
active = "1";
|
useMouseEvents = "0";
|
||||||
variable = "$Nav::Editor::backgroundBuild";
|
extent = "75 20";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
minExtent = "8 2";
|
||||||
hovertime = "1000";
|
profile = "GuiCheckBoxProfile";
|
||||||
isContainer = "0";
|
visible = "1";
|
||||||
canSave = "1";
|
active = "1";
|
||||||
canSaveDynamicFields = "0";
|
variable = "NavEditorGui.backgroundBuild";
|
||||||
};
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
new GuiCheckboxCtrl() {
|
hovertime = "1000";
|
||||||
internalName = "SaveIntermediatesButton";
|
isContainer = "0";
|
||||||
text = "Keep intermediates";
|
canSave = "1";
|
||||||
groupNum = "-1";
|
canSaveDynamicFields = "0";
|
||||||
buttonType = "ToggleButton";
|
};
|
||||||
useMouseEvents = "0";
|
new GuiCheckboxCtrl() {
|
||||||
extent = "105 20";
|
position = "75 0";
|
||||||
profile = "GuiCheckBoxProfile";
|
internalName = "SaveIntermediatesButton";
|
||||||
visible = "1";
|
text = "Keep intermediates";
|
||||||
active = "1";
|
groupNum = "-1";
|
||||||
variable = "$Nav::Editor::saveIntermediates";
|
buttonType = "ToggleButton";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
useMouseEvents = "0";
|
||||||
hovertime = "1000";
|
extent = "105 20";
|
||||||
isContainer = "0";
|
profile = "GuiCheckBoxProfile";
|
||||||
canSave = "1";
|
visible = "1";
|
||||||
canSaveDynamicFields = "0";
|
active = "1";
|
||||||
|
variable = "NavEditorGui.saveIntermediates";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
new GuiCheckboxCtrl() {
|
new GuiCheckboxCtrl() {
|
||||||
internalName = "BuildSoundButton";
|
internalName = "BuildSoundButton";
|
||||||
|
|
@ -262,7 +267,7 @@
|
||||||
profile = "GuiCheckBoxProfile";
|
profile = "GuiCheckBoxProfile";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "1";
|
active = "1";
|
||||||
variable = "$Nav::Editor::playSoundWhenDone";
|
variable = "NavEditorGui.playSoundWhenDone";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
|
|
@ -270,10 +275,8 @@
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "LinkActions";
|
internalName = "LinkActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -288,10 +291,8 @@
|
||||||
command = "NavEditorGui.buildLinks();";
|
command = "NavEditorGui.buildLinks();";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "CoverActions";
|
internalName = "CoverActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -315,10 +316,8 @@
|
||||||
command = "NavEditorGui.deleteCoverPoints();";
|
command = "NavEditorGui.deleteCoverPoints();";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TileActions";
|
internalName = "TileActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -333,10 +332,8 @@
|
||||||
command = "NavEditorGui.buildTile();";
|
command = "NavEditorGui.buildTile();";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TestActions";
|
internalName = "TestActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -350,41 +347,53 @@
|
||||||
text = "Spawn";
|
text = "Spawn";
|
||||||
command = "NavEditorGui.spawnPlayer();";
|
command = "NavEditorGui.spawnPlayer();";
|
||||||
};
|
};
|
||||||
new GuiButtonCtrl() {
|
new GuiControl() {
|
||||||
Profile = "GuiButtonProfile";
|
profile = "GuiDefaultProfile";
|
||||||
buttonType = "PushButton";
|
Extent = "190 18";
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
new GuiButtonCtrl() {
|
||||||
Extent = "90 18";
|
Profile = "GuiButtonProfile";
|
||||||
text = "Delete";
|
buttonType = "PushButton";
|
||||||
command = "NavEditorGui.getPlayer().delete();";
|
HorizSizing = "right";
|
||||||
|
VertSizing = "bottom";
|
||||||
|
Extent = "90 18";
|
||||||
|
text = "Delete";
|
||||||
|
command = "NavEditorGui.getPlayer().delete();";
|
||||||
|
};
|
||||||
|
new GuiButtonCtrl() {
|
||||||
|
position = "100 0";
|
||||||
|
Profile = "GuiButtonProfile";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
HorizSizing = "right";
|
||||||
|
VertSizing = "bottom";
|
||||||
|
Extent = "90 18";
|
||||||
|
text = "Find cover";
|
||||||
|
command = "NavEditorGui.findCover();";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
new GuiButtonCtrl() {
|
new GuiControl() {
|
||||||
Profile = "GuiButtonProfile";
|
profile = "GuiDefaultProfile";
|
||||||
buttonType = "PushButton";
|
Extent = "190 18";
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
new GuiButtonCtrl() {
|
||||||
Extent = "90 18";
|
Profile = "GuiButtonProfile";
|
||||||
text = "Find cover";
|
buttonType = "PushButton";
|
||||||
command = "NavEditorGui.findCover();";
|
HorizSizing = "right";
|
||||||
};
|
VertSizing = "bottom";
|
||||||
new GuiButtonCtrl() {
|
Extent = "90 18";
|
||||||
Profile = "GuiButtonProfile";
|
text = "Follow";
|
||||||
buttonType = "PushButton";
|
command = "NavEditorGui.followObject();";
|
||||||
HorizSizing = "right";
|
};
|
||||||
VertSizing = "bottom";
|
new GuiButtonCtrl() {
|
||||||
Extent = "90 18";
|
position = "100 0";
|
||||||
text = "Follow";
|
Profile = "GuiButtonProfile";
|
||||||
command = "NavEditorGui.followObject();";
|
buttonType = "PushButton";
|
||||||
};
|
HorizSizing = "right";
|
||||||
new GuiButtonCtrl() {
|
VertSizing = "bottom";
|
||||||
Profile = "GuiButtonProfile";
|
Extent = "90 18";
|
||||||
buttonType = "PushButton";
|
text = "Stop";
|
||||||
HorizSizing = "right";
|
command = "NavEditorGui.getPlayer().stop();";
|
||||||
VertSizing = "bottom";
|
};
|
||||||
Extent = "90 18";
|
|
||||||
text = "Stop";
|
|
||||||
command = "NavEditorGui.getPlayer().stop();";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -460,17 +469,15 @@
|
||||||
dividerMargin = "5";
|
dividerMargin = "5";
|
||||||
};
|
};
|
||||||
|
|
||||||
new GuiFlexibleArrayControl() {
|
new GuiStackControl() {
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "LinkProperties";
|
internalName = "LinkProperties";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "186 64";
|
extent = "186 64";
|
||||||
padding = "2 2 2 2";
|
padding = "2 2 2 2";
|
||||||
|
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkWalkFlag";
|
internalName = "LinkWalkFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Walk";
|
text = " Walk";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -482,15 +489,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "This link is just ordinary flat ground.";
|
toolTip = "This link is just ordinary flat ground.";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkJumpFlag";
|
internalName = "LinkJumpFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Jump";
|
text = " Jump";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -502,15 +509,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Does this link require a jump?";
|
toolTip = "Does this link require a jump?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkDropFlag";
|
internalName = "LinkDropFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Drop";
|
text = " Drop";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -522,15 +529,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Does this link involve a significant drop?";
|
toolTip = "Does this link involve a significant drop?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkLedgeFlag";
|
internalName = "LinkLedgeFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Ledge";
|
text = " Ledge";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -542,15 +549,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Should the character jump at the next ledge?";
|
toolTip = "Should the character jump at the next ledge?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkClimbFlag";
|
internalName = "LinkClimbFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Climb";
|
text = " Climb";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -562,15 +569,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Does this link involve climbing?";
|
toolTip = "Does this link involve climbing?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkTeleportFlag";
|
internalName = "LinkTeleportFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Teleport";
|
text = " Teleport";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -582,16 +589,14 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Is this link a teleporter?";
|
toolTip = "Is this link a teleporter?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl() {
|
new GuiStackControl() {
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TileProperties";
|
internalName = "TileProperties";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "186 64";
|
extent = "186 64";
|
||||||
|
|
@ -613,7 +618,7 @@
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
variable = "$Nav::Editor::renderInput";
|
variable = "$Nav::Editor::renderInput";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
text = " Display voxels";
|
text = " Display voxels";
|
||||||
|
|
@ -631,24 +636,22 @@
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
variable = "$Nav::Editor::renderVoxels";
|
variable = "$Nav::Editor::renderVoxels";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl() {
|
new GuiStackControl() {
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TestProperties";
|
internalName = "TestProperties";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "186 64";
|
extent = "186 64";
|
||||||
padding = "2 2 2 2";
|
padding = "2 2 2 2";
|
||||||
|
|
||||||
new GuiTextCtrl() {
|
new GuiTextCtrl() {
|
||||||
text = "Cover";
|
text = "Cover";
|
||||||
profile = "GuiTextProfile";
|
profile = "GuiTextProfile";
|
||||||
extent = "180 20";
|
extent = "180 20";
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "CoverRadius";
|
internalName = "CoverRadius";
|
||||||
text = "10";
|
text = "10";
|
||||||
|
|
@ -657,9 +660,9 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Radius for cover-finding.";
|
toolTip = "Radius for cover-finding.";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "CoverPosition";
|
internalName = "CoverPosition";
|
||||||
text = "LocalClientConnection.getControlObject().getPosition();";
|
text = "LocalClientConnection.getControlObject().getPosition();";
|
||||||
profile = "GuiTextEditProfile";
|
profile = "GuiTextEditProfile";
|
||||||
|
|
@ -667,15 +670,15 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Position to find cover from.";
|
toolTip = "Position to find cover from.";
|
||||||
};
|
};
|
||||||
new GuiTextCtrl() {
|
new GuiTextCtrl() {
|
||||||
text = "Follow";
|
text = "Follow";
|
||||||
profile = "GuiTextProfile";
|
profile = "GuiTextProfile";
|
||||||
extent = "180 20";
|
extent = "180 20";
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "FollowRadius";
|
internalName = "FollowRadius";
|
||||||
text = "1";
|
text = "1";
|
||||||
|
|
@ -684,9 +687,9 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Radius for following.";
|
toolTip = "Radius for following.";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "FollowObject";
|
internalName = "FollowObject";
|
||||||
text = "LocalClientConnection.player";
|
text = "LocalClientConnection.player";
|
||||||
profile = "GuiTextEditProfile";
|
profile = "GuiTextEditProfile";
|
||||||
|
|
@ -694,18 +697,18 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Object to follow.";
|
toolTip = "Object to follow.";
|
||||||
};
|
};
|
||||||
new GuiTextCtrl() {
|
new GuiTextCtrl() {
|
||||||
text = "Movement";
|
text = "Movement";
|
||||||
profile = "GuiTextProfile";
|
profile = "GuiTextProfile";
|
||||||
extent = "180 20";
|
extent = "180 20";
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkWalkFlag";
|
internalName = "LinkWalkFlag";
|
||||||
class = "NavMeshTestFlagButton";
|
class = "NavMeshTestFlagButton";
|
||||||
text = " Walk";
|
text = " Walk";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
|
||||||
|
|
@ -199,10 +199,8 @@
|
||||||
Extent = "86 18";
|
Extent = "86 18";
|
||||||
text = "Actions";
|
text = "Actions";
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "SelectActions";
|
internalName = "SelectActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -216,40 +214,47 @@
|
||||||
text = "Build NavMesh";
|
text = "Build NavMesh";
|
||||||
command = "NavEditorGui.buildSelectedMeshes();";
|
command = "NavEditorGui.buildSelectedMeshes();";
|
||||||
};
|
};
|
||||||
new GuiCheckboxCtrl() {
|
new GuiControl() {
|
||||||
internalName = "BackgroundBuildButton";
|
profile = "GuiDefaultProfile";
|
||||||
text = "Background";
|
Extent = "182 20";
|
||||||
groupNum = "-1";
|
position = "0 20";
|
||||||
buttonType = "ToggleButton";
|
|
||||||
useMouseEvents = "0";
|
new GuiCheckboxCtrl() {
|
||||||
extent = "75 20";
|
internalName = "BackgroundBuildButton";
|
||||||
minExtent = "8 2";
|
text = "Background";
|
||||||
profile = "GuiCheckBoxProfile";
|
groupNum = "-1";
|
||||||
visible = "1";
|
buttonType = "ToggleButton";
|
||||||
active = "1";
|
useMouseEvents = "0";
|
||||||
variable = "$Nav::Editor::backgroundBuild";
|
extent = "75 20";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
minExtent = "8 2";
|
||||||
hovertime = "1000";
|
profile = "GuiCheckBoxProfile";
|
||||||
isContainer = "0";
|
visible = "1";
|
||||||
canSave = "1";
|
active = "1";
|
||||||
canSaveDynamicFields = "0";
|
variable = "NavEditorGui.backgroundBuild";
|
||||||
};
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
new GuiCheckboxCtrl() {
|
hovertime = "1000";
|
||||||
internalName = "SaveIntermediatesButton";
|
isContainer = "0";
|
||||||
text = "Keep intermediates";
|
canSave = "1";
|
||||||
groupNum = "-1";
|
canSaveDynamicFields = "0";
|
||||||
buttonType = "ToggleButton";
|
};
|
||||||
useMouseEvents = "0";
|
new GuiCheckboxCtrl() {
|
||||||
extent = "105 20";
|
position = "75 0";
|
||||||
profile = "GuiCheckBoxProfile";
|
internalName = "SaveIntermediatesButton";
|
||||||
visible = "1";
|
text = "Keep intermediates";
|
||||||
active = "1";
|
groupNum = "-1";
|
||||||
variable = "$Nav::Editor::saveIntermediates";
|
buttonType = "ToggleButton";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
useMouseEvents = "0";
|
||||||
hovertime = "1000";
|
extent = "105 20";
|
||||||
isContainer = "0";
|
profile = "GuiCheckBoxProfile";
|
||||||
canSave = "1";
|
visible = "1";
|
||||||
canSaveDynamicFields = "0";
|
active = "1";
|
||||||
|
variable = "NavEditorGui.saveIntermediates";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
hovertime = "1000";
|
||||||
|
isContainer = "0";
|
||||||
|
canSave = "1";
|
||||||
|
canSaveDynamicFields = "0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
new GuiCheckboxCtrl() {
|
new GuiCheckboxCtrl() {
|
||||||
internalName = "BuildSoundButton";
|
internalName = "BuildSoundButton";
|
||||||
|
|
@ -262,7 +267,7 @@
|
||||||
profile = "GuiCheckBoxProfile";
|
profile = "GuiCheckBoxProfile";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "1";
|
active = "1";
|
||||||
variable = "$Nav::Editor::playSoundWhenDone";
|
variable = "NavEditorGui.playSoundWhenDone";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
|
|
@ -270,10 +275,8 @@
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "LinkActions";
|
internalName = "LinkActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -288,10 +291,8 @@
|
||||||
command = "NavEditorGui.buildLinks();";
|
command = "NavEditorGui.buildLinks();";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "CoverActions";
|
internalName = "CoverActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -315,10 +316,8 @@
|
||||||
command = "NavEditorGui.deleteCoverPoints();";
|
command = "NavEditorGui.deleteCoverPoints();";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TileActions";
|
internalName = "TileActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -333,10 +332,8 @@
|
||||||
command = "NavEditorGui.buildTile();";
|
command = "NavEditorGui.buildTile();";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl()
|
new GuiStackControl()
|
||||||
{
|
{
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TestActions";
|
internalName = "TestActions";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "190 64";
|
extent = "190 64";
|
||||||
|
|
@ -350,41 +347,53 @@
|
||||||
text = "Spawn";
|
text = "Spawn";
|
||||||
command = "NavEditorGui.spawnPlayer();";
|
command = "NavEditorGui.spawnPlayer();";
|
||||||
};
|
};
|
||||||
new GuiButtonCtrl() {
|
new GuiControl() {
|
||||||
Profile = "GuiButtonProfile";
|
profile = "GuiDefaultProfile";
|
||||||
buttonType = "PushButton";
|
Extent = "190 18";
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
new GuiButtonCtrl() {
|
||||||
Extent = "90 18";
|
Profile = "GuiButtonProfile";
|
||||||
text = "Delete";
|
buttonType = "PushButton";
|
||||||
command = "NavEditorGui.getPlayer().delete();";
|
HorizSizing = "right";
|
||||||
|
VertSizing = "bottom";
|
||||||
|
Extent = "90 18";
|
||||||
|
text = "Delete";
|
||||||
|
command = "NavEditorGui.getPlayer().delete();";
|
||||||
|
};
|
||||||
|
new GuiButtonCtrl() {
|
||||||
|
position = "100 0";
|
||||||
|
Profile = "GuiButtonProfile";
|
||||||
|
buttonType = "PushButton";
|
||||||
|
HorizSizing = "right";
|
||||||
|
VertSizing = "bottom";
|
||||||
|
Extent = "90 18";
|
||||||
|
text = "Find cover";
|
||||||
|
command = "NavEditorGui.findCover();";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
new GuiButtonCtrl() {
|
new GuiControl() {
|
||||||
Profile = "GuiButtonProfile";
|
profile = "GuiDefaultProfile";
|
||||||
buttonType = "PushButton";
|
Extent = "190 18";
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "bottom";
|
new GuiButtonCtrl() {
|
||||||
Extent = "90 18";
|
Profile = "GuiButtonProfile";
|
||||||
text = "Find cover";
|
buttonType = "PushButton";
|
||||||
command = "NavEditorGui.findCover();";
|
HorizSizing = "right";
|
||||||
};
|
VertSizing = "bottom";
|
||||||
new GuiButtonCtrl() {
|
Extent = "90 18";
|
||||||
Profile = "GuiButtonProfile";
|
text = "Follow";
|
||||||
buttonType = "PushButton";
|
command = "NavEditorGui.followObject();";
|
||||||
HorizSizing = "right";
|
};
|
||||||
VertSizing = "bottom";
|
new GuiButtonCtrl() {
|
||||||
Extent = "90 18";
|
position = "100 0";
|
||||||
text = "Follow";
|
Profile = "GuiButtonProfile";
|
||||||
command = "NavEditorGui.followObject();";
|
buttonType = "PushButton";
|
||||||
};
|
HorizSizing = "right";
|
||||||
new GuiButtonCtrl() {
|
VertSizing = "bottom";
|
||||||
Profile = "GuiButtonProfile";
|
Extent = "90 18";
|
||||||
buttonType = "PushButton";
|
text = "Stop";
|
||||||
HorizSizing = "right";
|
command = "NavEditorGui.getPlayer().stop();";
|
||||||
VertSizing = "bottom";
|
};
|
||||||
Extent = "90 18";
|
|
||||||
text = "Stop";
|
|
||||||
command = "NavEditorGui.getPlayer().stop();";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -460,17 +469,15 @@
|
||||||
dividerMargin = "5";
|
dividerMargin = "5";
|
||||||
};
|
};
|
||||||
|
|
||||||
new GuiFlexibleArrayControl() {
|
new GuiStackControl() {
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "LinkProperties";
|
internalName = "LinkProperties";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "186 64";
|
extent = "186 64";
|
||||||
padding = "2 2 2 2";
|
padding = "2 2 2 2";
|
||||||
|
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkWalkFlag";
|
internalName = "LinkWalkFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Walk";
|
text = " Walk";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -482,15 +489,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "This link is just ordinary flat ground.";
|
toolTip = "This link is just ordinary flat ground.";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkJumpFlag";
|
internalName = "LinkJumpFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Jump";
|
text = " Jump";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -502,15 +509,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Does this link require a jump?";
|
toolTip = "Does this link require a jump?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkDropFlag";
|
internalName = "LinkDropFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Drop";
|
text = " Drop";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -522,15 +529,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Does this link involve a significant drop?";
|
toolTip = "Does this link involve a significant drop?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkLedgeFlag";
|
internalName = "LinkLedgeFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Ledge";
|
text = " Ledge";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -542,15 +549,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Should the character jump at the next ledge?";
|
toolTip = "Should the character jump at the next ledge?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkClimbFlag";
|
internalName = "LinkClimbFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Climb";
|
text = " Climb";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -562,15 +569,15 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Does this link involve climbing?";
|
toolTip = "Does this link involve climbing?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkTeleportFlag";
|
internalName = "LinkTeleportFlag";
|
||||||
class = "NavMeshLinkFlagButton";
|
class = "NavMeshLinkFlagButton";
|
||||||
text = " Teleport";
|
text = " Teleport";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
@ -582,16 +589,14 @@
|
||||||
visible = "1";
|
visible = "1";
|
||||||
active = "0";
|
active = "0";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Is this link a teleporter?";
|
toolTip = "Is this link a teleporter?";
|
||||||
hovertime = "1000";
|
hovertime = "1000";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl() {
|
new GuiStackControl() {
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TileProperties";
|
internalName = "TileProperties";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "186 64";
|
extent = "186 64";
|
||||||
|
|
@ -613,7 +618,7 @@
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
variable = "$Nav::Editor::renderInput";
|
variable = "$Nav::Editor::renderInput";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
text = " Display voxels";
|
text = " Display voxels";
|
||||||
|
|
@ -631,24 +636,22 @@
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
canSave = "1";
|
canSave = "1";
|
||||||
canSaveDynamicFields = "0";
|
canSaveDynamicFields = "0";
|
||||||
variable = "$Nav::Editor::renderVoxels";
|
variable = "$Nav::Editor::renderVoxels";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiFlexibleArrayControl() {
|
new GuiStackControl() {
|
||||||
colSpacing = 2;
|
|
||||||
rowSpacing = 2;
|
|
||||||
internalName = "TestProperties";
|
internalName = "TestProperties";
|
||||||
position = "7 21";
|
position = "7 21";
|
||||||
extent = "186 64";
|
extent = "186 64";
|
||||||
padding = "2 2 2 2";
|
padding = "2 2 2 2";
|
||||||
|
|
||||||
new GuiTextCtrl() {
|
new GuiTextCtrl() {
|
||||||
text = "Cover";
|
text = "Cover";
|
||||||
profile = "GuiTextProfile";
|
profile = "GuiTextProfile";
|
||||||
extent = "180 20";
|
extent = "180 20";
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "CoverRadius";
|
internalName = "CoverRadius";
|
||||||
text = "10";
|
text = "10";
|
||||||
|
|
@ -657,9 +660,9 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Radius for cover-finding.";
|
toolTip = "Radius for cover-finding.";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "CoverPosition";
|
internalName = "CoverPosition";
|
||||||
text = "LocalClientConnection.getControlObject().getPosition();";
|
text = "LocalClientConnection.getControlObject().getPosition();";
|
||||||
profile = "GuiTextEditProfile";
|
profile = "GuiTextEditProfile";
|
||||||
|
|
@ -667,15 +670,15 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Position to find cover from.";
|
toolTip = "Position to find cover from.";
|
||||||
};
|
};
|
||||||
new GuiTextCtrl() {
|
new GuiTextCtrl() {
|
||||||
text = "Follow";
|
text = "Follow";
|
||||||
profile = "GuiTextProfile";
|
profile = "GuiTextProfile";
|
||||||
extent = "180 20";
|
extent = "180 20";
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "FollowRadius";
|
internalName = "FollowRadius";
|
||||||
text = "1";
|
text = "1";
|
||||||
|
|
@ -684,9 +687,9 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Radius for following.";
|
toolTip = "Radius for following.";
|
||||||
};
|
};
|
||||||
new GuiTextEditCtrl() {
|
new GuiTextEditCtrl() {
|
||||||
internalName = "FollowObject";
|
internalName = "FollowObject";
|
||||||
text = "LocalClientConnection.player";
|
text = "LocalClientConnection.player";
|
||||||
profile = "GuiTextEditProfile";
|
profile = "GuiTextEditProfile";
|
||||||
|
|
@ -694,18 +697,18 @@
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
toolTip = "Object to follow.";
|
toolTip = "Object to follow.";
|
||||||
};
|
};
|
||||||
new GuiTextCtrl() {
|
new GuiTextCtrl() {
|
||||||
text = "Movement";
|
text = "Movement";
|
||||||
profile = "GuiTextProfile";
|
profile = "GuiTextProfile";
|
||||||
extent = "180 20";
|
extent = "180 20";
|
||||||
minExtent = "8 2";
|
minExtent = "8 2";
|
||||||
visible = "1";
|
visible = "1";
|
||||||
};
|
};
|
||||||
new GuiCheckBoxCtrl() {
|
new GuiCheckBoxCtrl() {
|
||||||
internalName = "LinkWalkFlag";
|
internalName = "LinkWalkFlag";
|
||||||
class = "NavMeshTestFlagButton";
|
class = "NavMeshTestFlagButton";
|
||||||
text = " Walk";
|
text = " Walk";
|
||||||
buttonType = "ToggleButton";
|
buttonType = "ToggleButton";
|
||||||
useMouseEvents = "0";
|
useMouseEvents = "0";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue