mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 19:57:06 +01:00
6828e52a45
The window of an EU07M model becomes the field of work "Models" (F7) beside the surroundings, the tracks, the roads, the terrain and the catenary. The node bank says what is edited and lists the vehicles, the tool options hold the page of the tool chosen in the toolbar (Lights, Parts of the vehicle, All parts, Animations), and the inspector the settings of the part picked, in plain words; the fields of the format are kept under Advanced. - A click on the model picks its part (the smallest box of geometry of a part shown holding the point); a light is added where the model is clicked, a spot shining towards the camera. - A light which nothing else points at is taken out (eu07m::node_removable / remove_node, with TModel3d::UnlinkEditorSubmodel / LinkEditorSubmodel on the model the game has). - Ctrl+Z / Ctrl+Y take the changes of the model back and make them again, a light added or taken out among them; another model asked for with changes not saved asks first. - "Import to EU07M" writes <model>.eu07m beside the .e3d or .t3d of a model without one, made of the model as the game loaded it (eu07m::import_model), so a lamp post or a cab gets its lights here. - "Put a model in the scenery" puts a model of the folder of the models in front of the camera, "Whole model" moves the scenery model with the gizmo of the editor, "Put a vehicle on a track..." opens the Trainset tool. - The inspector of a scenery model with an .eu07m file offers "Edit this model (F7)"; the floating window is gone. - Review: the model is written to its .tmp, closed and checked before it replaces the file, and a failed .tmp is removed; play_clip counts From only for a positive pace again, so a pace of 0 holds the clip and a negative one runs it backwards. New icons at the end of editor_icons.png (the cells before them are unchanged), the strings in lang/editor_pl.po, new self-test commands (modelmode, modeltool, modeladdlight, modelundo, modelredo, modelremove, modelplace, modelimport) and unit tests of remove_node. No asset in the SVN is needed or changed; the import writes an .eu07m file into the game data only when the user asks for it.