Пример #1
0
        public void GoToContainerScreenFromContainerItem(ShowParentItemBySelectedItemEvent e, SingleNode <MarketItemComponent> selectedItem, [JoinByContainerContentItem] SingleNode <ContainerContentItemComponent> containerContent, [JoinByContainer] ContainerMarketItemNode container, SingleNode <GoToContainersScreenButtonComponent> button)
        {
            ShowGarageCategoryEvent eventInstance = new ShowGarageCategoryEvent {
                Category     = GarageCategory.CONTAINERS,
                SelectedItem = container.Entity
            };

            base.ScheduleEvent(eventInstance, button);
        }
Пример #2
0
        public void HidePopup(ButtonClickEvent e, SingleNode <LoginRewardAcceptButton> button, [JoinAll] ICollection <LoginRewardsNotificationNode> notifications, [JoinAll] SingleNode <LoginRewardDialog> popup)
        {
            popup.component.Hide();
            ShowGarageCategoryEvent eventInstance = new ShowGarageCategoryEvent();

            foreach (Entity entity in popup.component.marketItems)
            {
                if (entity.HasComponent <ContainerMarkerComponent>())
                {
                    eventInstance.Category     = !entity.HasComponent <GameplayChestItemComponent>() ? GarageCategory.CONTAINERS : GarageCategory.BLUEPRINTS;
                    eventInstance.SelectedItem = entity;
                    base.ScheduleEvent(eventInstance, entity);
                }
                else if (entity.HasComponent <WeaponPaintItemComponent>())
                {
                    eventInstance.Category     = GarageCategory.PAINTS;
                    eventInstance.SelectedItem = entity;
                    base.ScheduleEvent(eventInstance, entity);
                }
                else
                {
                    if (!entity.HasComponent <PaintItemComponent>())
                    {
                        continue;
                    }
                    eventInstance.Category     = GarageCategory.PAINTS;
                    eventInstance.SelectedItem = entity;
                    base.ScheduleEvent(eventInstance, entity);
                }
                break;
            }
            foreach (LoginRewardsNotificationNode node in notifications)
            {
                base.ScheduleEvent <NotificationShownEvent>(node);
            }
        }
Пример #3
0
 public void OnShowGarageCategory(ShowGarageCategoryEvent e, Node any, [JoinAll] SingleNode <AvatarDialogComponent> ui)
 {
     ui.component.Hide();
 }