2025-11-28 14:24:23 +00:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Godot;
|
|
|
|
|
|
2026-05-22 12:25:02 +00:00
|
|
|
using Rokojori.Extensions;
|
2025-11-28 14:24:23 +00:00
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class SetAnimationTreeBool:Action
|
|
|
|
|
{
|
|
|
|
|
[Export]
|
|
|
|
|
public AnimationTree tree;
|
|
|
|
|
|
|
|
|
|
[Export]
|
|
|
|
|
public string name;
|
|
|
|
|
|
|
|
|
|
[Export]
|
|
|
|
|
public bool value;
|
|
|
|
|
|
|
|
|
|
protected override void _OnTrigger()
|
|
|
|
|
{
|
|
|
|
|
tree.Set( "parameters/conditions/" + name, value );
|
|
|
|
|
tree.Set( "parameters/conditions/not_" + name, ! value );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|