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); }
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); } }
public void OnShowGarageCategory(ShowGarageCategoryEvent e, Node any, [JoinAll] SingleNode <AvatarDialogComponent> ui) { ui.component.Hide(); }