rj-action-library/Runtime/UI/Styling/UICursor.cs

24 lines
466 B
C#
Raw Normal View History

2025-08-31 06:05:39 +00:00
using Godot;
using Rokojori;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class UICursor : Resource
{
[Export]
public Control.CursorShape cursorShape = Control.CursorShape.PointingHand;
public void ApplyCursor( Control control )
{
control.MouseDefaultCursorShape = cursorShape;
}
public void ClearCursor( Control control )
{
control.MouseDefaultCursorShape = Control.CursorShape.Arrow;
}
}
}