2024-09-14 06:41:52 +00:00
|
|
|
|
|
|
|
|
using Godot;
|
|
|
|
|
using Rokojori;
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[Tool]
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
public partial class UINumberTransition : Resource
|
|
|
|
|
{
|
|
|
|
|
[Export]
|
|
|
|
|
public UIStyleNumberProperty property;
|
|
|
|
|
|
2025-06-19 17:22:25 +00:00
|
|
|
[Export]
|
|
|
|
|
public string shaderPropertyName;
|
|
|
|
|
|
2024-09-14 06:41:52 +00:00
|
|
|
[Export]
|
|
|
|
|
public TransitionSettings settings;
|
2025-12-10 14:17:07 +00:00
|
|
|
|
|
|
|
|
public bool Matches( UIStyleNumberProperty property, string name )
|
|
|
|
|
{
|
|
|
|
|
var hasSameProperty = this.property == property;
|
|
|
|
|
|
|
|
|
|
if ( ! hasSameProperty )
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( UIStyleNumberProperty.FloatShaderProperty != property )
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return name == shaderPropertyName;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-14 06:41:52 +00:00
|
|
|
}
|
|
|
|
|
}
|