Пример #1
0
        protected override void HandleKeyboardState()
        {
            if (Game.IsKeyDown(Keys.O))
            {
                var gameplayCameraValues = Utility.GetGameplayCameraValues();
                Scenario.CameraSettings.Cameras.Add(gameplayCameraValues);
            }

            if (Game.IsKeyDown(Keys.K))
            {
                var gwenForm = new WeatherForm(Scenario);
                ShowForm(gwenForm);
            }

            if (Game.IsKeyDown(Keys.J))
            {
                Camera.DeleteAllCameras();
            }

            if (Game.IsKeyDown(Keys.NumPad7))
            {
                var gwenForm = new ScenarioForm(Scenario, DatasetAnnotator.RootScenariosDirectory);
                ShowForm(gwenForm);
            }
            if (Game.IsKeyDown(Keys.NumPad9))
            {
                var gwenForm = new CameraForm(Scenario);
                ShowForm(gwenForm);
            }

            if (Game.IsKeyDown(Keys.NumPad1))
            {
                var gwenForm = new PedsForm(Scenario);
                ShowForm(gwenForm);
            }

            if (Game.IsKeyDown(Keys.NumPad3))
            {
                var gwenForm = new PlaceForm(Scenario);
                ShowForm(gwenForm);
            }

            if (Game.IsKeyDown(Keys.NumPad4))
            {
                var gwenForm = new TimeForm(Scenario);
                ShowForm(gwenForm);
            }
        }
Пример #2
0
        private void timeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TimeForm spf = new TimeForm();

            spf.ShowDialog(this);
        }