mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 20:56:27 +01:00
feat(editor): what the editor refuses shows by the mouse cursor
An error put in the status bar also shows for 4 s by the cursor, and the refusals the tools kept in their panels (a curve which can't be laid, a switch which doesn't fit, a signal which can't be moved, a drive without the variant) go there as well.
This commit is contained in:
@@ -573,6 +573,14 @@ bool editor_mode::route_from_line(TTrack &Track)
|
||||
}
|
||||
|
||||
void editor_mode::route_apply()
|
||||
{
|
||||
m_route.error.clear();
|
||||
route_lay();
|
||||
if (false == m_route.error.empty())
|
||||
refused(m_route.error);
|
||||
}
|
||||
|
||||
void editor_mode::route_lay()
|
||||
{
|
||||
auto &route{m_route};
|
||||
route.status.clear();
|
||||
|
||||
Reference in New Issue
Block a user