Skip to content

Commit 6899169

Browse files
Merge branch '5.3_dev' into 5.3
2 parents 13ea3c9 + ed2e1db commit 6899169

16 files changed

+79
-63
lines changed

MounteaDialogueSystem.uplugin

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"Category": "Mountea Framework",
88
"CreatedBy": "Dominik (Pavlicek) Morse",
99
"CreatedByURL": "https://github.com/Mountea-Framework",
10-
"DocsURL": "https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki",
10+
"DocsURL": "https://mountea.tools/docs/dialoguesystem/gettingstarted/firststeps/",
1111
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/product/ea38ae1f87b24807a66fdf4fa65ef521",
12-
"SupportURL": "https://bit.ly/DominikPavlicek_SupportServer",
12+
"SupportURL": "https://discord.gg/c2WQ658V44",
1313
"EngineVersion": "5.3.0",
1414
"CanContainContent": true,
1515
"Installed": true,

Source/MounteaDialogueSystem/Private/Nodes/MounteaDialogueGraphNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ FText UMounteaDialogueGraphNode::GetNodeCategory_Implementation() const
217217

218218
FString UMounteaDialogueGraphNode::GetNodeDocumentationLink_Implementation() const
219219
{
220-
return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Dialogue-Nodes");
220+
return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueNodes/DialogueNode/");
221221
}
222222

223223
FText UMounteaDialogueGraphNode::GetNodeTooltipText_Implementation() const

Source/MounteaDialogueSystem/Private/Nodes/MounteaDialogueGraphNode_ReturnToNode.cpp

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "Helpers/MounteaDialogueSystemBFC.h"
88
#include "Misc/DataValidation.h"
99
#include "TimerManager.h"
10+
#include "Algo/AnyOf.h"
1011
#include "Nodes/MounteaDialogueGraphNode_CompleteNode.h"
1112
#include "Nodes/MounteaDialogueGraphNode_StartNode.h"
1213

@@ -87,6 +88,50 @@ void UMounteaDialogueGraphNode_ReturnToNode::OnDelayDurationExpired(const TScrip
8788
}
8889
}
8990

91+
TArray<FString> UMounteaDialogueGraphNode_ReturnToNode::GetRowNames() const
92+
{
93+
if (!Graph)
94+
return {};
95+
96+
const auto AllNodes = Graph->GetAllNodes();
97+
const int32 NumNodes = AllNodes.Num();
98+
99+
TArray<int32> Indices;
100+
Indices.Reserve(NumNodes);
101+
102+
for (int32 i = 0; i < NumNodes; ++i)
103+
{
104+
Indices.Add(i);
105+
}
106+
107+
TArray<FString> NodeNames;
108+
NodeNames.Reserve(NumNodes);
109+
110+
Algo::TransformIf(
111+
Indices,
112+
NodeNames,
113+
[&](const int32 Index)
114+
{
115+
const auto Node = AllNodes[Index];
116+
if (!Node)
117+
return false;
118+
return !Algo::AnyOf(
119+
AllowedNodesFilter,
120+
[Node](const TSubclassOf<UMounteaDialogueGraphNode>& FilterClass)
121+
{
122+
return Node->IsA(FilterClass);
123+
}
124+
);
125+
},
126+
[](int32 Index)
127+
{
128+
return FString::FromInt(Index);
129+
}
130+
);
131+
132+
return NodeNames;
133+
}
134+
90135
#if WITH_EDITOR
91136

92137
FText UMounteaDialogueGraphNode_ReturnToNode::GetNodeCategory_Implementation() const

Source/MounteaDialogueSystem/Public/Decorators/MounteaDialogueDecoratorBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecoratorBase : public UObject,
6969
FString GetDecoratorDocumentationLink() const;
7070
virtual FString GetDecoratorDocumentationLink_Implementation() const
7171
{
72-
return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Dialogue-Decorators");
72+
return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueDecorators/DialogueDecorator");
7373
}
7474

