public void HidePopup(ButtonClickEvent e, SingleNode <PrivacyPolicyOkButton> button, [JoinAll] PrivacyPolicyNotificationNode notification, [JoinAll] Optional <SingleNode <PrivacyPolicyDialog> > popup) { if (popup.IsPresent()) { popup.Get().component.HideByAcceptButton(); } base.ScheduleEvent <NotificationShownEvent>(notification); }
public void Fill(NodeAddedEvent e, PrivacyPolicyNotificationNode notification, SingleNode <PrivacyPolicyDialog> dialogNode, SingleNode <MainScreenComponent> mainScreen, [JoinAll] Optional <SingleNode <WindowsSpaceComponent> > screens) { dialogNode.component.Show(!screens.IsPresent() ? new List <Animator>() : screens.Get().component.Animators); }