Beispiel #1
0
        public void NavigateLink(NavigateLinkEvent e, Node node)
        {
            ParseLinkEvent eventInstance = new ParseLinkEvent {
                Link = e.Link
            };

            base.ScheduleEvent(eventInstance, node);
            if (!this.IsParsed(eventInstance))
            {
                if (eventInstance.ParseMessage != null)
                {
                    base.Log.ErrorFormat("Link parse error: {0}, ParseMessage: {1}", e.Link, eventInstance.ParseMessage);
                }
                else
                {
                    base.Log.ErrorFormat("Link parse error: {0}", e.Link);
                }
            }
            else if (eventInstance.CustomNavigationEvent != null)
            {
                eventInstance.CustomNavigationEvent.Schedule();
            }
            else
            {
                ShowScreenEvent event4 = new ShowScreenEvent(eventInstance.ScreenType, AnimationDirection.LEFT);
                if (eventInstance.ScreenContext != null)
                {
                    event4.SetContext(eventInstance.ScreenContext, eventInstance.ScreenContextAutoDelete);
                }
                base.ScheduleEvent(event4, node);
            }
        }
Beispiel #2
0
 public void ShowHeaderAnimation(ShowScreenEvent e, Node any, [JoinAll] TopPanelNode topPanel)
 {
     if (topPanel.topPanel.HasHeader)
     {
         topPanel.topPanel.screenHeader.SetTrigger("forward");
     }
 }
Beispiel #3
0
        public void RequestShowScreen(ShowScreenEvent e, Node any, [JoinAll] SingleNode <ScreensRegistryComponent> navigationNode)
        {
            base.Log.InfoFormat("RequestShowScreen {0}", e.ShowScreenData.ScreenType.Name);
            RequestShowScreenComponent component = new RequestShowScreenComponent {
                Event = e
            };

            navigationNode.Entity.AddComponent(component);
        }
Beispiel #4
0
 public void AttachScreenToTargeBattle(ShowScreenEvent e, SingleNode <BattleGroupComponent> node, [JoinAll] UngroupedBattleSelectLoadScreenNode screen)
 {
     screen.Entity.AddComponent(new BattleGroupComponent(node.component.Key));
 }
Beispiel #5
0
 public void CalculateFlightToTank(ShowScreenEvent e, Node any, [Combine, JoinAll] HangarLocationScreenNode screen, [Combine, JoinAll] HangarCameraNode hangar)
 {
     this.StartFlightToTank(hangar);
 }