mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-29 12:47:30 +01:00
feat(editor): the free ends of the tracks are marked red in the track mode
Each end of a rail track joined to nothing, where a train would run off, gets a red dot next to the white dots of the joints, in the 3D view near the camera and from above over the whole view. The ends are looked for again after an edit or once the camera leaves the place they were found for, not every frame.
This commit is contained in:
@@ -151,6 +151,7 @@ double const kDrawnReach{100000.0};
|
||||
double const kJointRange{400.0}; // the ends of the paths are drawn for the tracks this close to the camera
|
||||
double const kDotsRange{500.0}; // m, the dots of the ends of the tracks are drawn this close to the camera in the 3D view
|
||||
ImU32 const kJointColor{IM_COL32(255, 255, 255, 200)};
|
||||
ImU32 const kFreeEndColor{IM_COL32(240, 60, 60, 235)};
|
||||
int const kRailCategory{1};
|
||||
|
||||
inline editor_track::branch_end branch_start(segment_data const &Diverging)
|
||||
|
||||
Reference in New Issue
Block a user