private void load(RulesetStore rulesetStore, SettingsStore settings) { var karaokeRuleset = rulesetStore.AvailableRulesets.Where(x => x.ShortName == "karaoke").FirstOrDefault(); RulesetConfig = new KaraokeConfigManager(settings, karaokeRuleset); Children = new Drawable[] { new SettingsEnumDropdown <TranslateCode> { LabelText = "Translate to...", Bindable = RulesetConfig.GetBindable <TranslateCode>(KaraokeSetting.DefaultTranslateLanguage) }, new SettingsCheckbox { LabelText = "Always shows Karaoke panel" //Bindable = config.GetBindable<bool>(OsuSetting.SnakingOutSliders) }, new SettingsCheckbox { LabelText = "Karaoke Effect" //Bindable = config.GetBindable<bool>(OsuSetting.SnakingOutSliders) }, new SettingsCheckbox { LabelText = "Enable HotKey" //Bindable = config.GetBindable<bool>(OsuSetting.SnakingOutSliders) }, new SettingsButton { Text = "Open In-game Wiki", Action = ShowWiki } }; }
private void load(KaraokeConfigManager karaokeConfig) { //initial bar lines initialBarLine(); karaokeConfig.BindWith(KaraokeSetting.NoteSpeed, VisibleTimeRange); }
/// <summary> /// PostProcessLayer /// </summary> public virtual void PostProcessLayer(KaraokeConfigManager manager) { //ProcessInput var inputLayer = InternalChildren.OfType <IControlLayer>().FirstOrDefault(); if (inputLayer != null) { var acceeptsControlLayers = InternalChildren.OfType <IAcceptControlLayer>(); foreach (var singleLayer in acceeptsControlLayers) { singleLayer.InputAction.BindTo(inputLayer.InputAction); } } //processPlatform var platformLayers = InternalChildren.OfType <IPlatformLayer>(); foreach (var singleLayer in platformLayers) { var bindable = manager.GetBindable <PlatformType>(KaraokeSetting.Device); singleLayer.PlatformType.BindTo(bindable); //if same then trigger change if (singleLayer.PlatformType == bindable.Value) { singleLayer.PlatformType.TriggerChange(); } } }
private void load(RulesetStore rulesetStore, SettingsStore settings) { var karaokeRuleset = rulesetStore.AvailableRulesets.Where(x => x.ShortName == "karaoke").FirstOrDefault(); RulesetConfig = new KaraokeConfigManager(settings, karaokeRuleset); //initial view InitialView(); }
private void load(KaraokeConfigManager manager) { KaraokeConfigManager = manager; //Dialog InitialDialogLayer(); //Frontend InitialFrontendLayer(); //Ruleset InitialRulesetLayer(); //Backend InitialBackendLayer(); //post process PostProcessLayer(manager); }
private void load(KaraokeConfigManager karaokeConfig) { if (karaokeConfig != null) { var style = karaokeConfig.GetObjectBindable <KaraokeLyricConfig>(KaraokeSetting.LyricStyle); var template = karaokeConfig.GetObjectBindable <LyricTemplate>(KaraokeSetting.Template); var singerTemplate = karaokeConfig.GetObjectBindable <SingerTemplate>(KaraokeSetting.SingerTemplate); var translateCode = karaokeConfig.GetBindable <TranslateCode>(KaraokeSetting.DefaultTranslateLanguage); KaraokeLyricPlayField.Style.BindTo(style); KaraokeLyricPlayField.Template.BindTo(template); KaraokeLyricPlayField.SingerTemplate.BindTo(singerTemplate); KaraokeLyricPlayField.TranslateCode.BindTo(translateCode); } ApplyMod(); }
private void load(KaraokeConfigManager manager) { var scrollConfig = manager.GetObjectBindable <MobileScrollAnixConfig>(KaraokeSetting.TouchScreen); MobileScrollAnixConfig.BindTo(scrollConfig); }
private void load(KaraokeConfigManager maniaConfig) { maniaConfig.BindWith(KaraokeSetting.NoteSpeed, VisibleTimeRange); }