A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DlgTextArgumentCustom.h
Go to the documentation of this file.
1// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2#pragma once
3#include "DlgObject.h"
4
5#include "DlgTextArgumentCustom.generated.h"
6
7class UDlgContext;
8
9
10// Abstract base class for a custom text argument
11// Extend this class to define additional data you want to store
12//
13// 1. Override GetText
14// 2. Return the new Text for the specified text argument
15UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew)
16class DLGSYSTEM_API UDlgTextArgumentCustom : public UDlgObject
17{
19public:
20 UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Dialogue")
21 FText GetText(const UDlgContext* Context, const UObject* Participant, const FString& DisplayStringParam);
22 virtual FText GetText_Implementation(const UDlgContext* Context, const UObject* Participant, const FString& DisplayStringParam)
23 {
24 return FText::GetEmpty();
25 }
26};
27
28// This is the same as UDlgTextArgumentCustom but it does NOT show the categories
29UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew, CollapseCategories)
UCLASS(BlueprintType)
Definition DlgContext.h:96
UCLASS(Abstract, ClassGroup = "Dialogue", HideCategories = ("DoNotShow"), AutoExpandCategories = ("De...
Definition DlgObject.h:13
UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew, CollapseCategories)
UCLASS(Blueprintable, BlueprintType, Abstract, EditInlineNew)
FText GetText(const UDlgContext *Context, const UObject *Participant, const FString &DisplayStringParam)
UFUNCTION(BlueprintCallable, BlueprintNativeEvent, Category = "Dialogue")
virtual FText GetText_Implementation(const UDlgContext *Context, const UObject *Participant, const FString &DisplayStringParam)