Beispiel #1
0
        protected override void OnEnable()
        {
            base.OnEnable();
            ContainersUI component = base.gameObject.GetComponent <ContainersUI>();

            if (component != null)
            {
                component.OnEnable();
            }
            this.backgroundAnimator.SetBool("Background", this.showBackground);
        }
Beispiel #2
0
        public void Select()
        {
            VisualItem   item = this._item as VisualItem;
            ContainersUI componentInParent = base.GetComponentInParent <ContainersUI>();

            base.GetComponentInParent <ContainerContentUI>().GraffitiRoot.SetActive(((item != null) && (item.Type == VisualItem.VisualItemType.Graffiti)) && componentInParent.previewMode);
            if (item != null)
            {
                ResetPreviewEvent evt = new ResetPreviewEvent {
                    ExceptPreviewGroup = this._item.MarketItem.GetComponent <PreviewGroupComponent>().Key
                };
                this.SendEvent <ResetPreviewEvent>(evt, null);
            }
            Entity userItem = this._item.UserItem;
            Entity entity   = userItem;

            if (userItem == null)
            {
                Entity local1 = userItem;
                entity = this._item.MarketItem;
            }
            this.SendEvent <ListItemSelectedEvent>(entity);
        }