mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 09:36:48 +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:
@@ -138,6 +138,8 @@ editor_mode::selftest_result editor_mode::selftest_dispatch(std::string const &c
|
||||
// angles at the joints, loops, the turning wasted and the sharpest curve logged; case: that one alone
|
||||
// layspeed <km/h> <own 0|1> the speed set for the laying, and whether it goes also on from a track with its own
|
||||
// laymode <straights|curve>, laytrace <radii 0..3> <straights between 0|1> as the panel of the laying sets them
|
||||
// laysettings <0|1> the settings of the lay tool opened under the line of their summary, or folded into it, as a
|
||||
// click on that line does while the points are clicked
|
||||
// endcurves logs every free end of the rails: where, the way out and the curvature its track goes on with
|
||||
// curvejoint <x> <z> logs the paths meeting at the end nearest the point, the curvature of each and its jump from the ones before to the ones after
|
||||
// cantcheck <label> logs each jump of the cant at a joint of plain tracks, and the steepest ramp of the cant on a path
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Laying flow: the panel of the lay tool goes through its states, each with its step at its top. Nothing clicked: its settings shown.
|
||||
# Points clicked: the settings folded to the line of their summary. The line laid with Enter: told in one line over the settings
|
||||
# Points clicked: the settings folded to the line of their summary, opened by a click on it and folded again. The line laid with Enter: told in one line over the settings
|
||||
# shown again. Taken back with Ctrl+Z: ready, the line laid no more told. The same in the mode of a curve traced. The points go on
|
||||
# the empty ground between the turntable tt1 and the curves (x 220..270), the camera straight above them
|
||||
wait 5
|
||||
@@ -16,6 +16,12 @@ expect laypanel clicking folded
|
||||
layp 235 165 250 185
|
||||
wait 2
|
||||
expect laypanel clicking folded
|
||||
laysettings 1
|
||||
wait 2
|
||||
expect laypanel clicking shown
|
||||
laysettings 0
|
||||
wait 2
|
||||
expect laypanel clicking folded
|
||||
layenter
|
||||
wait 2
|
||||
expect laypanel laid shown
|
||||
|
||||
Reference in New Issue
Block a user