Пример #1
0
        private void load(KaraokeRulesetConfigManager rulesetConfig, KaraokeSessionStatics session)
        {
            rulesetConfig?.BindWith(KaraokeRulesetSetting.ShowCursor, DisplayCursor);

            // Pitch
            session.BindWith(KaraokeRulesetSession.Pitch, bindablePitch);
            session.BindWith(KaraokeRulesetSession.VocalPitch, bindableVocalPitch);
            session.BindWith(KaraokeRulesetSession.PlaybackSpeed, bindablePlayback);
        }
Пример #2
0
        private void load(KaraokeRulesetConfigManager rulesetConfig, KaraokeSessionStatics session)
        {
            // Cursor
            rulesetConfig?.BindWith(KaraokeRulesetSetting.ShowCursor, DisplayCursor);

            // Alpha
            rulesetConfig?.BindWith(KaraokeRulesetSetting.NoteAlpha, notePlayfieldAlpha);
            rulesetConfig?.BindWith(KaraokeRulesetSetting.LyricAlpha, lyricPlayfieldAlpha);

            // Pitch
            session.BindWith(KaraokeRulesetSession.Pitch, bindablePitch);
            session.BindWith(KaraokeRulesetSession.VocalPitch, bindableVocalPitch);
            session.BindWith(KaraokeRulesetSession.PlaybackSpeed, bindablePlayback);
        }
Пример #3
0
        private void load(KaraokeRulesetConfigManager rulesetConfig, KaraokeSessionStatics session)
        {
            // Translate
            session.BindWith(KaraokeRulesetSession.UseTranslate, translate);
            session.BindWith(KaraokeRulesetSession.PreferLanguage, translateLanguage);

            // Ruby/Romaji
            session.BindWith(KaraokeRulesetSession.DisplayRuby, displayRuby);
            session.BindWith(KaraokeRulesetSession.DisplayRomaji, displayRomaji);

            // Practice
            rulesetConfig.BindWith(KaraokeRulesetSetting.PracticePreemptTime, preemptTime);
            session.BindWith(KaraokeRulesetSession.NowLyric, nowLyric);
        }
Пример #4
0
        private void load(OsuColour colours, KaraokeSessionStatics session)
        {
            columnFlow.Children.ForEach(x => x.Colour = x.IsSpecial ? colours.Gray9 : colours.Gray0);
            replaySaitenVisualization.LineColour      = Color4.White;
            realTimeSaitenVisualization.LineColour    = colours.Yellow;

            session.BindWith(KaraokeRulesetSession.SaitenPitch, saitenPitch);
        }
Пример #5
0
        private void load(OsuColour colours, KaraokeSessionStatics session)
        {
            columnFlow.Children.ForEach(x => x.Colour = x.IsSpecial ? colours.Gray9 : colours.Gray0);
            replaySaitenVisualization.LineColour      = Color4.White;
            realTimeSaitenVisualization.LineColour    = colours.Yellow;

            session.BindWith(KaraokeRulesetSession.SaitenPitch, saitenPitch);

            session.GetBindable <SaitenStatusMode>(KaraokeRulesetSession.SaitenStatus).BindValueChanged(e => { saitenStatus.SaitenStatusMode = e.NewValue; });

            RegisterPool <Note, DrawableNote>(50);
            RegisterPool <BarLine, DrawableBarLine>(15);
        }
Пример #6
0
 private void load(KaraokeRulesetConfigManager config, KaraokeSessionStatics session)
 {
     preemptTimeSliderBar.Current = config.GetBindable <double>(KaraokeRulesetSetting.PracticePreemptTime);
     session.BindWith(KaraokeRulesetSession.NowLyric, lyricPreview.SelectedLyric);
 }
Пример #7
0
 private void load(KaraokeSessionStatics session)
 {
     session.BindWith(KaraokeRulesetSession.Pitch, bindablePitch);
     session.BindWith(KaraokeRulesetSession.VocalPitch, bindableVocalPitch);
     session.BindWith(KaraokeRulesetSession.SaitenPitch, bindableSaitenPitch);
 }
Пример #8
0
        private void load(OsuColour colours, [CanBeNull] KaraokeSessionStatics session)
        {
            session?.BindWith(KaraokeRulesetSession.SaitenPitch, saitenPitch);

            session?.GetBindable <SaitenStatusMode>(KaraokeRulesetSession.SaitenStatus).BindValueChanged(e => { saitenStatus.SaitenStatusMode = e.NewValue; });
        }
Пример #9
0
 private void load(KaraokeSessionStatics session)
 {
     session.BindWith(KaraokeRulesetSession.NowLyric, selectedLyricLine);
 }