separate global tick from draw so on tick any node can request a redraw

This commit is contained in:
2018-10-08 12:03:57 +02:00
parent c9c7b9f1c4
commit 5bb8f8845b
8 changed files with 30 additions and 19 deletions

View File

@@ -16,7 +16,10 @@ void NodeTextInput::on_tick(float dt)
{
timer = 0;
if (m_cursor)
{
m_cursor->m_display = !m_cursor->m_display;
app_redraw();
}
}
}