A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DialogueTextPropertyPickList_CustomRowHelper.h
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#pragma once
3
4#include "DetailWidgetRow.h"
5
7
9class FDetailWidgetRow;
10
11// Helper for details panel, when we want to use SDialogueTextPropertyPickList in a custom row in the details panel
13{
16public:
17 FDialogueTextPropertyPickList_CustomRowHelper(FDetailWidgetRow* InDetailWidgetRow, const TSharedPtr<IPropertyHandle>& InPropertyHandle)
18 : FDialogueBase_CustomRowHelper(InDetailWidgetRow, InPropertyHandle) {}
19
20 // Set the SPropertyPickList
21 Self& SetTextPropertyPickListWidget(const TSharedRef<SDialogueTextPropertyPickList>& InWidget)
22 {
24 return *this;
25 }
26
27private:
28 void UpdateInternal() override;
29
30private:
31 // The TextPropertyPickList Widget.
32 TSharedPtr<SDialogueTextPropertyPickList> TextPropertyPickListWidget;
33};
FDialogueTextPropertyPickList_CustomRowHelper(FDetailWidgetRow *InDetailWidgetRow, const TSharedPtr< IPropertyHandle > &InPropertyHandle)
Self & SetTextPropertyPickListWidget(const TSharedRef< SDialogueTextPropertyPickList > &InWidget)