18
0
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:
maj00r
2026-11-29 22:34:50 +01:00
parent 6937250b25
commit 4f9da75beb
3 changed files with 18 additions and 1 deletions
+9
View File
@@ -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};