public List <Texture2D> SASSScreens() { List <Texture2D> list = new List <Texture2D>(); bool addKerbals = FixLoadingScreen.recolorKerbals || FixLoadingScreen.keepGreenKerbals; if (addKerbals) { if (FixLoadingScreen.keepGreenKerbals) { return(new List <Texture2D>()); } foreach (string name in names) { Texture2D custom = PNGtools.Load(path + "Recolored/" + name + ".png"); if (custom == null) { continue; } if (name == "apollo11") { Texture2D pole = PNGtools.Load(path + "Fixes/pole.png"); Texture2D flag = PNGtools.Load(path + "Fixes/flags.png"); if (pole != null && flag != null) { PNGtools.Overlay(custom, pole, 1844, 269); PNGtools.Overlay(custom, flag.GetPixels(rnd.Next(flag.width / 42) * 42, 0, 42, 26), 42, 1850, 527); custom.Apply(); } } list.Add(custom); } } AddLogo(list, 16 - list.Count); if (list.Count > 0) { return(list); } return(new List <Texture2D>()); }
void SmallLogo(Texture2D texture, string name) { Texture2D smallLogo = null; if (texture.height == 1280) { smallLogo = PNGtools.Load(path + "Fixes/SASSLogoSmall.png"); } else { smallLogo = PNGtools.Load(path + "Fixes/SASSLogoXSmall.png"); } if (smallLogo != null) { PNGtools.Overlay(texture, smallLogo, texture.width - (int)(46d / 768d * texture.height) - smallLogo.width, texture.height - (int)(43d / 768d * texture.height) - smallLogo.height); } PNGtools.Export(texture, path + "Recolored/", name); }