示例#1
0
文件: Checkbox.cs 项目: sgrzeda/rose
 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);
 }
示例#2
0
文件: Combo.cs 项目: sgrzeda/rose
 protected void UpdateArrowTexture(string name = "ButtQuickListDn.tga")
 {
     if (D3DTextureManager.Instance[name] == null)
         return;
     m_pDownArrowTexture = D3DTextureManager.Instance[name];
     m_pDownArrowTexture.SetFrames(4);
 }