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.
2
#include "
DialogueBase_CustomRowHelper.h
"
3
4
#include "PropertyHandle.h"
5
#include "DetailWidgetRow.h"
6
7
#define LOCTEXT_NAMESPACE "TextPropertyPickListCustomRowHelper"
8
10
// FDialogueBase_CustomRowHelper
11
FDialogueBase_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
22
void
FDialogueBase_CustomRowHelper::Update
()
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.
32
UpdateInternal
();
33
}
34
35
#undef LOCTEXT_NAMESPACE
DialogueBase_CustomRowHelper.h
EDlgTextArgumentType::DisplayName
@ DisplayName
FDialogueBase_CustomRowHelper::DetailWidgetRow
FDetailWidgetRow * DetailWidgetRow
Definition
DialogueBase_CustomRowHelper.h:56
FDialogueBase_CustomRowHelper::DisplayName
FText DisplayName
Definition
DialogueBase_CustomRowHelper.h:68
FDialogueBase_CustomRowHelper::NameContentWidget
TSharedPtr< SWidget > NameContentWidget
Definition
DialogueBase_CustomRowHelper.h:65
FDialogueBase_CustomRowHelper::ToolTip
FText ToolTip
Definition
DialogueBase_CustomRowHelper.h:69
FDialogueBase_CustomRowHelper::Update
void Update()
Definition
DialogueBase_CustomRowHelper.cpp:22
FDialogueBase_CustomRowHelper::FDialogueBase_CustomRowHelper
FDialogueBase_CustomRowHelper(FDetailWidgetRow *InDetailWidgetRow, const TSharedPtr< IPropertyHandle > &InPropertyHandle)
Definition
DialogueBase_CustomRowHelper.cpp:11
FDialogueBase_CustomRowHelper::UpdateInternal
virtual void UpdateInternal()=0
FDialogueBase_CustomRowHelper::PropertyHandle
TSharedPtr< IPropertyHandle > PropertyHandle
Definition
DialogueBase_CustomRowHelper.h:62
SDKDemo
Plugins
UnrealEngineSDK
VisualScripter
Source
DlgSystemEditor
Private
DialogueEditor
DetailsPanel
Widgets
DialogueBase_CustomRowHelper.cpp
Generated
Wed Oct 9 2024 19:52:55
by Doxygen version
1.10.0