using Godot; using Rokojori; using System.Collections.Generic; namespace Rokojori { [Tool] [GlobalClass] public partial class UISelectorFlag:SelectorFlag { public static readonly string selectorsPath = "res://addons/rokojori_action_library/Runtime/UI/UI-Selectors/"; public static CachedResource CreateCached( string selector ) { var path = selectorsPath + "UI " + selector + " Selector Flag.tres"; return new CachedResource( path ); } readonly static CachedResource HoverCached = CreateCached( "Hover" ); public static UISelectorFlag Hover => HoverCached.Get(); readonly static CachedResource DraggingCached = CreateCached( "Dragging" ); public static UISelectorFlag Dragging => DraggingCached.Get(); readonly static CachedResource ScrollingCached = CreateCached( "Scrolling" ); public static UISelectorFlag Scrolling => ScrollingCached.Get(); readonly static CachedResource FocusCached = CreateCached( "Focus" ); public static UISelectorFlag Focus => FocusCached.Get(); readonly static CachedResource ActiveCached = CreateCached( "Active" ); public static UISelectorFlag Active => ActiveCached.Get(); public readonly static List NoFlags = new List(); } }