49 lines
993 B
C
49 lines
993 B
C
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
|
|||
|
|
#include "CoreMinimal.h"
|
|||
|
|
#include "SGraphPin.h"
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 空pin
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
class DIALOGUEEDITOR_API SDialogueNoneGraphPin: public SGraphPin
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
SLATE_BEGIN_ARGS(SDialogueNoneGraphPin)
|
|||
|
|
{}
|
|||
|
|
SLATE_END_ARGS()
|
|||
|
|
void Construct(const FArguments& InArgs, UEdGraphPin* InGraphPinObj) {
|
|||
|
|
SGraphPin::Construct(SGraphPin::FArguments(), InGraphPinObj);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
virtual FSlateColor GetPinColor() const override {
|
|||
|
|
return FSlateColor(FLinearColor::White);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 对话pin
|
|||
|
|
*/
|
|||
|
|
class DIALOGUEEDITOR_API SDialogueGraphPin: public SGraphPin
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
SLATE_BEGIN_ARGS(SDialogueGraphPin)
|
|||
|
|
{}
|
|||
|
|
SLATE_END_ARGS()
|
|||
|
|
void Construct(const FArguments& InArgs, UEdGraphPin* InPin);
|
|||
|
|
FText GetDialogueText() const;
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
/** SGraphPin Interface */
|
|||
|
|
virtual FSlateColor GetPinColor() const override {return FSlateColor(FLinearColor::White);}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
TSharedPtr<STextBlock> DialogueText;
|
|||
|
|
|
|||
|
|
};
|