public void SetCursor(object locker, KnownCursor cursorType, Vector2 hotspot, CursorMode mode) { Texture2D texture; if (!this.m_knownCursorToTexture.TryGetValue(cursorType, out texture)) { texture = (Texture2D)null; } this.SetCursor(locker, texture, hotspot, mode); }
private static void AddCursorIfRequired(List <RTECursor> cursorSettings, KnownCursor cursorType, string name, string texture) { if (!cursorSettings.Any(c => c.Type == cursorType)) { RTECursor cursor = new RTECursor { Name = name, Type = cursorType, Texture = Resources.Load <Texture2D>(texture) }; cursorSettings.Add(cursor); } }
public static void SetCursor(object locker, KnownCursor cursorType) { SetCursor(locker, cursorType, new Vector2(0.5f, 0.5f), CursorMode.Auto); }
public static void Map(KnownCursor cursorType, Texture2D texture) { m_knownCursorToTexture[cursorType] = texture; }
public void SetCursor(KnownCursor cursorType) { m_editor.CursorHelper.SetCursor(m_cursorLocker, cursorType); }
public void SetCursor(object locker, KnownCursor cursorType) { this.SetCursor(locker, cursorType, new Vector2(0.5f, 0.5f), (CursorMode)0); }
public static void SetCursor(KnownCursor cursorType) { CursorHelper.SetCursor(m_cursorLocker, cursorType); }