public GuiAction Add(GuiAction action) { action._list = this; action._control = owner; Actions.Add(action); return(action); }
public void Update(float dt) { IsUpdating = true; index = 0; int i = index; //int lanes = 0; while (i < Actions.Count) { GuiAction action = Actions[i]; //if ((lanes & action.Lanes) == 0) // continue; action.InternalUpdate(dt); //if (action.IsBlocking) // lanes |= action.Lanes; if (action.IsFinished) { // action->OnEnd(); Actions.Remove(action); } i++; index = i; if (action.IsBlocking) { break; } } IsUpdating = false; }
public void Remove(GuiAction action) { Actions.Remove(action); }
public void InsertAfter(GuiAction action) { action._list = this; action._control = owner; Actions.Insert(index + 1, action); }
public void InsertBefore(GuiAction action) { action._list = this; action._control = owner; Actions.Insert(index - 1, action); }