mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 06:59:13 +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:
@@ -973,6 +973,12 @@ void editor_mode::undo_last()
|
||||
}
|
||||
}
|
||||
|
||||
std::string editor_mode::refused(std::string Text)
|
||||
{
|
||||
ui()->set_status(Text, true);
|
||||
return Text;
|
||||
}
|
||||
|
||||
void editor_mode::drop_step(std::size_t const Step)
|
||||
{
|
||||
if (Step == 0 || m_history.size() != Step)
|
||||
|
||||
Reference in New Issue
Block a user