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

TimeControlWindow() public méthode

public TimeControlWindow ( ) : System
Résultat System
        public TimeControlWindow()
            : base(GuiManager.Cursor)
        {
            GuiManager.AddWindow(this);
            SetPositionTL(11.5f, 72.6f);
            ScaleX = 11.5f;
            ScaleY = 1.95f;
            HasMoveBar = true;
            Name = "Time Controls";

            toStartButton = AddButton();
            toStartButton.SetPositionTL(1.9f, 1.9f);
            toStartButton.ScaleX = 1.5f;
            toStartButton.ScaleY = 1.5f;
            toStartButton.SetOverlayTextures(10, 1);
            toStartButton.Text = "To Start of Instruction Set";
            toStartButton.Click += new GuiMessage(ToStartPushed);

            stopButton = AddButton();
            stopButton.SetPositionTL(11.5f, 1.9f);
            stopButton.ScaleX = 1.5f;
            stopButton.ScaleY = 1.5f;
            stopButton.SetOverlayTextures(11, 1);
            stopButton.Text = "Stop";
            stopButton.Click += new GuiMessage(StopPushed);


            playButton = AddToggleButton();
            playButton.SetPositionTL(14.7f, 1.9f);
            playButton.ScaleX = 1.5f;
            playButton.ScaleY = 1.5f;
            playButton.SetOverlayTextures(9, 1);
            playButton.Text = "Play";
            playButton.Click += new GuiMessage(PlayPushed);

            mCycleButton = AddToggleButton();
            mCycleButton.SetPositionTL(17.9f, 1.9f);
            mCycleButton.ScaleX = 1.5f;
            mCycleButton.ScaleY = 1.5f;
            mCycleButton.SetOverlayTextures(8, 3);
            mCycleButton.SetText("Cycle Off", "Cycle On");


        }