Adds some basic, common materials to the editor so some starting point is always on-hand, as well as hook the BlankRoom starting editor level up to use them.
Added a check so if no levels are found from other modules, the default ui module will prompt the user to launch the editor to the base editor level and begin editing or return to main menu if tools are present, or inform them to double-check that there are modules with gameplay/levels and return them to the main menu in no tools available. Also set it up so if the editor is launched while a mission isn't running, it'll automatically load to the base editor level and set up a default camera object. This way editing can be done even if no level is currently loaded.
BIN
Templates/BaseGame/game/tools/base/images/512_black.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
Templates/BaseGame/game/tools/base/images/512_blue.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
Templates/BaseGame/game/tools/base/images/512_forestgreen.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
BIN
Templates/BaseGame/game/tools/base/images/512_green.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
Templates/BaseGame/game/tools/base/images/512_grey.png
Normal file
|
After Width: | Height: | Size: 4 KiB |
BIN
Templates/BaseGame/game/tools/base/images/512_grey_base.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
BIN
Templates/BaseGame/game/tools/base/images/512_orange_lines.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
Templates/BaseGame/game/tools/base/images/512_red.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
Templates/BaseGame/game/tools/base/images/black.png
Normal file
|
After Width: | Height: | Size: 118 B |
BIN
Templates/BaseGame/game/tools/base/images/gray.png
Normal file
|
After Width: | Height: | Size: 126 B |
80
Templates/BaseGame/game/tools/base/images/materials.cs
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Torque
|
||||
// Copyright GarageGames, LLC 2011
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
singleton CubemapData( BlankSkyCubemap )
|
||||
{
|
||||
cubeFace[0] = "./skybox_1";
|
||||
cubeFace[1] = "./skybox_2";
|
||||
cubeFace[2] = "./skybox_3";
|
||||
cubeFace[3] = "./skybox_4";
|
||||
cubeFace[4] = "./skybox_5";
|
||||
cubeFace[5] = "./skybox_6";
|
||||
};
|
||||
|
||||
singleton Material( BlankSkyMat )
|
||||
{
|
||||
cubemap = BlankSkyCubemap;
|
||||
isSky = true;
|
||||
};
|
||||
|
||||
singleton Material(White)
|
||||
{
|
||||
diffuseMap[0] = "./white.png";
|
||||
};
|
||||
|
||||
singleton Material(Gray)
|
||||
{
|
||||
diffuseMap[0] = "./gray.png";
|
||||
};
|
||||
|
||||
singleton Material(Black)
|
||||
{
|
||||
diffuseMap[0] = "./black.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_Black)
|
||||
{
|
||||
diffuseMap[0] = "./512_black.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_ForestGreen)
|
||||
{
|
||||
diffuseMap[0] = "./512_forestgreen.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_ForestGreen_Lines)
|
||||
{
|
||||
diffuseMap[0] = "./512_forestgreen_lines.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_Green)
|
||||
{
|
||||
diffuseMap[0] = "./512_green.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_Grey)
|
||||
{
|
||||
diffuseMap[0] = "./512_grey.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_Grey_Base)
|
||||
{
|
||||
diffuseMap[0] = "./512_grey_base.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_Orange)
|
||||
{
|
||||
diffuseMap[0] = "./512_orange.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_Orange_Lines)
|
||||
{
|
||||
diffuseMap[0] = "./512_orange_lines.png";
|
||||
};
|
||||
|
||||
singleton Material(Grid_512_Red)
|
||||
{
|
||||
diffuseMap[0] = "./512_red.png";
|
||||
};
|
||||
7
Templates/BaseGame/game/tools/base/images/sky_skybox.dml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
skybox_1
|
||||
skybox_2
|
||||
skybox_3
|
||||
skybox_4
|
||||
skybox_5
|
||||
skybox_6
|
||||
skybox_6
|
||||
BIN
Templates/BaseGame/game/tools/base/images/skybox_1.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
Templates/BaseGame/game/tools/base/images/skybox_2.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
Templates/BaseGame/game/tools/base/images/skybox_3.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
Templates/BaseGame/game/tools/base/images/skybox_4.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
Templates/BaseGame/game/tools/base/images/skybox_5.jpg
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
Templates/BaseGame/game/tools/base/images/skybox_6.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
Templates/BaseGame/game/tools/base/images/white.png
Normal file
|
After Width: | Height: | Size: 121 B |
|
|
@ -1,5 +0,0 @@
|
|||
singleton Material(DefaultConvexShapeMat)
|
||||
{
|
||||
mapTo = "unmapped_mat";
|
||||
diffuseMap[0] = "./512_orange.png";
|
||||
};
|
||||
|
|
@ -201,7 +201,7 @@ function ConvexEditorPlugin::onSaveMission( %this, %missionFile )
|
|||
function ConvexEditorPlugin::initSettings( %this )
|
||||
{
|
||||
EditorSettings.beginGroup( "ConvexEditor", true );
|
||||
EditorSettings.setDefaultValue( "MaterialName", "DefaultConvexShapeMat" );
|
||||
EditorSettings.setDefaultValue( "MaterialName", "Grid_512_Orange" );
|
||||
EditorSettings.endGroup();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,42 +1,57 @@
|
|||
//--- OBJECT WRITE BEGIN ---
|
||||
new SimGroup(MissionGroup) {
|
||||
canSave = "1";
|
||||
canSaveDynamicFields = "1";
|
||||
cdTrack = "2";
|
||||
CTF_scoreLimit = "5";
|
||||
Enabled = "1";
|
||||
enabled = "1";
|
||||
musicTrack = "lush";
|
||||
|
||||
new LevelInfo(theLevelInfo) {
|
||||
new LevelInfo(TheLevelInfo) {
|
||||
nearClip = "0.1";
|
||||
visibleDistance = "1000";
|
||||
visibleGhostDistance = "0";
|
||||
decalBias = "0.0015";
|
||||
fogColor = "0.6 0.6 0.7 1";
|
||||
fogDensity = "0";
|
||||
fogDensityOffset = "700";
|
||||
fogAtmosphereHeight = "0";
|
||||
canvasClearColor = "0 0 0 255";
|
||||
canSaveDynamicFields = "1";
|
||||
ambientLightBlendPhase = "1";
|
||||
ambientLightBlendCurve = "0 0 -1 -1";
|
||||
advancedLightmapSupport = "0";
|
||||
soundAmbience = "AudioAmbienceDefault";
|
||||
soundDistanceModel = "Linear";
|
||||
canSave = "1";
|
||||
canSaveDynamicFields = "1";
|
||||
desc0 = "A blank room ready to be populated with Torque objects. Guns, anyone?";
|
||||
enabled = "1";
|
||||
levelName = "Blank Room";
|
||||
desc0 = "A blank room ready to be populated with Torque objects.\n\nGuns, anyone?";
|
||||
Enabled = "1";
|
||||
};
|
||||
new SkyBox(theSky) {
|
||||
canSaveDynamicFields = "1";
|
||||
Position = "0 0 0";
|
||||
rotation = "1 0 0 0";
|
||||
scale = "1 1 1";
|
||||
Material = "BlackSkyMat";
|
||||
Material = "BlankSkyMat";
|
||||
drawBottom = "0";
|
||||
fogBandHeight = "0";
|
||||
};
|
||||
new Sun(theSun) {
|
||||
canSaveDynamicFields = "1";
|
||||
Position = "0 0 0";
|
||||
position = "0 0 0";
|
||||
rotation = "1 0 0 0";
|
||||
scale = "1 1 1";
|
||||
canSave = "1";
|
||||
canSaveDynamicFields = "1";
|
||||
};
|
||||
new Sun(theSun) {
|
||||
azimuth = "230.396";
|
||||
elevation = "45";
|
||||
color = "0.968628 0.901961 0.901961 1";
|
||||
ambient = "0.078431 0.113725 0.156863 1";
|
||||
ambient = "0.337255 0.533333 0.619608 1";
|
||||
brightness = "1";
|
||||
castShadows = "1";
|
||||
staticRefreshFreq = "250";
|
||||
dynamicRefreshFreq = "8";
|
||||
coronaEnabled = "1";
|
||||
coronaScale = "0.5";
|
||||
coronaTint = "1 1 1 1";
|
||||
coronaUseLightColor = "1";
|
||||
flareScale = "1";
|
||||
attenuationRatio = "0 1 1";
|
||||
shadowType = "PSSM";
|
||||
texSize = "1024";
|
||||
|
|
@ -47,47 +62,36 @@ new SimGroup(MissionGroup) {
|
|||
logWeight = "0.9";
|
||||
fadeStartDistance = "0";
|
||||
lastSplitTerrainOnly = "0";
|
||||
splitFadeDistances = "1 1 1 1";
|
||||
representedInLightmap = "0";
|
||||
shadowDarkenColor = "0 0 0 -1";
|
||||
includeLightmappedGeometryInShadow = "0";
|
||||
position = "0 0 0";
|
||||
rotation = "1 0 0 0";
|
||||
scale = "1 1 1";
|
||||
canSave = "1";
|
||||
canSaveDynamicFields = "1";
|
||||
bias = "0.1";
|
||||
Blur = "1";
|
||||
Enabled = "1";
|
||||
enabled = "1";
|
||||
height = "1024";
|
||||
lightBleedFactor = "0.8";
|
||||
minVariance = "0";
|
||||
pointShadowType = "PointShadowType_Paraboloid";
|
||||
shadowBox = "-100 -100 -100 100 100 100";
|
||||
splitFadeDistances = "1 1 1 1";
|
||||
width = "3072";
|
||||
};
|
||||
new SimGroup(PlayerDropPoints) {
|
||||
new GroundPlane() {
|
||||
squareSize = "128";
|
||||
scaleU = "25";
|
||||
scaleV = "25";
|
||||
Material = "Grid_512_Grey";
|
||||
canSave = "1";
|
||||
canSaveDynamicFields = "1";
|
||||
Enabled = "1";
|
||||
|
||||
new SpawnSphere() {
|
||||
canSaveDynamicFields = "1";
|
||||
Position = "0 0 2";
|
||||
enabled = "1";
|
||||
position = "0 0 0";
|
||||
rotation = "1 0 0 0";
|
||||
scale = "1 1 1";
|
||||
dataBlock = "SpawnSphereMarker";
|
||||
radius = "5";
|
||||
autoSpawn = "false";
|
||||
sphereWeight = "1";
|
||||
indoorWeight = "1";
|
||||
outdoorWeight = "1";
|
||||
Enabled = "1";
|
||||
homingCount = "0";
|
||||
lockCount = "0";
|
||||
};
|
||||
};
|
||||
new GroundPlane() {
|
||||
canSaveDynamicFields = "1";
|
||||
Position = "0 0 0";
|
||||
rotation = "1 0 0 0";
|
||||
scale = "1 1 1";
|
||||
squareSize = "128";
|
||||
scaleU = "12";
|
||||
scaleV = "12";
|
||||
Material = "BlankWhite";
|
||||
Enabled = "1";
|
||||
};
|
||||
};
|
||||
//--- OBJECT WRITE END ---
|
||||
|
|
|
|||
|
|
@ -0,0 +1,53 @@
|
|||
$PostFXManager::Settings::ColorCorrectionRamp = "core/images/null_color_ramp.png";
|
||||
$PostFXManager::Settings::DOF::BlurCurveFar = "";
|
||||
$PostFXManager::Settings::DOF::BlurCurveNear = "";
|
||||
$PostFXManager::Settings::DOF::BlurMax = "";
|
||||
$PostFXManager::Settings::DOF::BlurMin = "";
|
||||
$PostFXManager::Settings::DOF::EnableAutoFocus = "";
|
||||
$PostFXManager::Settings::DOF::EnableDOF = "";
|
||||
$PostFXManager::Settings::DOF::FocusRangeMax = "";
|
||||
$PostFXManager::Settings::DOF::FocusRangeMin = "";
|
||||
$PostFXManager::Settings::EnableDOF = "1";
|
||||
$PostFXManager::Settings::EnabledSSAO = "1";
|
||||
$PostFXManager::Settings::EnableHDR = "1";
|
||||
$PostFXManager::Settings::EnableLightRays = "1";
|
||||
$PostFXManager::Settings::EnablePostFX = "1";
|
||||
$PostFXManager::Settings::EnableSSAO = "1";
|
||||
$PostFXManager::Settings::EnableVignette = "1";
|
||||
$PostFXManager::Settings::HDR::adaptRate = "2";
|
||||
$PostFXManager::Settings::HDR::blueShiftColor = "1.05 0.97 1.27";
|
||||
$PostFXManager::Settings::HDR::brightPassThreshold = "1";
|
||||
$PostFXManager::Settings::HDR::enableBloom = "1";
|
||||
$PostFXManager::Settings::HDR::enableBlueShift = "0";
|
||||
$PostFXManager::Settings::HDR::enableToneMapping = "0.5";
|
||||
$PostFXManager::Settings::HDR::gaussMean = "0";
|
||||
$PostFXManager::Settings::HDR::gaussMultiplier = "0.3";
|
||||
$PostFXManager::Settings::HDR::gaussStdDev = "0.8";
|
||||
$PostFXManager::Settings::HDR::keyValue = "0.117347";
|
||||
$PostFXManager::Settings::HDR::minLuminace = "0.0459184";
|
||||
$PostFXManager::Settings::HDR::whiteCutoff = "1";
|
||||
$PostFXManager::Settings::LightRays::brightScalar = "0.75";
|
||||
$PostFXManager::Settings::LightRays::decay = "1.0";
|
||||
$PostFXManager::Settings::LightRays::density = "0.94";
|
||||
$PostFXManager::Settings::LightRays::numSamples = "40";
|
||||
$PostFXManager::Settings::LightRays::weight = "5.65";
|
||||
$PostFXManager::Settings::SSAO::blurDepthTol = "0.001";
|
||||
$PostFXManager::Settings::SSAO::blurNormalTol = "0.95";
|
||||
$PostFXManager::Settings::SSAO::lDepthMax = "2";
|
||||
$PostFXManager::Settings::SSAO::lDepthMin = "0.2";
|
||||
$PostFXManager::Settings::SSAO::lDepthPow = "0.2";
|
||||
$PostFXManager::Settings::SSAO::lNormalPow = "2";
|
||||
$PostFXManager::Settings::SSAO::lNormalTol = "-0.5";
|
||||
$PostFXManager::Settings::SSAO::lRadius = "1";
|
||||
$PostFXManager::Settings::SSAO::lStrength = "10";
|
||||
$PostFXManager::Settings::SSAO::overallStrength = "2";
|
||||
$PostFXManager::Settings::SSAO::quality = "0";
|
||||
$PostFXManager::Settings::SSAO::sDepthMax = "1";
|
||||
$PostFXManager::Settings::SSAO::sDepthMin = "0.1";
|
||||
$PostFXManager::Settings::SSAO::sDepthPow = "1";
|
||||
$PostFXManager::Settings::SSAO::sNormalPow = "1";
|
||||
$PostFXManager::Settings::SSAO::sNormalTol = "0";
|
||||
$PostFXManager::Settings::SSAO::sRadius = "0.1";
|
||||
$PostFXManager::Settings::SSAO::sStrength = "6";
|
||||
$PostFXManager::Settings::Vignette::VMax = 0.830218;
|
||||
$PostFXManager::Settings::Vignette::VMin = 0.2;
|
||||
|
|
@ -223,12 +223,31 @@ function fastLoadWorldEdit(%val)
|
|||
onStart();
|
||||
}
|
||||
|
||||
if(Canvas.getContent() == MainMenuGui.getId())
|
||||
if(!$Game::running)
|
||||
{
|
||||
//startGame();
|
||||
activatePackage( "BootEditor" );
|
||||
ChooseLevelDlg.launchInEditor = false;
|
||||
StartGame("tools/levels/BlankRoom.mis", "SinglePlayer");
|
||||
|
||||
if(!isObject(Observer))
|
||||
{
|
||||
datablock CameraData(Observer) {};
|
||||
}
|
||||
|
||||
%cam = new Camera()
|
||||
{
|
||||
datablock = Observer;
|
||||
};
|
||||
|
||||
%cam.scopeToClient(LocalClientConnection);
|
||||
|
||||
LocalClientConnection.setCameraObject(%cam);
|
||||
LocalClientConnection.setControlObject(%cam);
|
||||
|
||||
LocalClientConnection.camera = %cam;
|
||||
|
||||
%cam.setPosition("0 0 0");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,205 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<EditorSettings>
|
||||
<Group name="GuiEditor">
|
||||
<Setting name="lastPath">E:/gamedev/T3DMIT/CLEAN/My Projects/TemplateTest/game/data/scripts/gui</Setting>
|
||||
<Setting name="previewResolution">1280 1024</Setting>
|
||||
<Group name="Help">
|
||||
<Setting name="documentationURL">http://www.garagegames.com/products/torque-3d/documentation/user</Setting>
|
||||
<Setting name="documentationLocal">../../../Documentation/Official Documentation.html</Setting>
|
||||
<Setting name="documentationReference">../../../Documentation/Torque 3D - Script Manual.chm</Setting>
|
||||
</Group>
|
||||
<Group name="Rendering">
|
||||
<Setting name="drawGuides">1</Setting>
|
||||
<Setting name="drawBorderLines">1</Setting>
|
||||
</Group>
|
||||
<Group name="EngineDevelopment">
|
||||
<Setting name="showEditorGuis">0</Setting>
|
||||
<Setting name="toggleIntoEditor">0</Setting>
|
||||
<Setting name="showEditorProfiles">0</Setting>
|
||||
</Group>
|
||||
<Group name="Snapping">
|
||||
<Setting name="snap2Grid">0</Setting>
|
||||
<Setting name="snapToGuides">1</Setting>
|
||||
<Setting name="snap2GridSize">8</Setting>
|
||||
<Setting name="snapToEdges">1</Setting>
|
||||
<Setting name="snapToCenters">1</Setting>
|
||||
<Setting name="snapToCanvas">1</Setting>
|
||||
<Setting name="sensitivity">2</Setting>
|
||||
<Setting name="snapToControls">1</Setting>
|
||||
</Group>
|
||||
<Group name="Selection">
|
||||
<Setting name="fullBox">0</Setting>
|
||||
</Group>
|
||||
<Group name="Library">
|
||||
<Setting name="viewType">Categorized</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group name="WorldEditor">
|
||||
<Setting name="currentEditor">WorldEditorInspectorPlugin</Setting>
|
||||
<Setting name="orthoFOV">50</Setting>
|
||||
<Setting name="forceLoadDAE">0</Setting>
|
||||
<Setting name="undoLimit">40</Setting>
|
||||
<Setting name="dropType">screenCenter</Setting>
|
||||
<Setting name="orthoShowGrid">1</Setting>
|
||||
<Setting name="displayType">6</Setting>
|
||||
<Group name="Tools">
|
||||
<Setting name="snapSoft">0</Setting>
|
||||
<Setting name="boundingBoxCollision">0</Setting>
|
||||
<Setting name="snapSoftSize">2</Setting>
|
||||
<Setting name="snapGround">0</Setting>
|
||||
<Setting name="dropAtScreenCenterMax">100</Setting>
|
||||
<Setting name="dropAtScreenCenterScalar">1</Setting>
|
||||
<Setting name="objectsUseBoxCenter">1</Setting>
|
||||
</Group>
|
||||
<Group name="Grid">
|
||||
<Setting name="gridSnap">1</Setting>
|
||||
<Setting name="gridMinorColor">51 51 51 100</Setting>
|
||||
<Setting name="gridOriginColor">255 255 255 100</Setting>
|
||||
<Setting name="gridSize">1</Setting>
|
||||
<Setting name="gridColor">102 102 102 100</Setting>
|
||||
</Group>
|
||||
<Group name="ObjectIcons">
|
||||
<Setting name="fadeIconsEndDist">20</Setting>
|
||||
<Setting name="fadeIcons">1</Setting>
|
||||
<Setting name="fadeIconsStartAlpha">255</Setting>
|
||||
<Setting name="fadeIconsEndAlpha">0</Setting>
|
||||
<Setting name="fadeIconsStartDist">8</Setting>
|
||||
</Group>
|
||||
<Group name="Color">
|
||||
<Setting name="objMouseOverColor">0 255 0 255</Setting>
|
||||
<Setting name="objSelectColor">255 0 0 255</Setting>
|
||||
<Setting name="dragRectColor">255 255 0 255</Setting>
|
||||
<Setting name="objMouseOverSelectColor">0 0 255 255</Setting>
|
||||
<Setting name="objectTextColor">255 255 255 255</Setting>
|
||||
<Setting name="selectionBoxColor">255 255 0 255</Setting>
|
||||
<Setting name="popupBackgroundColor">100 100 100 255</Setting>
|
||||
</Group>
|
||||
<Group name="Docs">
|
||||
<Setting name="documentationReference">../../../Documentation/Torque 3D - Script Manual.chm</Setting>
|
||||
<Setting name="documentationLocal">../../../Documentation/Official Documentation.html</Setting>
|
||||
<Setting name="documentationURL">http://www.garagegames.com/products/torque-3d/documentation/user</Setting>
|
||||
<Setting name="forumURL">http://www.garagegames.com/products/torque-3d/forums</Setting>
|
||||
</Group>
|
||||
<Group name="Render">
|
||||
<Setting name="renderSelectionBox">1</Setting>
|
||||
<Setting name="renderPopupBackground">1</Setting>
|
||||
<Setting name="showMousePopupInfo">1</Setting>
|
||||
<Setting name="renderObjText">1</Setting>
|
||||
<Setting name="renderObjHandle">1</Setting>
|
||||
</Group>
|
||||
<Group name="Images">
|
||||
<Setting name="defaultHandle">tools/worldEditor/images/DefaultHandle</Setting>
|
||||
<Setting name="lockedHandle">tools/worldEditor/images/LockedHandle</Setting>
|
||||
<Setting name="selectHandle">tools/worldEditor/images/SelectHandle</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group name="TerrainEditor">
|
||||
<Setting name="currentAction">raiseHeight</Setting>
|
||||
<Group name="ActionValues">
|
||||
<Setting name="scaleVal">1</Setting>
|
||||
<Setting name="SlopeMinAngle">0</Setting>
|
||||
<Setting name="SlopeMaxAngle">90</Setting>
|
||||
<Setting name="softSelectDefaultFilter">1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000</Setting>
|
||||
<Setting name="smoothFactor">0.1</Setting>
|
||||
<Setting name="noiseFactor">1</Setting>
|
||||
<Setting name="softSelectRadius">50</Setting>
|
||||
<Setting name="setHeightVal">100</Setting>
|
||||
<Setting name="adjustHeightVal">10</Setting>
|
||||
<Setting name="softSelectFilter">1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000</Setting>
|
||||
</Group>
|
||||
<Group name="Brush">
|
||||
<Setting name="maxBrushSize">40 40</Setting>
|
||||
<Setting name="brushType">ellipse</Setting>
|
||||
<Setting name="brushPressure">1</Setting>
|
||||
<Setting name="brushSize">1 1</Setting>
|
||||
<Setting name="brushSoftness">1</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group name="ShapeEditor">
|
||||
<Setting name="SunDiffuseColor">255 255 255 255</Setting>
|
||||
<Setting name="ShowGrid">1</Setting>
|
||||
<Setting name="highlightMaterial">1</Setting>
|
||||
<Setting name="RenderCollision">0</Setting>
|
||||
<Setting name="SunAngleZ">135</Setting>
|
||||
<Setting name="SunAngleX">45</Setting>
|
||||
<Setting name="showNodes">1</Setting>
|
||||
<Setting name="backgroundColor">0 0 0 100</Setting>
|
||||
<Setting name="gridDimension">40 40</Setting>
|
||||
<Setting name="AdvancedWndVisible">1</Setting>
|
||||
<Setting name="SunAmbientColor">180 180 180 255</Setting>
|
||||
<Setting name="showBounds">0</Setting>
|
||||
<Setting name="showObjBox">1</Setting>
|
||||
<Setting name="renderMounts">1</Setting>
|
||||
<Setting name="gridSize">0.1</Setting>
|
||||
</Group>
|
||||
<Group name="RoadEditor">
|
||||
<Setting name="materialName">DefaultDecalRoadMaterial</Setting>
|
||||
<Setting name="SelectedSplineColor">0 255 0 255</Setting>
|
||||
<Setting name="DefaultWidth">10</Setting>
|
||||
<Setting name="HoverNodeColor">255 255 255 255</Setting>
|
||||
<Setting name="HoverSplineColor">255 0 0 255</Setting>
|
||||
</Group>
|
||||
<Group name="AxisGizmo">
|
||||
<Setting name="snapRotations">0</Setting>
|
||||
<Setting name="mouseScaleScalar">0.8</Setting>
|
||||
<Setting name="renderInfoText">1</Setting>
|
||||
<Setting name="rotationSnap">15</Setting>
|
||||
<Setting name="mouseRotateScalar">0.8</Setting>
|
||||
<Setting name="renderWhenUsed">0</Setting>
|
||||
<Setting name="axisGizmoMaxScreenLen">100</Setting>
|
||||
<Group name="Grid">
|
||||
<Setting name="gridSize">10 10 10</Setting>
|
||||
<Setting name="gridColor">255 255 255 20</Setting>
|
||||
<Setting name="renderPlaneHashes">0</Setting>
|
||||
<Setting name="snapToGrid">1</Setting>
|
||||
<Setting name="planeDim">500</Setting>
|
||||
<Setting name="renderPlane">0</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group name="MeshRoadEditor">
|
||||
<Setting name="SelectedSplineColor">0 255 0 255</Setting>
|
||||
<Setting name="HoverNodeColor">255 255 255 255</Setting>
|
||||
<Setting name="DefaultDepth">5</Setting>
|
||||
<Setting name="DefaultNormal">0 0 1</Setting>
|
||||
<Setting name="HoverSplineColor">255 0 0 255</Setting>
|
||||
<Setting name="topMaterialName">DefaultRoadMaterialTop</Setting>
|
||||
<Setting name="DefaultWidth">10</Setting>
|
||||
<Setting name="sideMaterialName">DefaultRoadMaterialOther</Setting>
|
||||
<Setting name="bottomMaterialName">DefaultRoadMaterialOther</Setting>
|
||||
</Group>
|
||||
<Group name="RiverEditor">
|
||||
<Setting name="DefaultDepth">5</Setting>
|
||||
<Setting name="DefaultWidth">10</Setting>
|
||||
<Setting name="DefaultNormal">0 0 1</Setting>
|
||||
<Setting name="HoverNodeColor">255 255 255 255</Setting>
|
||||
<Setting name="HoverSplineColor">255 0 0 255</Setting>
|
||||
<Setting name="SelectedSplineColor">0 255 0 255</Setting>
|
||||
</Group>
|
||||
<Group name="NavEditor">
|
||||
<Setting name="SpawnClass">AIPlayer</Setting>
|
||||
<Setting name="spawnDatablock">DefaultPlayerData</Setting>
|
||||
<Setting name="backgroundBuild">1</Setting>
|
||||
</Group>
|
||||
<Group name="DatablockEditor">
|
||||
<Setting name="libraryTab">0</Setting>
|
||||
</Group>
|
||||
<Group name="LevelInformation">
|
||||
<Group name="levels">
|
||||
<Group name="EmptyLevel.mis">
|
||||
<Setting name="cameraSpeed">25</Setting>
|
||||
</Group>
|
||||
<Group name="BlankRoom.mis">
|
||||
<Setting name="cameraSpeed">25</Setting>
|
||||
</Group>
|
||||
<Group name="Empty_Room.mis">
|
||||
<Setting name="cameraSpeed">25</Setting>
|
||||
</Group>
|
||||
<Group name="Empty Terrain.mis">
|
||||
<Setting name="cameraSpeed">25</Setting>
|
||||
</Group>
|
||||
</Group>
|
||||
</Group>
|
||||
<Group name="ConvexEditor">
|
||||
<Setting name="materialName">Grid512_OrangeLines_Mat</Setting>
|
||||
</Group>
|
||||
</EditorSettings>
|
||||
|
|
@ -49,7 +49,8 @@ function initializeWorldEditor()
|
|||
exec("./scripts/menus.ed.cs");
|
||||
exec("./scripts/menuHandlers.ed.cs");
|
||||
exec("./scripts/editor.ed.cs");
|
||||
exec("./scripts/editor.bind.ed.cs");
|
||||
exec("./scripts/editorInputCommands.cs");
|
||||
exec("./scripts/editor.keybinds.cs");
|
||||
exec("./scripts/undoManager.ed.cs");
|
||||
exec("./scripts/lighting.ed.cs");
|
||||
exec("./scripts/EditorGui.ed.cs");
|
||||
|
|
|
|||
|
|
@ -20,51 +20,51 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
if ( isObject( editorMoveMap ) )
|
||||
editorMoveMap.delete();
|
||||
if ( isObject( EditorMap ) )
|
||||
EditorMap.delete();
|
||||
|
||||
new ActionMap(editorMoveMap);
|
||||
new ActionMap(EditorMap);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Non-remapable binds
|
||||
//------------------------------------------------------------------------------
|
||||
editorMoveMap.bindCmd(keyboard, "escape", "", "Canvas.pushDialog(PauseMenu);");
|
||||
EditorMap.bindCmd(keyboard, "escape", "", "Canvas.pushDialog(PauseMenu);");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Movement Keys
|
||||
//------------------------------------------------------------------------------
|
||||
editorMoveMap.bind( keyboard, a, editorMoveleft );
|
||||
editorMoveMap.bind( keyboard, d, editorMoveright );
|
||||
editorMoveMap.bind( keyboard, left, editorMoveleft );
|
||||
editorMoveMap.bind( keyboard, right, editorMoveright );
|
||||
EditorMap.bind( keyboard, a, editorMoveleft );
|
||||
EditorMap.bind( keyboard, d, editorMoveright );
|
||||
EditorMap.bind( keyboard, left, editorMoveleft );
|
||||
EditorMap.bind( keyboard, right, editorMoveright );
|
||||
|
||||
editorMoveMap.bind( keyboard, w, editorMoveforward );
|
||||
editorMoveMap.bind( keyboard, s, editorMovebackward );
|
||||
editorMoveMap.bind( keyboard, up, editorMoveforward );
|
||||
editorMoveMap.bind( keyboard, down, editorMovebackward );
|
||||
EditorMap.bind( keyboard, w, editorMoveforward );
|
||||
EditorMap.bind( keyboard, s, editorMovebackward );
|
||||
EditorMap.bind( keyboard, up, editorMoveforward );
|
||||
EditorMap.bind( keyboard, down, editorMovebackward );
|
||||
|
||||
editorMoveMap.bind( keyboard, e, editorMoveup );
|
||||
editorMoveMap.bind( keyboard, c, editorMovedown );
|
||||
EditorMap.bind( keyboard, e, editorMoveup );
|
||||
EditorMap.bind( keyboard, c, editorMovedown );
|
||||
|
||||
editorMoveMap.bind( mouse, xaxis, editorYaw );
|
||||
editorMoveMap.bind( mouse, yaxis, editorPitch );
|
||||
EditorMap.bind( mouse, xaxis, editorYaw );
|
||||
EditorMap.bind( mouse, yaxis, editorPitch );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Mouse Trigger
|
||||
//------------------------------------------------------------------------------
|
||||
editorMoveMap.bind( mouse, button0, editorClick );
|
||||
editorMoveMap.bind( mouse, button1, editorRClick );
|
||||
EditorMap.bind( mouse, button0, editorClick );
|
||||
EditorMap.bind( mouse, button1, editorRClick );
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Camera & View functions
|
||||
//------------------------------------------------------------------------------
|
||||
editorMoveMap.bind(keyboard, "alt c", toggleCamera);
|
||||
EditorMap.bind(keyboard, "alt c", toggleCamera);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Helper Functions
|
||||
//------------------------------------------------------------------------------
|
||||
editorMoveMap.bind(keyboard, "F8", dropCameraAtPlayer);
|
||||
editorMoveMap.bind(keyboard, "F7", dropPlayerAtCamera);
|
||||
EditorMap.bind(keyboard, "F8", dropCameraAtPlayer);
|
||||
EditorMap.bind(keyboard, "F7", dropPlayerAtCamera);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Debugging Functions
|
||||
|
|
@ -77,4 +77,4 @@ GlobalActionMap.bind(keyboard, "ctrl F3", doProfile);
|
|||
//------------------------------------------------------------------------------
|
||||
GlobalActionMap.bind(keyboard, "tilde", toggleConsole);
|
||||
|
||||
editorMoveMap.bind( mouse, "alt zaxis", editorWheelFadeScroll );
|
||||
EditorMap.bind( mouse, "alt zaxis", editorWheelFadeScroll );
|
||||
|
|
|
|||