Example #1
0
        public override void OnIsVisibleChanged(bool oValue, bool nValue)
        {
            if (!IsVisible)
            {
                Grid.ClearLinks();
            }

            base.OnIsVisibleChanged(oValue, nValue);
        }
        public override void OnIsVisibleChanged(bool oValue, bool nValue)
        {
            base.OnIsVisibleChanged(oValue, nValue);

            UserGrid.ClearLinks();

            if (!IsTrading || GameScene.Game.Observer)
            {
                return;
            }

            CEnvir.Enqueue(new C.TradeClose());
        }
Example #3
0
        public override void OnIsVisibleChanged(bool oValue, bool nValue)
        {
            base.OnIsVisibleChanged(oValue, nValue);

            if (GameScene.Game.InventoryBox == null)
            {
                return;
            }

            if (IsVisible)
            {
                GameScene.Game.InventoryBox.Visible = true;
            }

            if (!IsVisible)
            {
                Grid.ClearLinks();
            }
        }
Example #4
0
        public override void OnIsVisibleChanged(bool oValue, bool nValue)
        {
            if (!IsVisible)
            {
                Grid.ClearLinks();
            }

            if (IsVisible)
            {
                BringToFront();
            }

            if (Settings != null)
            {
                Settings.Visible = nValue;
            }

            base.OnIsVisibleChanged(oValue, nValue);
        }