Skip to content

Commit 8fbcc0d

Browse files
committed
style(visualizer): add icons for the new decorators
Add icons for representing RepeatForever, RepeatUntilFailure, and RepeatUntilSuccess in the visualizer
1 parent 1fecd28 commit 8fbcc0d

File tree

9 files changed

+342
-0
lines changed

9 files changed

+342
-0
lines changed
279 Bytes
Loading

Assets/FluidBehaviorTree/Editor/Icons/Tasks/EventAvailable.png.meta

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
317 Bytes
Loading

Assets/FluidBehaviorTree/Editor/Icons/Tasks/EventBusy.png.meta

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
224 Bytes
Loading

Assets/FluidBehaviorTree/Editor/Icons/Tasks/Repeat.png.meta

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/FluidBehaviorTree/Runtime/Decorators/RepeatForever.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace CleverCrow.Fluid.BTs.Decorators {
66
public class RepeatForever : DecoratorBase {
7+
public override string IconPath { get; } = $"{PACKAGE_ROOT}/Repeat.png";
8+
79
protected override TaskStatus OnUpdate () {
810
Child.Update();
911
return TaskStatus.Continue;

Assets/FluidBehaviorTree/Runtime/Decorators/RepeatUntilFailure.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace CleverCrow.Fluid.BTs.Decorators {
66
public class RepeatUntilFailure : DecoratorBase {
7+
public override string IconPath { get; } = $"{PACKAGE_ROOT}/EventBusy.png";
8+
79
protected override TaskStatus OnUpdate () {
810
if (Child.Update() == TaskStatus.Failure) {
911
return TaskStatus.Failure;

Assets/FluidBehaviorTree/Runtime/Decorators/RepeatUntilSuccess.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace CleverCrow.Fluid.BTs.Decorators {
66
public class RepeatUntilSuccess : DecoratorBase {
7+
public override string IconPath { get; } = $"{PACKAGE_ROOT}/EventAvailable.png";
8+
79
protected override TaskStatus OnUpdate () {
810
if (Child.Update() == TaskStatus.Success) {
911
return TaskStatus.Success;

0 commit comments

Comments
 (0)