/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "stdafx.h" #include "application/editormode.h" #include "editor/editorSettings.hpp" #include "editor/editorGeometry.hpp" #include "application/application.h" #include "application/editoruilayer.h" #include "application/editorprojection.h" #include "simulation/simulation.h" #include "simulation/simulationtime.h" #include "scene/scenelayers.h" #include "utilities/Globals.h" #include "utilities/Logs.h" #include "world/Track.h" #include "world/MemCell.h" #include "world/Event.h" #include "vehicle/DynObj.h" #include "model/AnimModel.h" #include "model/Model3d.h" #include "rendering/renderer.h" #include "world/Sweep.h" #include "input/keyboardinput.h" #include #include #include #include "editor/editorFormat.hpp" #include "editor/editorAlignmentStore.hpp" #include "editor/editorSwitchStore.hpp" #include "scene/sceneterrain.h" #include "editor/editorSpeed.hpp" #include #include #include #include #include // the script is a text file, one action a line: // wait // camera from the first point, looking at the second // select // sweep =... model, params (separated by commas), lateral, height, side (origin, near, far, // centre), top (origin, bottom, top, edge), mode (bend, repeat), step, // length (original, all, or metres), from, to, widen (0, 1), face (0, 1), tilt (0, 1) // selectmodel the model instance nearest the point // bend =... the selected model bent along a track: track (index on the list), axis (auto, z, x), // turned (0, 1), along (start, origin, middle, end, point), side (origin, near, far, // middle, point), height (origin, bottom, top, edge, point), point=,,, // pick=,, (a point of the scene picked as the reference point), go (0, 1) // selectinclude the include placed nearest the point // addmodel the model instance nearest the point added to the selection, or taken out (Shift+LMB) // selection logs the selected models, with the models of their groups // moveselection the selection moved by the offset, as the gizmo moves it // turnselection the selection turned around the model with the gizmo // copy, paste , group, ungroup, drop, delete as the keys of the selection do them // bendset =... the bent model being edited: length, lateral, height, along, side, height // bendprobe logs the bent model being edited // undo, redo // key [ctrl] a key or right button event, as the window gives it // lineside the tab of the objects along the track in the track window // event queues the event // memcell logs the memory cell // bendpanel unfolds the bend section of the toolset // openscenerypopup the window of File / Open scenery, its list searched for zz_ // openscenery the editor starts again with the scenery // checkspans logs whether the text the scenery files hold at each node's place starts and ends it // spread logs the paths the spread from the track takes // newscenery the editor starts again with the wizard of a new scenery // vehicles logs each vehicle: its head, facing, and what its couplers hold // terrainmode the terrain field of work, with its texture browser // terrainsculpt , terrainpaint , // terrainlevel [mode] as a stroke of the brush // terrainadd chunks made around the camera, count x count, as the button of the chunks panel does it // terrainprobe logs the height of the heightmap terrain and the materials of the chunk // terrainconvert converts every material of the terrain files of the scenery // terrainmodifier a straight modifier, as the vertical profile makes them // terraintouchup <0|1> the brushes touch up over the modifiers, or shape the ground under them // terrainrestore a stroke of the restore brush // terrainbake the modifier baked into the ground // terrainselect [add] the chunk selected with the spacing tool (add: Ctrl) // terrainresolution [paint 0|1] the selected chunks converted, as the button of the resolution panel does it // terrainfill ... the area outlined filled, as the fill tool does it // terrainturn the textures of the palette entry turned // terrainwater [size] material and repeat of a body of water; terrainwaterdefault // orthophoto [in scene 0|1] the imagery layer on, placed and fitted as given // join [radius] [variant] [transitions 0|1] the free ends at the points joined, as a drag from one to the other // layto from the free end at the first point towards the second, as a drag in the layout // layclicks ... clicks of the lay tool at the points, a free end within 3 m joined // joints ... the joints check over the scenery, the issues around the points logged // route the route design of the path nearest the point, a curve or the whole line // routevertex , routearc , routeshare , routekm // routeapply, routetake as the buttons of the route design do it // alignments logs the alignments kept in the scenery and the element under each path // splitkind , nudgekind the first path over an element of the kind split in two, or moved // switchplace