| // Copyright Epic Games, Inc. All Rights Reserved. | |
| struct FPolyglotTextData; | |
| struct FPropertyChangedEvent; | |
| /** | |
| * This class allows hotfixing individual FText values anywhere | |
| */ | |
| UCLASS(config=Game, defaultconfig) | |
| class ULyraTextHotfixConfig : public UDeveloperSettings | |
| { | |
| GENERATED_BODY() | |
| public: | |
| ULyraTextHotfixConfig(const FObjectInitializer& ObjectInitializer); | |
| // UObject interface | |
| virtual void PostInitProperties() override; | |
| virtual void PostReloadConfig(FProperty* PropertyThatWasLoaded) override; | |
| virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override; | |
| // End of UObject interface | |
| private: | |
| void ApplyTextReplacements() const; | |
| private: | |
| // The list of FText values to hotfix | |
| UPROPERTY(Config, EditAnywhere) | |
| TArray<FPolyglotTextData> TextReplacements; | |
| }; | |