You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 62471b2edc6183e3f51a8a07 #preflight 62473c85f73c316f680acef9 [CL 19592606 by Patrick Boutot in ue5-main branch]
24 lines
521 B
C++
24 lines
521 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "MVVMBlueprintViewModelContext.h"
|
|
|
|
FMVVMBlueprintViewModelContext::FMVVMBlueprintViewModelContext(TSubclassOf<UMVVMViewModelBase> InClass, FGuid InGuid) :
|
|
ViewModelContextId(InGuid),
|
|
ViewModelClass(InClass)
|
|
{
|
|
|
|
}
|
|
|
|
FText FMVVMBlueprintViewModelContext::GetDisplayName() const
|
|
{
|
|
if (!OverrideDisplayName.IsEmpty())
|
|
{
|
|
return OverrideDisplayName;
|
|
}
|
|
if (ViewModelClass.Get())
|
|
{
|
|
return ViewModelClass->GetDisplayNameText();
|
|
}
|
|
return FText::GetEmpty();
|
|
}
|