Files
UnrealEngine/Engine/Plugins/Chooser/Source/ChooserEditor/Private/ChooserEditorSettings.cpp
2025-05-18 13:04:45 +08:00

43 lines
929 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ChooserEditorSettings.h"
#include "Misc/CoreDelegates.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(ChooserEditorSettings)
UChooserEditorSettings::UChooserEditorSettings()
{
FCoreDelegates::OnPreExit.AddLambda([]()
{
Get().SaveConfig();
});
}
#if WITH_EDITOR
FText UChooserEditorSettings::GetSectionText() const
{
return NSLOCTEXT("Chooser", "ChooserEditorSettingsName", "Chooser Editor");
}
FText UChooserEditorSettings::GetSectionDescription() const
{
return NSLOCTEXT("Chooser", "ChooserEditorSettingsDesc", "Configure options for the Chooser Plugin.");
}
#endif
FName UChooserEditorSettings::GetCategoryName() const
{
return FName(TEXT("Plugins"));
}
UChooserEditorSettings& UChooserEditorSettings::Get()
{
UChooserEditorSettings* MutableCDO = GetMutableDefault<UChooserEditorSettings>();
check(MutableCDO != nullptr)
return *MutableCDO;
}