Exemplo n.º 1
0
        public void ChangePrimaryColor(uint mainColor)
        {
            int colorId = BannerManager.GetColorId(mainColor);

            if (colorId < 0)
            {
                return;
            }
            this.BannerDataList[0].ColorId  = colorId;
            this.BannerDataList[0].ColorId2 = colorId;
        }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public uint GetFirstIconColor() => !this.BannerDataList.Any <BannerData>() ? uint.MaxValue : BannerManager.GetColor(this.BannerDataList[1].ColorId);
Exemplo n.º 5
0
 public uint GetPrimaryColor() => !this.BannerDataList.Any <BannerData>() ? uint.MaxValue : BannerManager.GetColor(this.BannerDataList[0].ColorId);