Exemplo n.º 1
0
 private void HidePopup([JoinAll] EnergyCompensationNotificationNode notification, [JoinAll] Optional <SingleNode <EnergyCompensationDialog> > popup)
 {
     if (popup.IsPresent())
     {
         popup.Get().component.Hide();
     }
     base.ScheduleEvent <NotificationShownEvent>(notification);
 }
Exemplo n.º 2
0
        public void Fill(NodeAddedEvent e, EnergyCompensationNotificationNode notification, SingleNode <EnergyCompensationDialog> dialogNode, [JoinAll] Optional <SingleNode <WindowsSpaceComponent> > screens)
        {
            CheckForTutorialEvent eventInstance = new CheckForTutorialEvent();

            base.ScheduleEvent(eventInstance, notification);
            if (eventInstance.TutorialIsActive)
            {
                base.ScheduleEvent <NotificationShownEvent>(notification);
            }
            else
            {
                EnergyCompensationDialog component = dialogNode.component;
                List <Animator>          animators = !screens.IsPresent() ? new List <Animator>() : screens.Get().component.Animators;
                component.Show(notification.energyCompensationNotification.Charges, notification.energyCompensationNotification.Crys, animators);
            }
        }
Exemplo n.º 3
0
 public void HidePopup(ShowTutorialStepEvent e, Node any, [JoinAll] EnergyCompensationNotificationNode notification, [JoinAll] Optional <SingleNode <EnergyCompensationDialog> > popup)
 {
     this.HidePopup(notification, popup);
 }
Exemplo n.º 4
0
 public void HidePopup(ButtonClickEvent e, SingleNode <EnergyCompensationDialogCloseButton> button, [JoinAll] EnergyCompensationNotificationNode notification, [JoinAll] Optional <SingleNode <EnergyCompensationDialog> > popup)
 {
     this.HidePopup(notification, popup);
 }