InstructionEditor.Gui.TimeControlWindow.ToStartPushed C# (CSharp) Méthode

ToStartPushed() public méthode

public ToStartPushed ( Window callingWindow ) : void
callingWindow FlatRedBall.Gui.Window
Résultat void
        public void ToStartPushed(Window callingWindow)
        {
            bool shouldPlay = playButton.IsPressed;

            GuiData.TimeLineWindow.timeLine.CurrentValue = 0;
            GuiData.TimeLineWindow.timeLine.Start = 0;
            GuiData.TimeLineWindow.timeLine.CallOnGUIChange();
            EditorData.instructionPlayer.ChangeTime();

            StopPushed(null);

            if (shouldPlay)
            {
                playButton.Press();
            }
        }