示例#1
0
        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);
                });
            }
        }
示例#2
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();
                    }
                });
            });
        }
示例#3
0
        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();
        }
示例#4
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();
                    }
                });
            });
        }