예제 #1
0
 public DrawableKaraokeEditRuleset(Ruleset ruleset, IBeatmap beatmap, IReadOnlyList <Mod> mods)
     : base(ruleset, beatmap, mods)
 {
     bindableEditMode.BindValueChanged(e =>
     {
         if (e.NewValue == EditMode.LyricEditor)
         {
             Playfield.Hide();
         }
         else
         {
             Playfield.Show();
         }
     }, true);
     bindableDisplayRubyToggle.BindValueChanged(x => { Session.SetValue(KaraokeRulesetSession.DisplayRuby, x.NewValue); });
     bindableDisplayRomajiToggle.BindValueChanged(x => { Session.SetValue(KaraokeRulesetSession.DisplayRomaji, x.NewValue); });
     bindableDisplayTranslateToggle.BindValueChanged(x => { Session.SetValue(KaraokeRulesetSession.UseTranslate, x.NewValue); });
 }