public void ChangePrimaryColor(uint mainColor) { int colorId = BannerManager.GetColorId(mainColor); if (colorId < 0) { return; } this.BannerDataList[0].ColorId = colorId; this.BannerDataList[0].ColorId2 = colorId; }
public void ChangeIconColors(uint color) { int colorId = BannerManager.GetColorId(color); if (colorId < 0) { return; } for (int index = 1; index < this.BannerDataList.Count; ++index) { this.BannerDataList[index].ColorId = colorId; this.BannerDataList[index].ColorId2 = colorId; } }
public static Banner CreateOneColoredBannerWithOneIcon( uint backgroundColor, uint iconColor, int iconMeshId) { Banner coloredEmptyBanner = Banner.CreateOneColoredEmptyBanner(BannerManager.GetColorId(backgroundColor)); if (iconMeshId == -1) { iconMeshId = BannerManager.Instance.GetRandomBannerIconId(MBRandom.Random); } coloredEmptyBanner.AddIconData(new BannerData(iconMeshId, BannerManager.GetColorId(iconColor), BannerManager.GetColorId(iconColor), new Vec2(512f, 512f), new Vec2(768f, 768f), false, false, 0.0f)); return(coloredEmptyBanner); }
public uint GetFirstIconColor() => !this.BannerDataList.Any <BannerData>() ? uint.MaxValue : BannerManager.GetColor(this.BannerDataList[1].ColorId);
public uint GetPrimaryColor() => !this.BannerDataList.Any <BannerData>() ? uint.MaxValue : BannerManager.GetColor(this.BannerDataList[0].ColorId);