From 3460654898fe78e8081ff21680071171adb60cca Mon Sep 17 00:00:00 2001 From: Ricky Owens <38590471+iFireMonkey@users.noreply.github.com> Date: Sun, 23 May 2021 20:53:48 -0400 Subject: [PATCH] [Battle Breakers] Massive Icon Support Added (#176) FModel 4 now supports icons in Battle Breakers such as... well... All of it? --- FModel/Creator/Bases/BB/BaseBreakersIcon.cs | 6 ++--- FModel/Creator/CreatorPackage.cs | 26 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/FModel/Creator/Bases/BB/BaseBreakersIcon.cs b/FModel/Creator/Bases/BB/BaseBreakersIcon.cs index c5f514d6..d4e66128 100644 --- a/FModel/Creator/Bases/BB/BaseBreakersIcon.cs +++ b/FModel/Creator/Bases/BB/BaseBreakersIcon.cs @@ -17,12 +17,12 @@ namespace FModel.Creator.Bases.BB public override void ParseForInfo() { - if (Object.TryGetValue(out FSoftObjectPath iconTextureAssetData, "IconTextureAssetData")) + if (Object.TryGetValue(out FSoftObjectPath iconTextureAssetData, "IconTextureAssetData", "UnlockPortraitGuideImage")) Preview = Utils.GetBitmap(iconTextureAssetData); - if (Object.TryGetValue(out FText displayName, "DisplayName")) + if (Object.TryGetValue(out FText displayName, "DisplayName", "RegionDisplayName", "ZoneName")) DisplayName = displayName.Text; - if (Object.TryGetValue(out FText description, "Description")) + if (Object.TryGetValue(out FText description, "Description", "RegionShortName", "ZoneDescription")) Description = description.Text; } diff --git a/FModel/Creator/CreatorPackage.cs b/FModel/Creator/CreatorPackage.cs index 8a9c50cd..9f275abe 100644 --- a/FModel/Creator/CreatorPackage.cs +++ b/FModel/Creator/CreatorPackage.cs @@ -163,6 +163,32 @@ namespace FModel.Creator return true; // Battle Breakers case "WExpGenericAccountItemDefinition": + case "WExpGearAccountItemDefinition": + case "WExpHQWorkerLodgesDefinition": + case "WExpPersonalEventDefinition": + case "WExpUpgradePotionDefinition": + case "WExpAccountRewardDefinition": + case "WExpHQBlacksmithDefinition": + case "WExpHQSecretShopDefinition": + case "WExpHQMonsterPitDefinition": + case "WExpHQHeroTowerDefinition": + case "WExpVoucherItemDefinition": + case "WExpTreasureMapDefinition": + case "WExpHammerChestDefinition": + case "WExpHQWorkshopDefinition": + case "WExpUnlockableDefinition": + case "WExpHQSmelterDefinition": + case "WExpContainerDefinition": + case "WExpCharacterDefinition": + case "WExpHQMarketDefinition": + case "WExpGiftboxDefinition": + case "WExpStandInDefinition": + case "WExpRegionDefinition": + case "WExpHQMineDefinition": + case "WExpXpBookDefinition": + case "WExpTokenDefinition": + case "WExpItemDefinition": + case "WExpZoneDefinition": creator = new BaseBreakersIcon(_object, EIconStyle.Default); return true; // Spellbreak