You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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();
|
||
|
|
}
|