Example #1
0
        public void Process(StoryState state)
        {
            Menus.MenuSwitcher.ShowBlankMenu();
            Components.SpokenTextMenu textMenu;
            IMenu menuToFind = Windows.WindowSwitcher.GameWindow.MenuManager.FindMenu("story-spokenTextMenu");

            if (menuToFind != null)
            {
                textMenu = (Components.SpokenTextMenu)menuToFind;
            }
            else
            {
                textMenu = new Components.SpokenTextMenu("story-spokenTextMenu", Windows.WindowSwitcher.GameWindow.MapViewer.Size);
            }
            textMenu.DisplayText(StoryProcessor.ReplaceVariables(question), mugshot);
            Windows.WindowSwitcher.GameWindow.MenuManager.AddMenu(textMenu, true);

            Components.OptionSelectionMenu optionMenu = new Components.OptionSelectionMenu("story-optionSelectionMenu", Windows.WindowSwitcher.GameWindow.MapViewer.Size, options);
            optionMenu.OptionSelected += new Components.OptionSelectionMenu.OptionSelectedDelegate(optionMenu_OptionSelected);
            Windows.WindowSwitcher.GameWindow.MenuManager.AddMenu(optionMenu, true);

            Windows.WindowSwitcher.GameWindow.MenuManager.SetActiveMenu(optionMenu);
            Windows.WindowSwitcher.GameWindow.MenuManager.BlockInput = true;

            storyState = state;

            state.Pause();

            optionMenu.OptionSelected -= new Components.OptionSelectionMenu.OptionSelectedDelegate(optionMenu_OptionSelected);
            Windows.WindowSwitcher.GameWindow.MenuManager.RemoveMenu(optionMenu);

            //if (state.NextSegment == null || !state.NextSegment.UsesSpeechMenu) {
            Windows.WindowSwitcher.GameWindow.MenuManager.RemoveMenu(textMenu);
            //}
        }
Example #2
0
        public void Process(StoryState state)
        {
            Network.Messenger.SendPacket(PMDCP.Sockets.TcpPacket.CreatePacket("actonaction"));

            state.StoryPaused = true;
            state.Pause();
        }
        public void Process(StoryState state)
        {
            this.storyState = state;

            Players.MyPlayer myPlayer = Players.PlayerManager.MyPlayer;
            myPlayer.TargetX            = x;
            myPlayer.TargetY            = y;
            myPlayer.StoryMovementSpeed = (Enums.MovementSpeed)speed;

            if (this.pause)
            {
                state.StoryPaused = true;
                state.Pause();
                state.StoryPaused = false;
            }
        }
Example #4
0
        public void Process(StoryState state)
        {
            this.storyState = state;
            for (int i = 0; i < state.FNPCs.Count; i++)
            {
                if (state.FNPCs[i].ID == id)
                {
                    state.FNPCs[i].TargetX = x;
                    state.FNPCs[i].TargetY = y;
                }
            }

            if (this.pause)
            {
                state.StoryPaused = true;
                state.Pause();
                state.StoryPaused = false;
            }
        }
Example #5
0
        public void Process(StoryState state)
        {
            Menus.MenuSwitcher.ShowBlankMenu();
            Components.SpokenTextMenu textMenu;
            IMenu menuToFind = Windows.WindowSwitcher.GameWindow.MenuManager.FindMenu("story-spokenTextMenu");

            if (menuToFind != null)
            {
                textMenu = (Components.SpokenTextMenu)menuToFind;
            }
            else
            {
                textMenu = new Components.SpokenTextMenu("story-spokenTextMenu", Windows.WindowSwitcher.GameWindow.MapViewer.Size);
            }
            textMenu.Click   += new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(textMenu_Click);
            textMenu.KeyDown += new EventHandler <SdlDotNet.Input.KeyboardEventArgs>(textMenu_KeyDown);
            textMenu.DisplayText(StoryProcessor.ReplaceVariables(text), speaker);
            Windows.WindowSwitcher.GameWindow.MenuManager.AddMenu(textMenu, true);
            Windows.WindowSwitcher.GameWindow.MenuManager.BlockInput = false;

            this.storyState = state;

            if (Windows.WindowSwitcher.GameWindow.BattleLog.Visible)
            {
                Windows.WindowSwitcher.GameWindow.BattleLog.Hide();
            }

            state.Pause();

            textMenu.Click   -= new EventHandler <SdlDotNet.Widgets.MouseButtonEventArgs>(textMenu_Click);
            textMenu.KeyDown -= new EventHandler <SdlDotNet.Input.KeyboardEventArgs>(textMenu_KeyDown);

            if (state.NextSegment == null || !state.NextSegment.UsesSpeechMenu)
            {
                Windows.WindowSwitcher.GameWindow.MenuManager.RemoveMenu(textMenu);
            }
        }
