Пример #1
0
        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();
        }
Пример #2
0
        private void load(KaraokeConfigManager manager)
        {
            var scrollConfig = manager.GetObjectBindable <MobileScrollAnixConfig>(KaraokeSetting.TouchScreen);

            MobileScrollAnixConfig.BindTo(scrollConfig);
        }