Exemple #1
0
 protected void UpdateTexture(string szImage = "")
 {
     if (szImage.Length < 3 || D3DTextureManager.Instance[szImage] == null)
     {
         if (D3DTextureManager.Instance[m_szTexture] == null)
             return;
         szImage = m_szTexture;
     }
     m_szTexture = szImage;
     m_pTexture = D3DTextureManager.Instance[szImage];
     m_pTexture.SetFrames(6);
     //m_rectBounds = new Rectangle(m_rectBounds.X, m_rectBounds.Y, m_pTexture.Size.Width / 4, m_pTexture.Size.Height);
 }
Exemple #2
0
 protected void UpdateArrowTexture(string name = "ButtQuickListDn.tga")
 {
     if (D3DTextureManager.Instance[name] == null)
         return;
     m_pDownArrowTexture = D3DTextureManager.Instance[name];
     m_pDownArrowTexture.SetFrames(4);
 }