Example #6
0
 public void Process(StoryState state)
 {
     state.Pause(length);
 }
Example #7
0
        public void Process(StoryState state)
        {
            Menus.MenuSwitcher.ShowBlankMenu();
            Components.SpokenTextMenu textMenu;
            IMenu menuToFind = Windows.WindowSwitcher.GameWindow.MenuManager.FindMenu("story-spokenTextMenu");
            if (menuToFind != null) {
                textMenu = (Components.SpokenTextMenu)menuToFind;
            } else {
                textMenu = new Components.SpokenTextMenu("story-spokenTextMenu", Windows.WindowSwitcher.GameWindow.MapViewer.Size);
            }
            textMenu.DisplayText(StoryProcessor.ReplaceVariables(question), mugshot);
            Windows.WindowSwitcher.GameWindow.MenuManager.AddMenu(textMenu, true);

            Components.OptionSelectionMenu optionMenu = new Components.OptionSelectionMenu("story-optionSelectionMenu", Windows.WindowSwitcher.GameWindow.MapViewer.Size, this.options);
            optionMenu.OptionSelected += new Components.OptionSelectionMenu.OptionSelectedDelegate(optionMenu_OptionSelected);
            Windows.WindowSwitcher.GameWindow.MenuManager.AddMenu(optionMenu, true);

            Windows.WindowSwitcher.GameWindow.MenuManager.SetActiveMenu(optionMenu);
            Windows.WindowSwitcher.GameWindow.MenuManager.BlockInput = true;

            this.storyState = state;

            state.Pause();

            optionMenu.OptionSelected -= new Components.OptionSelectionMenu.OptionSelectedDelegate(optionMenu_OptionSelected);
            Windows.WindowSwitcher.GameWindow.MenuManager.RemoveMenu(optionMenu);

            //if (state.NextSegment == null || !state.NextSegment.UsesSpeechMenu) {
                Windows.WindowSwitcher.GameWindow.MenuManager.RemoveMenu(textMenu);
            //}
        }
Example #8
0
        public void Process(StoryState state)
        {
            Network.Messenger.SendPacket(PMU.Sockets.TcpPacket.CreatePacket("actonaction"));

            state.StoryPaused = true;
            state.Pause();
        }
Example #9
0
        public void Process(StoryState state)
        {
            this.storyState = state;

            Players.MyPlayer myPlayer = Players.PlayerManager.MyPlayer;
            myPlayer.TargetX = x;
            myPlayer.TargetY = y;
            myPlayer.StoryMovementSpeed = (Enums.MovementSpeed)speed;

            if (this.pause) {
                state.StoryPaused = true;
                state.Pause();
                state.StoryPaused = false;
            }
        }
Example #10
0
 public void Process(StoryState state)
 {
     state.Pause(length);
 }
Example #11
0
        public void Process(StoryState state)
        {
            this.storyState = state;
            for (int i = 0; i < state.FNPCs.Count; i++) {
                if (state.FNPCs[i].ID == id) {
                    state.FNPCs[i].TargetX = x;
                    state.FNPCs[i].TargetY = y;
                }
            }

            if (this.pause) {
                state.StoryPaused = true;
                state.Pause();
                state.StoryPaused = false;
            }
        }
Example #12
0
        public void Process(StoryState state)
        {
            Menus.MenuSwitcher.ShowBlankMenu();
            Components.SpokenTextMenu textMenu;
            IMenu menuToFind = Windows.WindowSwitcher.GameWindow.MenuManager.FindMenu("story-spokenTextMenu");
            if (menuToFind != null) {
                textMenu = (Components.SpokenTextMenu)menuToFind;
            } else {
                textMenu = new Components.SpokenTextMenu("story-spokenTextMenu", Windows.WindowSwitcher.GameWindow.MapViewer.Size);
            }
            textMenu.Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(textMenu_Click);
            textMenu.KeyDown += new EventHandler<SdlDotNet.Input.KeyboardEventArgs>(textMenu_KeyDown);
            textMenu.DisplayText(StoryProcessor.ReplaceVariables(text), speaker);
            Windows.WindowSwitcher.GameWindow.MenuManager.AddMenu(textMenu, true);
            Windows.WindowSwitcher.GameWindow.MenuManager.BlockInput = false;

            this.storyState = state;

            if (Windows.WindowSwitcher.GameWindow.BattleLog.Visible) {
                Windows.WindowSwitcher.GameWindow.BattleLog.Hide();
            }

            state.Pause();

            textMenu.Click -= new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(textMenu_Click);
            textMenu.KeyDown -= new EventHandler<SdlDotNet.Input.KeyboardEventArgs>(textMenu_KeyDown);

            if (state.NextSegment == null || !state.NextSegment.UsesSpeechMenu) {
                Windows.WindowSwitcher.GameWindow.MenuManager.RemoveMenu(textMenu);
            }
        }