17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-26 17:04:53 +01:00

fix(editor): a radius typed while dragging out of a free end reaches the curve

The shape pulled out of a free end took a typed radius for its curve,
but the typed keys were thrown away while the drag went on, so the value
never got there. Digits now type the radius whenever the shape has a
curve and a straight.
This commit is contained in:
maj00r
2026-10-21 11:09:16 +02:00
parent ddde8d12d9
commit 0b74da1474
2 changed files with 5 additions and 0 deletions

View File

@@ -891,6 +891,8 @@ char const *editor_mode::typed_meaning() const
return "type the turn in degrees, + to the right";
if (m_lay.active && false == m_lay.points.empty())
return "type the length of the next leg, Enter adds the point";
if (m_extend.active && (m_track_layout == track_layout::arc_straight || m_track_layout == track_layout::straight_arc))
return "type the radius of the curve";
return nullptr;
}

View File

@@ -9988,3 +9988,6 @@ msgstr "Przeciągnij przez tor"
msgid "to the other side"
msgstr "na drugą stronę"
msgid "type the radius of the curve"
msgstr "wpisz promień łuku"