Toolbar stores its current state locally (just for conformity).

This commit is contained in:
Dean Herbert 2016-10-08 00:41:31 +09:00
parent 3067c890ce
commit adba72d293
1 changed files with 4 additions and 0 deletions

View File

@ -25,8 +25,12 @@ public class Toolbar : Container
private ToolbarModeSelector modeSelector;
public ToolbarState State { get; private set; }
public void SetState(ToolbarState state, bool instant = false)
{
State = state;
int time = instant ? 0 : 200;
switch (state)