mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 05:45:40 +00:00
Profile editor for the meshRoad object
credit to Ryan Mounts (RDM) found originally at http://www.garagegames.com/community/forums/viewthread/105391
This commit is contained in:
parent
76c5e30869
commit
973fd44c6a
12 changed files with 2501 additions and 201 deletions
|
|
@ -59,6 +59,7 @@ function initializeMeshRoadEditor()
|
|||
%map.bindCmd( keyboard, "z", "MeshRoadEditorShowSplineBtn.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "x", "MeshRoadEditorWireframeBtn.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "v", "MeshRoadEditorShowRoadBtn.performClick();", "" );
|
||||
%map.bindCmd( keyboard, "p", "MeshRoadEditorShowProfileBtn.performClick();", "");
|
||||
MeshRoadEditorPlugin.map = %map;
|
||||
|
||||
MeshRoadEditorPlugin.initSettings();
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ $MeshRoad::wireframe = true;
|
|||
$MeshRoad::showSpline = true;
|
||||
$MeshRoad::showReflectPlane = false;
|
||||
$MeshRoad::showRoad = true;
|
||||
$MeshRoad::showRoadProfile = false;
|
||||
|
||||
$MeshRoad::breakAngle = 3.0;
|
||||
|
||||
function MeshRoadEditorGui::onWake( %this )
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
};
|
||||
new GuiDynamicCtrlArrayControl(){
|
||||
Position = "116 3";
|
||||
extent = "111 32";
|
||||
extent = "146 32";
|
||||
colCount = "31";
|
||||
colSize = "29";
|
||||
rowCount = "1";
|
||||
|
|
@ -103,6 +103,29 @@
|
|||
buttonType = "ToggleButton";
|
||||
useMouseEvents = "0";
|
||||
useInactiveState = "0";
|
||||
};
|
||||
new GuiBitmapButtonCtrl(MeshRoadEditorShowProfileBtn) {
|
||||
canSaveDynamicFields = "0";
|
||||
Enabled = "1";
|
||||
isContainer = "0";
|
||||
Profile = "GuiDefalutProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
Position = "89 3";
|
||||
Extent = "29 27";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
isDecoy = "0";
|
||||
Visible = "1";
|
||||
Variable = "$MeshRoad::showRoadProfile";
|
||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
toolTip = "Show Road Profile (P)";
|
||||
bitmap = "tools/worldEditor/images/road-river/menubar/show-profile";
|
||||
groupNum = "-1";
|
||||
buttonType = "ToggleButton";
|
||||
useMouseEvents = "0";
|
||||
useInactiveState = "0";
|
||||
};
|
||||
};
|
||||
new GuiControl(MeshRoadDefaultWidthTextEditContainer) {
|
||||
|
|
@ -111,7 +134,7 @@
|
|||
Profile = "ToolsGuiTransparentProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "230 5";
|
||||
position = "265 5";
|
||||
Extent = "120 50";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
|
|
@ -189,7 +212,7 @@
|
|||
Profile = "ToolsGuiTransparentProfile";
|
||||
HorizSizing = "right";
|
||||
VertSizing = "bottom";
|
||||
position = "360 5";
|
||||
position = "395 5";
|
||||
Extent = "120 50";
|
||||
MinExtent = "8 2";
|
||||
canSave = "1";
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 708 B |
Loading…
Add table
Add a link
Reference in a new issue