public CCursor(string textureName, SColorF color, float w, float h, float z) { _CursorFadingTimer = new Stopwatch(); ShowCursor = true; _CursorTargetAlpha = 1f; _CursorStartAlpha = 0f; _CursorFadingTime = 0.5f; _CursorName = textureName; _Cursor = CDraw.AddTexture(CTheme.GetSkinFilePath(_CursorName)); _Cursor.color = color; _Cursor.rect.W = w; _Cursor.rect.H = h; _Cursor.rect.Z = z; _Movetimer = new Stopwatch(); }
public void ReloadTextures() { UnloadTextures(); _Cursor = CDraw.AddTexture(CTheme.GetSkinFilePath(_CursorName)); }