mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-30 07:20:30 +01:00
feat(editor): Alt while laying turns the straight to 1:9, 1:6.6... of a straight track
Besides the steps of 15 degrees, Alt snaps the laid straight to the ratios of the switches (1:4.8 to 1:26.5) of the straight track the straight crosses, or of one within 30 m of where it starts; the label at the cursor says which ratio to which track. The first click with Alt within 2 m of a straight track puts the start on its axis, so a branch or a crossing at 1:9 starts exactly on the track.
This commit is contained in:
@@ -104,6 +104,9 @@ double const kLaySnapRadius{5.0};
|
||||
float const kSnapPixels{16.0f};
|
||||
double const kSwitchReach{6.0}; // a press farther from the selected track selects another one instead of placing the switch
|
||||
double const kSlipReach{12.0}; // m; a slip goes to the crossing nearest the cursor, if it's this close
|
||||
double const kSkewSeat{2.0}; // m; the first point laid with Alt this close to a straight track goes onto its axis
|
||||
double const kSkewReach{30.0}; // m; Alt while laying turns the straight to a straight track this close to its start, or one it crosses
|
||||
double const kSkewRatios[]{4.8, 6.6, 7.5, 9.0, 12.0, 14.0, 18.5, 26.5};
|
||||
double const kLineReach{2000.0}; // how far each way the Curve tab follows the line
|
||||
double const kDigitizeFit{0.5};
|
||||
double const kDrawnReach{100000.0};
|
||||
|
||||
Reference in New Issue
Block a user