33 lines
700 B
C#
33 lines
700 B
C#
using Godot;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Rokojori
|
|
{
|
|
[Tool]
|
|
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/Flash.svg") ]
|
|
public partial class CustomGradient:GradientGenerator
|
|
{
|
|
[Export]
|
|
public Gradient gradient;
|
|
|
|
|
|
public override Gradient GetGradient()
|
|
{
|
|
return gradient;
|
|
}
|
|
|
|
[Export]
|
|
public float repeat = 1f;
|
|
public override float GetRepeat()
|
|
{
|
|
return repeat;
|
|
}
|
|
|
|
[Export]
|
|
public GradientExtensions.GradientRepeatMode repeatMode = GradientExtensions.GradientRepeatMode.Clamp;
|
|
public override GradientExtensions.GradientRepeatMode GetRepeatMode()
|
|
{
|
|
return repeatMode;
|
|
}
|
|
}
|
|
} |