A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DialogueBase_CustomRowHelper.cpp
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
3
4#include "PropertyHandle.h"
5#include "DetailWidgetRow.h"
6
7#define LOCTEXT_NAMESPACE "TextPropertyPickListCustomRowHelper"
8
10// FDialogueBase_CustomRowHelper
11FDialogueBase_CustomRowHelper::FDialogueBase_CustomRowHelper(FDetailWidgetRow* InDetailWidgetRow, const TSharedPtr<IPropertyHandle>& InPropertyHandle) :
12 DetailWidgetRow(InDetailWidgetRow),
13 PropertyHandle(InPropertyHandle),
14 DisplayName(DetailWidgetRow->FilterTextString),
15 ToolTip(InPropertyHandle->GetToolTipText())
16{
17 check(DetailWidgetRow);
18 check(PropertyHandle.IsValid());
19}
20
23{
24 // Set display name and tooltips
25 // Sets a string which should be used to filter the content when a user searches
26 DetailWidgetRow->FilterString(DisplayName);
27 PropertyHandle->SetToolTipText(ToolTip);
28
29 NameContentWidget = PropertyHandle->CreatePropertyNameWidget(DisplayName, ToolTip);
30
31 // NOTE set the tooltip of your value content widget inside the implementation class.
33}
34
35#undef LOCTEXT_NAMESPACE
FDialogueBase_CustomRowHelper(FDetailWidgetRow *InDetailWidgetRow, const TSharedPtr< IPropertyHandle > &InPropertyHandle)
virtual void UpdateInternal()=0
TSharedPtr< IPropertyHandle > PropertyHandle