Skip to content

Commit

Permalink
Add: Multi-Conditional Select Node (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti authored Jan 22, 2023
1 parent 4528eb9 commit af4f52b
Show file tree
Hide file tree
Showing 25 changed files with 1,484 additions and 736 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* AdvancedControlFlow
*
* Copyright (c) 2022 Colory Games
* Copyright (c) 2022-2023 Colory Games
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
Expand All @@ -12,21 +12,28 @@
#include "EdGraphUtilities.h"
#include "K2Node_ConditionalSequence.h"
#include "K2Node_MultiBranch.h"
#include "SGraphNodeCondExecPairedNode.h"
#include "K2Node_MultiConditionalSelect.h"
#include "SGraphNodeConditionalSequence.h"
#include "SGraphNodeMultiBranch.h"
#include "SGraphNodeMultiConditionalSelect.h"

#define LOCTEXT_NAMESPACE "FAdvancedControlFlowModule"
#define LOCTEXT_NAMESPACE "AdvancedControlFlow"

class FGraphPanelNodeFactory_AdvancedControlFlow : public FGraphPanelNodeFactory
{
virtual TSharedPtr<SGraphNode> CreateNode(UEdGraphNode* Node) const override
{
if (UK2Node_MultiBranch* MultiBranch = Cast<UK2Node_MultiBranch>(Node))
{
return SNew(SGraphNodeCondExecPairedNode, MultiBranch);
return SNew(SGraphNodeMultiBranch, MultiBranch);
}
else if (UK2Node_ConditionalSequence* ConditionalSequence = Cast<UK2Node_ConditionalSequence>(Node))
{
return SNew(SGraphNodeCondExecPairedNode, ConditionalSequence);
return SNew(SGraphNodeConditionalSequence, ConditionalSequence);
}
else if (UK2Node_MultiConditionalSelect* MultiConditionalSelect = Cast<UK2Node_MultiConditionalSelect>(Node))
{
return SNew(SGraphNodeMultiConditionalSelect, MultiConditionalSelect);
}

return nullptr;
Expand Down
Loading

0 comments on commit af4f52b

Please sign in to comment.