Пример #1
0
        public void SetUpSteps()
        {
            AddStep("Create new game instance", () =>
            {
                if (Game != null)
                {
                    Remove(Game);
                    Game.Dispose();
                }

                RecycleLocalStorage();

                // see MouseSettings
                var frameworkConfig = host.Dependencies.Get <FrameworkConfigManager>();
                frameworkConfig.GetBindable <double>(FrameworkSetting.CursorSensitivity).Disabled = false;

                Game = new TestOsuGame(LocalStorage, API);
                Game.SetHost(host);

                // todo: this can be removed once we can run audio tracks without a device present
                // see https://github.com/ppy/osu/issues/1302
                Game.LocalConfig.Set(OsuSetting.IntroSequence, IntroSequence.Circles);

                Add(Game);
            });

            AddUntilStep("Wait for load", () => Game.IsLoaded);
            AddUntilStep("Wait for intro", () => Game.ScreenStack.CurrentScreen is IntroScreen);

            ConfirmAtMainMenu();
        }
Пример #2
0
        protected void CreateGame()
        {
            Game = new TestOsuGame(LocalStorage, API);
            Game.SetHost(host);

            // todo: this can be removed once we can run audio tracks without a device present
            // see https://github.com/ppy/osu/issues/1302
            Game.LocalConfig.Set(OsuSetting.IntroSequence, IntroSequence.Circles);

            Add(Game);
        }