separate global tick from draw so on tick any node can request a redraw
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user