Esempio n. 1
0
        public static LogoImages LoadImagesFromChunk(string chunkPath)
        {
            Texture2D s;
            Texture2D e;
            Texture2D b;

            CustomTypes.LogoImages li = new CustomTypes.LogoImages();

            if (File.Exists(chunkPath + "\\LogoSaber.png"))
            {
                li.SaberLogo = LoadPNG(chunkPath + "\\LogoSaber.png");
            }

            if (File.Exists(chunkPath + "\\LogoE.png"))
            {
                li.ELogo = LoadPNG(chunkPath + "\\LogoE.png");
            }
            else if (!File.Exists(chunkPath + "\\LogoE.png"))
            {
                li.ELogo = null;
            }


            if (File.Exists(chunkPath + "\\LogoBat.png"))
            {
                li.BatLogo = LoadPNG(chunkPath + "\\LogoBat.png");
            }


            return(li);
        }
Esempio n. 2
0
        public static void FindOGLogo()
        {
            CustomTypes.LogoImages li = new CustomTypes.LogoImages();

            li.BatLogo   = Tools.GetTexture(CustomTypes.logo.bat);
            li.E         = Tools.GetTexture(CustomTypes.logo.a);
            li.SaberLogo = Tools.GetTexture(CustomTypes.logo.saber);
            li.name      = "Default";
            ImageChunks.Add(li);
        }
Esempio n. 3
0
 public static void ReplaceLogos(CustomTypes.LogoImages imgs)
 {
     ReplaceTexture(logo.bat, imgs.BatLogo);
     ReplaceTexture(logo.a, imgs.ELogo);
     ReplaceTexture(logo.saber, imgs.SaberLogo);
 }