mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 15:39:20 +02:00
feat(editor): switches kept in the scenery as //$r lines: type (Rz, arc Rlj/Rld, slip Rkpd), rail, R, 1:n, side, a, b, R of the main track, the parts of a slip, km and number, catalogue or measured; recorded as they are placed on a straight, in a curve (one-sided when diverging to the side the curve turns to), as a double slip, and when their geometry is replaced or flipped; the switch panel shows the kept type and the R of the diverging track bent with the main one, with the number, rail and km to edit (km from the kept horizontal alignment); the speed check of a diverging track takes its R from the kept type; records follow renamed switches and go with removed ones on save; editor records stay out of the terrain files (.txtf), and those written there by hand go with them into .btf; the side of the diverging track shown as seen; self-test commands for placing switches, the kept switches and the .btf conversion; Polish translation
This commit is contained in:
@@ -787,6 +787,9 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
bool route_load(TTrack &Track);
|
||||
void route_read_stored();
|
||||
void route_take_stored(int const Index);
|
||||
void record_switch(TTrack &Track, editor_track::switch_template const &Shape);
|
||||
void record_slip(std::vector<TTrack *> const &Parts, std::string const &Kind, std::string const &Type, double const Radius, double const Angle, std::string const &Base);
|
||||
void render_switch_record(TTrack &Track);
|
||||
void route_store();
|
||||
void render_route_stored();
|
||||
void route_update() { m_route.result = alignment::compute(m_route.design); }
|
||||
|
||||
Reference in New Issue
Block a user