mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 00:22:42 +01:00
test(editor): lf_1 opens the settings of the lay tool from the line of their summary and folds them again, through a new laysettings command
This commit is contained in:
@@ -485,6 +485,15 @@ editor_mode::selftest_result editor_mode::selftest_join(std::string const &comma
|
||||
WriteLog("SELFTEST laymode: " + std::string{m_lay.mode == lay_mode::curve ? "curve" : "straights"});
|
||||
return selftest_result::handled;
|
||||
}
|
||||
if (command == "laysettings")
|
||||
{
|
||||
// as a click on the line of their summary while the points are clicked: the settings shown under it, or folded into it again
|
||||
int open{0};
|
||||
words >> open;
|
||||
m_lay.settings_open = open != 0;
|
||||
WriteLog(format("SELFTEST laysettings %d", open));
|
||||
return selftest_result::handled;
|
||||
}
|
||||
if (command == "laytrace")
|
||||
{
|
||||
int straights{1};
|
||||
|
||||
Reference in New Issue
Block a user