7575
public:

Source/MounteaDialogueSystem/Public/Decorators/MounteaDialogueDecorator_OnlyFirstTime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecorator_OnlyFirstTime : publi
3636
virtual bool IsDecoratorAllowedForGraph_Implementation() const override { return false; };
3737

3838
virtual FString GetDecoratorDocumentationLink_Implementation() const override
39-
{ return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Decorator:-Only-First-Time-Base"); }
39+
{ return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueDecorators/OnlyFirstTimeBase"); }
4040

4141
// Returns whether Owning Node has never been called before.
4242
UFUNCTION(BlueprintCallable, BlueprintPure, Category="Mountea|Dialogue|Decorator", meta=(CustomTag="MounteaK2Validate"))

Source/MounteaDialogueSystem/Public/Decorators/MounteaDialogueDecorator_OverrideDialogue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecorator_OverrideDialogue : pub
2727
virtual bool IsDecoratorAllowedForGraph_Implementation() const override { return false; };
2828

2929
virtual FString GetDecoratorDocumentationLink_Implementation() const override
30-
{ return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Decorator:-Override-Dialogue-Row-Data"); }
30+
{ return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueDecorators/OverrideDialogueRowData"); }
3131

3232
protected:
3333

Source/MounteaDialogueSystem/Public/Decorators/MounteaDialogueDecorator_OverrideOnlyFirstTime.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,20 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecorator_OverrideOnlyFirstTime
2828
virtual bool IsDecoratorAllowedForGraph_Implementation() const override { return false; };
2929

3030
virtual FString GetDecoratorDocumentationLink_Implementation() const override
31-
{ return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Decorator:-Override-Only-Frist-Time"); }
31+
{ return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueDecorators/OverrideOnlyFristTime"); }
3232

3333

3434
protected:
3535

36-
UPROPERTY(Category="Override", EditAnywhere, BlueprintReadOnly, meta=(DisplayThumbnail=false, NoResetToDefault, RequiredAssetDataTags = "RowStructure=/Script/MounteaDialogueSystem.DialogueRow"))
36+
UPROPERTY(Category="Override", EditAnywhere, BlueprintReadOnly,
37+
meta=(DisplayThumbnail=false, NoResetToDefault,
38+
RequiredAssetDataTags = "RowStructure=/Script/MounteaDialogueSystem.DialogueRow"))
3739
TObjectPtr<UDataTable> DataTable;
3840

3941
/** Name of row in the table that we want */
40-
UPROPERTY(Category="Override", EditAnywhere, BlueprintReadOnly, meta=(GetOptions ="GetRowNames", NoResetToDefault, EditCondition="DataTable!=nullptr"))
42+
UPROPERTY(Category="Override", EditAnywhere, BlueprintReadOnly,
43+
meta=(GetOptions ="GetRowNames", NoResetToDefault,
44+
EditCondition="DataTable!=nullptr"))
4145
FName RowName;
4246

4347
private:
@@ -46,9 +50,7 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecorator_OverrideOnlyFirstTime
4650
TArray<FName> GetRowNames() const
4751
{
4852
if (DataTable)
49-
{
5053
return DataTable->GetRowNames();
51-
}
5254

5355
return TArray<FName>();
5456
}

Source/MounteaDialogueSystem/Public/Decorators/MounteaDialogueDecorator_OverrideParticipants.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,32 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecorator_OverrideParticipants
3030
virtual void ExecuteDecorator_Implementation() override;
3131

3232
virtual FString GetDecoratorDocumentationLink_Implementation() const override
33-
{ return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Decorator:-Override-Dialogue-Participants"); }
33+
{ return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueDecorators/OverrideDialogueParticipants"); }
3434

3535
protected:
3636

3737
// Enables setting NewPlayerParticipant to a value
3838
UPROPERTY(SaveGame, Category="Override", EditAnywhere, BlueprintReadOnly, meta=(NoResetToDefault, InlineEditConditionToggle))
3939
bool bOverridePlayerParticipant;
40+
4041
// Non-nullable reference to Actor from Level. Either must implement 'MounteaDialogueParticipantInterface' or must contain at least 1 component which implements such interface.
4142
UPROPERTY(SaveGame, Category="Override", EditAnywhere, BlueprintReadOnly, meta=(DisplayThumbnail=false, NoResetToDefault, EditCondition="bOverridePlayerParticipant"))
4243
TSoftObjectPtr<AActor>NewPlayerParticipant;
4344

45+
4446
// Enables setting NewDialogueParticipant to a value
4547
UPROPERTY(SaveGame, Category="Override", EditAnywhere, BlueprintReadOnly, meta=(NoResetToDefault, InlineEditConditionToggle))
4648
bool bOverrideDialogueParticipant;
49+
4750
// Non-nullable reference to Actor from Level. Either must implement 'MounteaDialogueParticipantInterface' or must contain at least 1 component which implements such interface.
4851
UPROPERTY(SaveGame, Category="Override", EditAnywhere, BlueprintReadOnly, meta=(DisplayThumbnail=false, NoResetToDefault, EditCondition="bOverrideDialogueParticipant"))
4952
TSoftObjectPtr<AActor>NewDialogueParticipant;
5053

54+
5155
// Enables setting NewActiveParticipant to a value
5256
UPROPERTY(SaveGame, Category="Override", EditAnywhere, BlueprintReadOnly, meta=(NoResetToDefault, InlineEditConditionToggle))
5357
bool bOverrideActiveParticipant;
58+
5459
// Non-nullable reference to Actor from Level. Either must implement 'MounteaDialogueParticipantInterface' or must contain at least 1 component which implements such interface.
5560
UPROPERTY(SaveGame, Category="Override", EditAnywhere, BlueprintReadOnly, meta=(DisplayThumbnail=false, NoResetToDefault, EditCondition="bOverrideActiveParticipant"))
5661
TSoftObjectPtr<AActor>NewActiveParticipant;

Source/MounteaDialogueSystem/Public/Decorators/MounteaDialogueDecorator_SaveNodeAsStart.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecorator_SaveNodeAsStart : publ
2626
virtual bool IsDecoratorAllowedForGraph_Implementation() const override { return false; };
2727

2828
virtual FString GetDecoratorDocumentationLink_Implementation() const override
29-
{ return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Decorator:-Set-Node-as-Start"); }
29+
{ return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueDecorators/SetNodeAsStart"); }
3030

3131
private:
3232

Source/MounteaDialogueSystem/Public/Decorators/MounteaDialogueDecorator_SelectRandomDialogueRow.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ class MOUNTEADIALOGUESYSTEM_API UMounteaDialogueDecorator_SelectRandomDialogueRo
2525
virtual void ExecuteDecorator_Implementation() override;
2626

2727
virtual FString GetDecoratorDocumentationLink_Implementation() const override
28-
{ return TEXT("https://github.com/Mountea-Framework/MounteaDialogueSystem/wiki/Decorator:-Override-Dialogue-Row-Data"); }
28+
{ return TEXT("https://mountea.tools/docs/DialogueSystem/DialogueDecorators/SelectRandomDialogueRow"); }
2929

3030
protected:
3131

3232
UPROPERTY(SaveGame, Category="Random", EditAnywhere, BlueprintReadOnly, meta=(NoResetToDefault, InlineEditConditionToggle))
33-
bool bUseRange;
33+
bool bUseRange;
3434

3535
/**
3636
* Allows select random number from given Range.
3737
* If range exceeds or is invalid, first valid random index is used.
3838
*/
3939
UPROPERTY(SaveGame, Category="Random", EditAnywhere, BlueprintReadOnly, meta=(NoResetToDefault, EditCondition="bUseRange"))
40-
FIntPoint RandomRange;
40+
FIntPoint RandomRange;
4141
};

0 commit comments

Comments
 (0)