FairyGUI.GRoot.TogglePopup C# (CSharp) Méthode

TogglePopup() public méthode

If a popup is showing, then close it; otherwise, open it.
public TogglePopup ( GObject popup ) : void
popup GObject
Résultat void
        public void TogglePopup(GObject popup)
        {
            TogglePopup(popup, null, null);
        }

Same methods

GRoot::TogglePopup ( GObject popup, GObject target ) : void
GRoot::TogglePopup ( GObject popup, GObject target, object downward ) : void

Usage Example

        private void __mousedown()
        {
            _down = true;
            Stage.inst.onMouseUp.Add(__mouseup);

            if (_mode == ButtonMode.Common)
            {
                SetState(DOWN);
            }

            if (linkedPopup != null)
            {
                if (linkedPopup is Window)
                {
                    ((Window)linkedPopup).ToggleStatus();
                }
                else
                {
                    GRoot r = this.root;
                    if (r != null)
                    {
                        r.TogglePopup(linkedPopup, this);
                    }
                }
            }
        }
All Usage Examples Of FairyGUI.GRoot::TogglePopup