You've already forked LuckyWorld
Optimize WB_SelectGoalMenu
This commit is contained in:
@ -24,7 +24,8 @@ void USelectGoalUserWidget::NativeConstruct()
|
||||
{
|
||||
if (AllGoalListData->bIsActive)
|
||||
{
|
||||
FString GoalTypeString = UEnum::GetValueAsString<EGoalType>(AllGoalListData->GoalType);
|
||||
UEnum* GoalTypeEnum = StaticEnum<EGoalType>();
|
||||
FString GoalTypeString = GoalTypeEnum->GetDisplayNameTextByIndex(int(AllGoalListData->GoalType)).ToString();
|
||||
GetComboBoxString()->AddOption(GoalTypeString);
|
||||
bInitAddOption = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user