Exemple #1
0
        public static void DrawTexts(JToken theItem, Graphics myGraphic, string mode)
        {
            SetTexts(theItem);

            DrawDisplayName(theItem, myGraphic);
            DrawDescription(theItem, myGraphic);

            switch (mode)
            {
            case "athIteDef":
                DrawToLeft(ShortDescription, myGraphic);
                DrawToRight(CosmeticSource, myGraphic);
                break;

            case "consAndWeap":
                DrawToRight(ItemAction, myGraphic);
                if (Checking.ExtractedFilePath.Contains("Items\\Consumables\\"))
                {
                    DrawToLeft(MaxStackSize, myGraphic);
                }
                break;

            case "variant":
                DrawToLeft(ShortDescription, myGraphic);
                DrawToRight(CosmeticId, myGraphic);
                break;

            case "stwHeroes":
                DrawToRight(HeroType, myGraphic);
                DrawPower(myGraphic);
                break;

            case "stwDefenders":
                DrawToRight(DefenderType, myGraphic);
                DrawPower(myGraphic);
                break;
            }

            JToken exportToken = theItem["export_type"];

            if (exportToken != null && exportToken.Value <string>().Equals("AthenaItemWrapDefinition") && Checking.WasFeatured && ItemIcon.ItemIconPath.Contains("WeaponRenders"))
            {
                DrawAdditionalImage(theItem, myGraphic);
            }

            JToken ammoToken = theItem["AmmoData"];

            if (ammoToken != null)
            {
                JToken assetPathName = ammoToken["asset_path_name"];
                if (assetPathName != null && assetPathName.Value <string>().Contains("Ammo")) //TO AVOID TRIGGERING CONSUMABLES, NAME SHOULD CONTAIN "AMMO"
                {
                    ItemIcon.GetAmmoData(assetPathName.Value <string>(), myGraphic);

                    DrawWeaponStat(WeaponDataTable, WeaponRowName, myGraphic);
                }
            }

            DrawCosmeticUff(theItem, myGraphic);
        }
Exemple #2
0
        public static void DrawTexts(ItemsIdParser theItem, Graphics myGraphic, string mode)
        {
            DrawDisplayName(theItem, myGraphic);
            DrawDescription(theItem, myGraphic);

            SetTexts(theItem);

            switch (mode)
            {
            case "athIteDef":
                DrawToLeft(ShortDescription, myGraphic);
                DrawToRight(CosmeticSource, myGraphic);
                break;

            case "consAndWeap":
                DrawToRight(ItemAction, myGraphic);
                if (MainWindow.ExtractedFilePath.Contains("Items\\Consumables\\"))
                {
                    DrawToLeft(MaxStackSize, myGraphic);
                }
                break;

            case "variant":
                DrawToLeft(ShortDescription, myGraphic);
                DrawToRight(CosmeticId, myGraphic);
                break;

            case "stwHeroes":
                DrawToRight(HeroType, myGraphic);
                DrawPower(myGraphic);
                break;

            case "stwDefenders":
                DrawToRight(DefenderType, myGraphic);
                DrawPower(myGraphic);
                break;
            }

            if (theItem.ExportType == "AthenaItemWrapDefinition" && Checking.WasFeatured && ItemIcon.ItemIconPath.Contains("WeaponRenders"))
            {
                DrawAdditionalImage(theItem, myGraphic);
            }
            if (theItem.AmmoData != null && theItem.AmmoData.AssetPathName.Contains("Ammo")) //TO AVOID TRIGGERING CONSUMABLES, NAME SHOULD CONTAIN "AMMO"
            {
                ItemIcon.GetAmmoData(theItem.AmmoData.AssetPathName, myGraphic);
                DrawWeaponStat(WeaponRowName, myGraphic);
            }

            DrawCosmeticUff(theItem, myGraphic);
        }