mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-31 18:09:04 +01:00
feat(editor): norms of laying, free by default: free lays plain arcs with no transition curves and no cant and keeps quiet about the norms, PKP PLK gives the transitions and the cant for the design speed with the warnings, chosen at the top of the Lay panel; digits in Tracks only type values, never change the edit mode; in Lay a track under the cursor says the click starts on the ground beside it, Shift+click chooses it for a parallel track; Alt while laying turns the direction in steps of 15 degrees, with the azimuth by the cursor; K splits only within 20 px of the selected track, where a marker shows it; the environment, overhead line, transition curve, view and include labels translated, one name for laying track in Polish
This commit is contained in:
@@ -1092,7 +1092,7 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
std::string preview_error;
|
||||
double preview_length{0.0};
|
||||
double radius{500.0};
|
||||
bool transitions{true};
|
||||
bool transitions{false};
|
||||
double piece_length{100.0};
|
||||
bool copy_selected{false};
|
||||
editor_track::path_style style;
|
||||
@@ -1106,6 +1106,9 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
std::vector<step> chain;
|
||||
};
|
||||
lay_tool m_lay;
|
||||
bool m_norms_free{true};
|
||||
alignment::limits laying_norms() const;
|
||||
glm::dvec3 lay_angle_snap(glm::dvec3 const &Mouse) const;
|
||||
void lay_after_history(bool const Undo);
|
||||
void lay_back();
|
||||
void render_lay_ui();
|
||||
@@ -1250,7 +1253,8 @@ class editor_mode : public application_mode, private editor_track::observer
|
||||
double since{0.0};
|
||||
};
|
||||
track_hover m_hover;
|
||||
track_hover track_under_cursor(TTrack const *Only = nullptr) const;
|
||||
track_hover track_under_cursor(TTrack const *Only = nullptr, float const Pixels = 0.0f) const;
|
||||
track_hover split_spot() const;
|
||||
void update_track_hover();
|
||||
void draw_track_hover() const;
|
||||
struct track_intent
|
||||
|
||||
Reference in New Issue
Block a user