diff --git a/CUE4Parse b/CUE4Parse index 3d99ba8f..47e37f17 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit 3d99ba8f8ee84d2052403858d5657f9015a5d2ab +Subproject commit 47e37f1715cb9f99946a028813b6d2cb2645483a diff --git a/FModel/Creator/CreatorPackage.cs b/FModel/Creator/CreatorPackage.cs index 7d44f685..ea40ebc6 100644 --- a/FModel/Creator/CreatorPackage.cs +++ b/FModel/Creator/CreatorPackage.cs @@ -203,69 +203,6 @@ public class CreatorPackage : IDisposable case "QuestData": creator = new Bases.MV.BaseQuest(_object, _style); 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 - case "GTargetedTeleportActiveSkill": - case "GChronomasterV2ActiveSkill": - case "GShadowstepActiveSkill": - case "GGatewayActiveSkill": - case "GStealthActiveSkill": - case "GFeatherActiveSkill": - case "GCosmeticDropTrail": - case "GFlightActiveSkill": - case "GCosmeticRunTrail": - case "GCosmeticArtifact": - case "GCosmeticTriumph": - case "GWolfsbloodSkill": - case "GDashActiveSkill": - case "GCharacterPerk": - case "GCosmeticTitle": - case "GCosmeticBadge": - case "GRMTStoreOffer": - case "GCosmeticEmote": - case "GCosmeticCard": - case "GCosmeticSkin": - case "GStoreOffer": - case "GAccolade": - case "GRuneItem": - case "GQuest": - creator = new BaseSpellIcon(_object, EIconStyle.Default); - return true; - case "GLeagueTier": - creator = new BaseLeague(_object, EIconStyle.Default); - return true; - case "GLeagueDivision": - creator = new BaseDivision(_object, EIconStyle.Default); - return true; default: creator = null; return false; diff --git a/FModel/Creator/Typefaces.cs b/FModel/Creator/Typefaces.cs index 38a9a90f..c562d70f 100644 --- a/FModel/Creator/Typefaces.cs +++ b/FModel/Creator/Typefaces.cs @@ -49,23 +49,6 @@ public class Typefaces private const string _XIANGHEHEI_SC_PRO_BLACK = "XiangHeHei_SC/MXiangHeHeiSCPro-Black"; private const string _XIANGHEHEI_SC_PRO_HEAVY = "XiangHeHei_SC/MXiangHeHeiSCPro-Heavy"; - // Spellbreak - private const string _SPELLBREAK_BASE_PATH = "/Game/UI/Fonts/"; - private const string _MONTSERRAT_SEMIBOLD = "Montserrat-Semibold"; - private const string _MONTSERRAT_SEMIBOLD_ITALIC = "Montserrat-SemiBoldItalic"; - private const string _NANUM_GOTHIC = "NanumGothic"; - private const string _QUADRAT_BOLD = "Quadrat_Bold"; - private const string _SEGOE_BOLD_ITALIC = "Segoe_Bold_Italic"; - - // WorldExplorers - private const string _BATTLE_BREAKERS_BASE_PATH = "/Game/UMG/Fonts/Faces/"; - private const string _HEMIHEAD426 = "HemiHead426"; - private const string _NOTO_SANS_JP_REGULAR = "NotoSansJP-Regular"; - private const string _LATO_BLACK = "Lato-Black"; - private const string _LATO_BLACK_ITALIC = "Lato-BlackItalic"; - private const string _LATO_LIGHT = "Lato-Light"; - private const string _LATO_MEDIUM = "Lato-Medium"; - private readonly CUE4ParseViewModel _viewModel; public readonly SKTypeface Default; // used as a fallback font for all untranslated strings (item source, ...) @@ -85,9 +68,9 @@ public class Typefaces Default = SKTypeface.FromStream(Application.GetResourceStream(_BURBANK_BIG_CONDENSED_BOLD)?.Stream); - switch (viewModel.Game) + switch (viewModel.Provider.InternalGameName.ToUpperInvariant()) { - case FGame.FortniteGame: + case "FORTNITEGAME": { DisplayName = OnTheFly(_FORTNITE_BASE_PATH + language switch @@ -172,36 +155,7 @@ public class Typefaces } + _EXT); break; } - case FGame.WorldExplorers: - { - DisplayName = OnTheFly(_BATTLE_BREAKERS_BASE_PATH + - language switch - { - ELanguage.Korean => _NOTO_SANS_KR_REGULAR, - ELanguage.Russian => _LATO_BLACK, - ELanguage.Japanese => _NOTO_SANS_JP_REGULAR, - ELanguage.Chinese => _NOTO_SANS_SC_REGULAR, - _ => _HEMIHEAD426 - } + _EXT); - - Description = OnTheFly(_BATTLE_BREAKERS_BASE_PATH + - language switch - { - ELanguage.Korean => _NOTO_SANS_KR_REGULAR, - ELanguage.Russian => _LATO_BLACK, - ELanguage.Japanese => _NOTO_SANS_JP_REGULAR, - ELanguage.Chinese => _NOTO_SANS_SC_REGULAR, - _ => _HEMIHEAD426 - } + _EXT); - break; - } - case FGame.g3: - { - DisplayName = OnTheFly(_SPELLBREAK_BASE_PATH + _QUADRAT_BOLD + _EXT); - Description = OnTheFly(_SPELLBREAK_BASE_PATH + _MONTSERRAT_SEMIBOLD + _EXT); - break; - } - case FGame.MultiVersus: + case "MULTIVERSUS": { DisplayName = OnTheFly(_PANDAGAME_BASE_PATH + language switch { diff --git a/FModel/Enums.cs b/FModel/Enums.cs index eaa7cd24..77c81c0e 100644 --- a/FModel/Enums.cs +++ b/FModel/Enums.cs @@ -52,56 +52,6 @@ public enum EDiscordRpc Never } -public enum FGame -{ - [Description("Unknown")] - Unknown, - [Description("Fortnite")] - FortniteGame, - [Description("Valorant")] - ShooterGame, - [Description("Dead By Daylight")] - DeadByDaylight, - [Description("Borderlands 3")] - OakGame, - [Description("Minecraft Dungeons")] - Dungeons, - [Description("Battle Breakers")] - WorldExplorers, - [Description("Spellbreak")] - g3, - [Description("State Of Decay 2")] - StateOfDecay2, - [Description("The Cycle")] - Prospect, - [Description("The Outer Worlds")] - Indiana, - [Description("Rogue Company")] - RogueCompany, - [Description("Star Wars: Jedi Fallen Order")] - SwGame, - [Description("Core")] - Platform, - [Description("Days Gone")] - BendGame, - [Description("PLAYERUNKNOWN'S BATTLEGROUNDS")] - TslGame, - [Description("Splitgate")] - PortalWars, - [Description("GTA: The Trilogy - Definitive Edition")] - Gameface, - [Description("Sea of Thieves")] - Athena, - [Description("DEPRECATED")] - PandaGame, - [Description("MultiVersus")] - MultiVersus, - [Description("Tower of Fantasy")] - Hotta, - [Description("eFootball 2023")] - eFootball -} - public enum ELoadingMode { [Description("Single")] diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml index 7def5915..9c4c7553 100644 --- a/FModel/MainWindow.xaml +++ b/FModel/MainWindow.xaml @@ -138,7 +138,7 @@