Remove Display Duration from Format Log Message
This commit is contained in:
@@ -61,11 +61,6 @@ static bool IsVerbosityPin(const UEdGraphPin *Pin) {
|
||||
return (Pin->PinName == VerbosityPinName);
|
||||
}
|
||||
|
||||
static const FName DisplayDurationPinName(TEXT("DisplayDuration"));
|
||||
static bool IsDisplayDurationPin(const UEdGraphPin *Pin) {
|
||||
return (Pin->PinName == DisplayDurationPinName);
|
||||
}
|
||||
|
||||
static const FName FormatPinName(TEXT("Format"));
|
||||
static bool IsFormatPin(const UEdGraphPin *Pin) {
|
||||
return (Pin->PinName == FormatPinName);
|
||||
@@ -116,12 +111,6 @@ void UK2Node_FormatMessage::CreateCorrectPins()
|
||||
P->DefaultValue = TEXT("Error");
|
||||
P->AutogeneratedDefaultValue = P->DefaultValue;
|
||||
}
|
||||
|
||||
if (FindPin(DisplayDurationPinName, EGPD_Input) == nullptr) {
|
||||
UEdGraphPin *P = CreatePin(EGPD_Input, UEdGraphSchema_K2::PC_Byte, StaticEnum<ElxErrorDisplayDuration>(), DisplayDurationPinName);
|
||||
P->DefaultValue = TEXT("No_Show");
|
||||
P->AutogeneratedDefaultValue = P->DefaultValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Transfer all Existing Argument pins to the Old Pins Map.
|
||||
@@ -210,7 +199,7 @@ FText UK2Node_FormatMessage::GetNodeTitle(ENodeTitleType::Type TitleType) const
|
||||
{
|
||||
if (IsFormatErrorMessage())
|
||||
{
|
||||
return LOCTEXT("FormatErrorMessage_Title", "Format Error Message");
|
||||
return LOCTEXT("FormatErrorMessage_Title", "Format Log Message");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -227,7 +216,7 @@ FText UK2Node_FormatMessage::GetPinDisplayName(const UEdGraphPin* Pin) const
|
||||
}
|
||||
|
||||
// Many pins can go unlabeled if they have default values.
|
||||
if (IsFormatPin(Pin) || IsVerbosityPin(Pin) || IsDisplayDurationPin(Pin))
|
||||
if (IsFormatPin(Pin) || IsVerbosityPin(Pin))
|
||||
{
|
||||
if (Pin->LinkedTo.Num() == 0)
|
||||
{
|
||||
@@ -448,7 +437,6 @@ void UK2Node_FormatMessage::ExpandNode(class FKismetCompilerContext& CompilerCon
|
||||
if (IsFormatErrorMessage())
|
||||
{
|
||||
CompilerContext.MovePinLinksToIntermediate(*FindPinChecked(VerbosityPinName), *CallFormatFunction->FindPinChecked(TEXT("Verbosity")));
|
||||
CompilerContext.MovePinLinksToIntermediate(*FindPinChecked(DisplayDurationPinName), *CallFormatFunction->FindPinChecked(TEXT("DisplayDuration")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user