Exemple #1
0
        public void MarkUserItems(ShowGarageItemsEvent e, [Combine] ContainerContentItemNode containerContentItem, [JoinAll] ContainerContentScreenNode screenNode)
        {
            Entity entity = Flow.Current.EntityRegistry.GetEntity(containerContentItem.simpleContainerContentItem.MarketItemId);

            if (base.Select <SingleNode <UserItemComponent> >(entity, typeof(MarketItemGroupComponent)).Count > 0)
            {
                this.MarkItem(containerContentItem.garageListItem.gameObject, true);
            }
        }
        public void SetHeaderOnFirstSelectItem(SelectGarageItemEvent e, GarageListContainerSimpleItemNode listItemNode, [JoinAll] ContainerContentScreenNode screen, [JoinAll] SingleNode <TopPanelComponent> topPanel)
        {
            Entity entity = Flow.Current.EntityRegistry.GetEntity(listItemNode.simpleContainerContentItem.MarketItemId);

            topPanel.component.NewHeader = entity.GetComponent <DescriptionItemComponent>().Name;
        }
 public void HideGraffiti(NodeAddedEvent e, ContainerContentScreenNode screen, [JoinAll] ItemPreviewBaseSystem.GraffitiPreviewNode graffiti)
 {
     graffiti.Entity.RemoveComponent <HangarItemPreviewComponent>();
     screen.graffitiPreview.ResetPreview();
 }