Example #1
0
        private void load(RulesetConfigCache configCache)
        {
            // Cache ruleset config manager because karaoke input manager need it.
            var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());

            Dependencies.Cache(config);
        }
Example #2
0
        private void load(RulesetConfigCache configCache)
        {
            var config = (OsuRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());

            config.BindWith(OsuRulesetSetting.SnakingInSliders, snakingIn);
            config.BindWith(OsuRulesetSetting.SnakingOutSliders, snakingOut);
        }
        private void load(RulesetConfigCache configCache)
        {
            // Cache ruleset config manager and session because karaoke input manager need it.
            var config  = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());
            var session = new KaraokeSessionStatics(config, null);

            Dependencies.Cache(config);
            Dependencies.Cache(session);
        }
Example #4
0
        private void load(RulesetConfigCache configCache)
        {
            var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());

            Dependencies.Cache(new KaraokeSessionStatics(config, null));

            SetContents(() => new KaraokeInputManager(new KaraokeRuleset().RulesetInfo)
            {
                Child = new NotePlayfield(COLUMN_NUMBER)
            });
        }
        private void load(RulesetConfigCache configCache)
        {
            var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());

            Dependencies.Cache(new KaraokeSessionStatics(config, null));

            // Cannot work now because it need extra BDL in child
            Add(new Container
            {
                RelativeSizeAxes = Axes.Both,
                Child            = ControlLayer = new ControlLayer(null)
                {
                    RelativeSizeAxes = Axes.Both,
                }
            });

            AddStep("Toggle setting", ControlLayer.ToggleGameplaySettingsOverlay);
        }
Example #6
0
        private void load(RulesetConfigCache configCache)
        {
            var config = (KaraokeRulesetConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());

            Dependencies.Cache(new KaraokeSessionStatics(config, null));

            Child = new GridContainer
            {
                RelativeSizeAxes = Axes.Both,
                Anchor           = Anchor.Centre,
                Origin           = Anchor.Centre,
                Content          = new[]
                {
                    new[]
                    {
                        createColumn(ScrollingDirection.Left, COLUMNS),
                    },
                    new[]
                    {
                        createColumn(ScrollingDirection.Right, COLUMNS)
                    }
                }
            };
        }
Example #7
0
        private void load(RulesetConfigCache configCache)
        {
            var config = (ManiaConfigManager)configCache.GetConfigFor(Ruleset.Value.CreateInstance());

            config.BindWith(ManiaSetting.ScrollDirection, direction);
        }