Optimize WB_SelectGoalMenu
This commit is contained in:
parent
38a91fb2e7
commit
ced6e40acd
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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;
|
||||
|
@ -14,4 +14,7 @@ class LUCKYWORLDV2_API UPathfindingSelectorUserWidget : public UUserWidget
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable, BlueprintImplementableEvent)
|
||||
void BPClickSelectObjectBtn();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user