private void load(KaraokeSessionStatics session) { // Translate translateCheckBox.Current = session.GetBindable <bool>(KaraokeRulesetSession.UseTranslate); translateDropDown.Current = session.GetBindable <CultureInfo>(KaraokeRulesetSession.PreferLanguage); // hidden dropdown if not translate translateCheckBox.Current.BindValueChanged(value => { if (value.NewValue) { translateText.Show(); translateDropDown.Show(); } else { translateText.Hide(); translateDropDown.Hide(); } }, true); }
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); }
private void load(KaraokeSessionStatics session) { // Ruby/Romaji displayRubyCheckBox.Current = session.GetBindable <bool>(KaraokeRulesetSession.DisplayRuby); displayRomajiCheckBox.Current = session.GetBindable <bool>(KaraokeRulesetSession.DisplayRomaji); }
private void load(OsuColour colours, [CanBeNull] KaraokeSessionStatics session) { session?.BindWith(KaraokeRulesetSession.SaitenPitch, saitenPitch); session?.GetBindable <SaitenStatusMode>(KaraokeRulesetSession.SaitenStatus).BindValueChanged(e => { saitenStatus.SaitenStatusMode = e.NewValue; }); }
private void load(KaraokeSessionStatics session) { pitchSliderBar.Bindable = session.GetBindable <int>(KaraokeRulesetSession.Pitch); vocalPitchSliderBar.Bindable = session.GetBindable <int>(KaraokeRulesetSession.VocalPitch); saitenPitchSliderBar.Bindable = session.GetBindable <int>(KaraokeRulesetSession.SaitenPitch); }
private void load(KaraokeSessionStatics session) { playBackSliderBar.Bindable = session.GetBindable <int>(KaraokeRulesetSession.PlaybackSpeed); }