mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 16:49:21 +02:00
feat(editor): every switch laid gets its drive at once, also the one made by pulling a free end into a straight (named z1, z2... like the others): the drive marked default: true in its //$e description (mech_komin) until another is picked, on the diverging side or the other; the drive goes into the same undo step as the switch; a switch with a drive puts it on the other side with one button, as one undo step; drive_headers.py marks mech_komin as the default; self-test commands drives and driveflip; Polish translation
This commit is contained in:
@@ -250,6 +250,7 @@ bool parse(template_text const &Text, include_info &Info, std::string &Error)
|
||||
{
|
||||
Info.switch_hand = drive["hand"].as<std::string>("");
|
||||
Info.switch_drive = drive["drive"].as<std::string>("");
|
||||
Info.switch_default = drive["default"].as<bool>(false);
|
||||
}
|
||||
if (auto const signal{document["signal"]}; signal.IsDefined() && signal.IsMap())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user