public void CloseVertical() { if (State != OpenableState.Opened) { return; } Close(); if (List.IsOpen) { List.Close(() => { NameButtonField.ReverseAnimation(() => { LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelChangeAnimation.Reverse(Closed); }); }); } else { NameButtonField.ReverseAnimation(() => { LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelChangeAnimation.Reverse(Closed); }); } }
public void OpenVertical() { if (State != OpenableState.Closed) { return; } Open(); LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelChangeAnimation.Play(() => { NameButtonField.PlayAnimation(() => { if (_openListOnOpen) { List.Open(Opened); } else { Opened(); } }); }); }
public void CloseHorizontal() { Close(); if (List.IsOpen) { List.Close(() => { NameButtonField.ReverseAnimation(() => { LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelEnterAnimation.Reverse(Closed); }); }); } else { NameButtonField.ReverseAnimation(() => { LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelEnterAnimation.Reverse(Closed); }); } ClearLabel(); }
public void OpenHorizontal(Action callback = null) { if (State != OpenableState.Closed) { return; } Open(); callback += Opened; LabelChangeAnimation.Stop(); LabelEnterAnimation.Stop(); LabelEnterAnimation.Play(() => { NameButtonField.PlayAnimation(() => { if (_openListOnOpen) { List.Open(callback); } else { Opened(); } }); }); }