A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DialogueObject_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"
6#include "IDetailPropertyRow.h"
7
8class FDetailWidgetRow;
9class UDlgDialogue;
10class UBlueprint;
11
12
13// Custom row for Objects that most likely are Blueprints?
14// This only works with the IDetailPropertyRow::CustomWidget
15// If we don't use this the children of EditInlineNew won't be displayed
16// Custom row for things that can Handle Objects that are most likely Blueprints or Native Classes
17// And this helps us to open them in the Blueprint Editor or open the Native Class inside the IDE
18class FDialogueObject_CustomRowHelper : public TSharedFromThis<FDialogueObject_CustomRowHelper>
19{
21
22public:
23 FDialogueObject_CustomRowHelper(IDetailPropertyRow* InPropertyRow);
25
26 // Update the full property row.
27 void Update();
28
29 // Mutually exclusive with
31 {
32 OpenType = InOpenType;
34 return *this;
35 }
36
37protected:
38 // Reset to default
39 virtual FReply OnBrowseClicked();
40 virtual FReply OnOpenClicked();
41
42 virtual UObject* GetObject() const;
43 UBlueprint* GetBlueprint() const;
44 bool IsObjectABlueprint() const;
45
46 virtual FText GetBrowseObjectText() const;
47 virtual FText GetJumpToObjectText() const;
48 virtual float GetRowMinimumDesiredWidth() const { return 300.f; }
49
50 EVisibility GetOpenButtonVisibility() const;
51 EVisibility GetBrowseButtonVisibility() const;
52 virtual bool CanBeVisible() const { return true; }
53
54protected:
55 // The Property handle of what this row represents
56 IDetailPropertyRow* PropertyRow = nullptr;
57
58 // Blueprint Editor
59 bool bForceFullEditor = true;
60 FName FunctionNameToOpen = NAME_None;
63};
EDialogueBlueprintOpenType
FDialogueObject_CustomRowHelper(IDetailPropertyRow *InPropertyRow)
Self & SetFunctionNameToOpen(EDialogueBlueprintOpenType InOpenType, FName Name)
UCLASS(BlueprintType, Meta = (DisplayThumbnail = "true"))
Definition DlgDialogue.h:85