Mercurial > mm7
diff GUI/UI/Spellbook.cpp @ 2573:0c67be4ec900
DrawTextureIndexed renamed to DrawTextureTransparentColorKey
Changing more class Texture to class Image.
author | a.parshin |
---|---|
date | Sat, 05 Mar 2016 16:25:53 +0200 |
parents | d87bfbd3bb3b |
children | dd36326a9994 |
line wrap: on
line diff
--- a/GUI/UI/Spellbook.cpp Sat Mar 05 01:51:54 2016 +0200 +++ b/GUI/UI/Spellbook.cpp Sat Mar 05 16:25:53 2016 +0200 @@ -175,7 +175,7 @@ if (pTexture->pBits & 0x200) pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, pTexture); else - pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture); + pRenderer->DrawTextureTransparentColorKey(pX_coord, pY_coord, pTexture); pRenderer->DrawMaskToZBuffer(pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos, pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos, pTexture, i); } @@ -195,7 +195,7 @@ if (SBPageCSpellsTextureList[v10]->pBits & 0x200) pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); else - pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); + pRenderer->DrawTextureTransparentColorKey(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); } } //pX_coord = (unsigned int)&player->pActiveSkills[PLAYER_SKILL_FIRE]; @@ -263,9 +263,9 @@ int pTexID = 0; if ( uActiveCharacter ) pTexID = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage; - pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[pTexID]); - pRenderer->DrawTextureIndexed(476, 450, pSBQuickSpellBtnTextr); - pRenderer->DrawTextureIndexed(561, 450, pSpellBookCloseBtnTextr); + pRenderer->DrawTextureTransparentColorKey(8, 8, pSpellBookPagesTextr[pTexID]); + pRenderer->DrawTextureTransparentColorKey(476, 450, pSBQuickSpellBtnTextr); + pRenderer->DrawTextureTransparentColorKey(561, 450, pSpellBookCloseBtnTextr); }