コード例 #1
0
ファイル: GameCore.cs プロジェクト: thomeval/wgibeat
        public void LoadCurrentTheme()
        {
            var themeFolder  = WgibeatRootFolder + "\\Content\\Textures\\";
            var currentTheme = Settings.Get <string>("Theme");

            if (currentTheme != "Default")
            {
                TextureManager.LoadTheme(themeFolder + "Default");
                Metrics.LoadFromFile(themeFolder + "Default\\metrics.txt");
                Sounds.LoadFromFolder(WgibeatRootFolder + "\\Content\\SoundEffects\\Default");
            }
            TextureManager.LoadTheme(themeFolder + currentTheme);
            Metrics.LoadFromFile(themeFolder + currentTheme + "\\metrics.txt");
            Sounds.LoadFromFolder(WgibeatRootFolder + "\\Content\\SoundEffects\\" + currentTheme);
        }