mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 10:59:20 +02:00
feat(editor): laying track for a beginner: Ctrl+Z and Backspace during a chain of laid pieces go back to the end of the piece before instead of carrying on from a removed track (Ctrl+Y ends the chain); every warning of the laid shape and of a join is shown by the cursor for 4 s after the click, also when the radius chosen on the wheel didn't reach the cursor and the arc goes through it, the preview of a shape with a warning is orange as it is laid anyway; the switch type stays chosen after a switch is placed; the status says each click lays a piece; a "First steps" window (Help menu, opens with the editor until unticked) with eight steps ticked off as they are done; an empty scenery opens in Tracks with the camera over its origin and a grid where there is no ground under the cursor; F1 lists the laying gestures (Ctrl/Shift+wheel, drag from a free end, typed length); self-test command laychain; Polish translation
This commit is contained in:
@@ -216,7 +216,7 @@ editor_mode::track_intent editor_mode::track_intent_at(int const Mods)
|
||||
return make(kind::lay_end, lay.points.empty() ? "Click: start from this free end, drag: lead a track out of it" : "Click: join this end and lay");
|
||||
}
|
||||
intent.position = lay.mouse;
|
||||
return make(kind::lay, lay.points.empty() ? "Click: start of the new track" : "Click: next point");
|
||||
return make(kind::lay, lay.points.empty() ? "Click: start of the new track" : "Click: lay the track to here");
|
||||
}
|
||||
if (m_track_tab == track_tab::turntable)
|
||||
return turntable_intent(ground, shift);
|
||||
@@ -369,7 +369,7 @@ editor_mode::track_intent editor_mode::track_intent_at(int const Mods)
|
||||
{
|
||||
case track_tab::straights: return make(kind::select, "Click: the whole straight through this track");
|
||||
case track_tab::route: return make(kind::select, "Click: the curve of this track with its straights");
|
||||
case track_tab::turnout: return make(kind::select, m_hover.track->eType == tt_Switch ? "Click: edit this switch" : m_switch.armed < 0 ? "Click: choose this track, then the type of the switch" : "Click: put a switch into this track");
|
||||
case track_tab::turnout: return make(kind::select, m_hover.track->eType == tt_Switch ? "Click: edit this switch" : m_switch.armed < 0 ? "Click: choose this track, then the type of the switch" : "Click: choose this track, then press and drag on it for the switch");
|
||||
case track_tab::profile: return make(kind::select, "Click: the grade line through this track");
|
||||
case track_tab::lineside: return make(kind::select, "Click: the line the objects go along");
|
||||
default: return make(kind::select, "Click: select");
|
||||
|
||||
Reference in New Issue
Block a user