Skip to content

Commit

Permalink
stop all new timelines functions added
Browse files Browse the repository at this point in the history
  • Loading branch information
zompi2 committed Dec 15, 2024
1 parent bb2c9d9 commit 09b233f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -776,12 +776,16 @@ FFlow::RemoveAllWaitAndExecutes(GetWorld());
FFlow::RemoveAllWhileTrueExecutes(GetWorld());
FFlow::RemoveAllRunAsyncThen(GetWorld());
FFlow::RemoveAllTimelines(GetWorld());
FFlow::RemoveAllTimelinesVector(GetWorld());
FFlow::RemoveAllTimelinesLinearColor(GetWorld());
FFlow::RemoveAllCustomTimelines(GetWorld());
FFlow::RemoveAllCustomTimelinesVector(GetWorld());
FFlow::RemoveAllCustomTimelinesLinearColor(GetWorld());
FFlow::RemoveAllTimeLocks(GetWorld());
FFlow::RemoveAllDoNoMoreThanXTimes(GetWorld());
```

![allremove](https://github.com/zompi2/UE4EnhancedCodeFlow/assets/7863125/933b9695-02ff-402d-947d-ac613b4dc14f)
![stopall](https://github.com/user-attachments/assets/953e5379-b403-4400-91ad-31060f84a0a5)

You can also stop all of the running actions that handle coroutines.

Expand Down
20 changes: 20 additions & 0 deletions Source/EnhancedCodeFlow/Private/BP/ECFBPLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,31 @@ void UECFBPLibrary::ECFRemoveAllTimelines(const UObject* WorldContextObject, boo
FFlow::RemoveAllTimelines(WorldContextObject, bComplete, InOwner);
}

void UECFBPLibrary::ECFRemoveAllTimelinesVector(const UObject* WorldContextObject, bool bComplete/* = false*/, UObject* InOwner /*= nullptr*/)
{
FFlow::RemoveAllTimelinesVector(WorldContextObject, bComplete, InOwner);
}

void UECFBPLibrary::ECFRemoveAllTimelinesLinearColor(const UObject* WorldContextObject, bool bComplete/* = false*/, UObject* InOwner /*= nullptr*/)
{
FFlow::RemoveAllTimelinesLinearColor(WorldContextObject, bComplete, InOwner);
}

void UECFBPLibrary::ECFRemoveAllCustomTimelines(const UObject* WorldContextObject, bool bComplete/* = false*/, UObject* InOwner /*= nullptr*/)
{
FFlow::RemoveAllCustomTimelines(WorldContextObject, bComplete, InOwner);
}

void UECFBPLibrary::ECFRemoveAllCustomTimelinesVector(const UObject* WorldContextObject, bool bComplete/* = false*/, UObject* InOwner /*= nullptr*/)
{
FFlow::RemoveAllCustomTimelinesVector(WorldContextObject, bComplete, InOwner);
}

void UECFBPLibrary::ECFRemoveAllCustomTimelinesLinearColor(const UObject* WorldContextObject, bool bComplete/* = false*/, UObject* InOwner /*= nullptr*/)
{
FFlow::RemoveAllCustomTimelinesLinearColor(WorldContextObject, bComplete, InOwner);
}

void UECFBPLibrary::ECFRemoveAllDoNoMoreThanXTimes(const UObject* WorldContextObject, UObject* InOwner /*= nullptr*/)
{
FFlow::RemoveAllDoNoMoreThanXTimes(WorldContextObject, InOwner);
Expand Down
36 changes: 36 additions & 0 deletions Source/EnhancedCodeFlow/Public/BP/ECFBPLibrary.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,24 @@ class ENHANCEDCODEFLOW_API UECFBPLibrary : public UBlueprintFunctionLibrary
UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject", AdvancedDisplay = "bComplete, InOwner", DisplayName = "ECF - Remove All Timelines"), Category = "ECF")
static void ECFRemoveAllTimelines(const UObject* WorldContextObject, bool bComplete = false, UObject* InOwner = nullptr);

/**
* Removes all running vector timelines.
* If owner is defined it will remove all vector timelines from the given owner.
* Otherwise it will stop all the vector timelines from everywhere.
* bComplete indicates if the action should be completed when stopped (run callback), or simply stopped.
*/
UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject", AdvancedDisplay = "bComplete, InOwner", DisplayName = "ECF - Remove All Timelines Vector"), Category = "ECF")
static void ECFRemoveAllTimelinesVector(const UObject* WorldContextObject, bool bComplete = false, UObject* InOwner = nullptr);

/**
* Removes all running linear color timelines.
* If owner is defined it will remove all linear color timelines from the given owner.
* Otherwise it will stop all the linear color timelines from everywhere.
* bComplete indicates if the action should be completed when stopped (run callback), or simply stopped.
*/
UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject", AdvancedDisplay = "bComplete, InOwner", DisplayName = "ECF - Remove All Timelines LinearColor"), Category = "ECF")
static void ECFRemoveAllTimelinesLinearColor(const UObject* WorldContextObject, bool bComplete = false, UObject* InOwner = nullptr);

/**
* Removes all running custom timelines.
* If owner is defined it will remove all custom timelines from the given owner.
Expand All @@ -197,6 +215,24 @@ class ENHANCEDCODEFLOW_API UECFBPLibrary : public UBlueprintFunctionLibrary
UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject", AdvancedDisplay = "bComplete, InOwner", DisplayName = "ECF - Remove All Custom Timelines"), Category = "ECF")
static void ECFRemoveAllCustomTimelines(const UObject* WorldContextObject, bool bComplete = false, UObject* InOwner = nullptr);

/**
* Removes all running custom vector timelines.
* If owner is defined it will remove all custom vector timelines from the given owner.
* Otherwise it will stop all the custom vector timelines from everywhere.
* bComplete indicates if the action should be completed when stopped (run callback), or simply stopped.
*/
UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject", AdvancedDisplay = "bComplete, InOwner", DisplayName = "ECF - Remove All Custom Timelines Vector"), Category = "ECF")
static void ECFRemoveAllCustomTimelinesVector(const UObject* WorldContextObject, bool bComplete = false, UObject* InOwner = nullptr);

/**
* Removes all running custom linear color timelines.
* If owner is defined it will remove all custom linear color timelines from the given owner.
* Otherwise it will stop all the custom linear color timelines from everywhere.
* bComplete indicates if the action should be completed when stopped (run callback), or simply stopped.
*/
UFUNCTION(BlueprintCallable, meta = (WorldContext = "WorldContextObject", AdvancedDisplay = "bComplete, InOwner", DisplayName = "ECF - Remove All Custom Timelines LinearColor"), Category = "ECF")
static void ECFRemoveAllCustomTimelinesLinearColor(const UObject* WorldContextObject, bool bComplete = false, UObject* InOwner = nullptr);

/**
* Removes all running "Do No More Than X Times" nodes.
* If owner is defined it will remove all running actions from the given owner.
Expand Down

0 comments on commit 09b233f

Please sign in to comment.