Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        public void ReloadTextures()
        {
            UnloadTextures();

            _Cursor = CDraw.AddTexture(CTheme.GetSkinFilePath(_CursorName));
        }