示例#1
0
        public void OpenVertical()
        {
            if (State != OpenableState.Closed)
            {
                return;
            }
            Open();

            LabelChangeAnimation.Stop();
            LabelEnterAnimation.Stop();

            LabelChangeAnimation.Play(() =>
            {
                NameButtonField.PlayAnimation(() =>
                {
                    if (_openListOnOpen)
                    {
                        List.Open(Opened);
                    }
                    else
                    {
                        Opened();
                    }
                });
            });
        }
示例#2
0
        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();
                    }
                });
            });
        }