Mercurial > mm7
comparison GUI/UI/Books/UISpellBook.cpp @ 2524:c7264ab7132f
Main menu rendered using d3d11
author | a.parshin |
---|---|
date | Fri, 10 Oct 2014 17:42:05 +0300 |
parents | a77c34acdbc9 |
children | 1bcadc6dd203 |
comparison
equal
deleted
inserted
replaced
2523:c532d5242055 | 2524:c7264ab7132f |
---|---|
103 if ( pTexture->pLevelOfDetail0_prolly_alpha_mask ) | 103 if ( pTexture->pLevelOfDetail0_prolly_alpha_mask ) |
104 { | 104 { |
105 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos; | 105 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos; |
106 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos; | 106 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos; |
107 if ( pTexture->pBits & 0x200 ) | 107 if ( pTexture->pBits & 0x200 ) |
108 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, pTexture); | 108 pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, pTexture); |
109 else | 109 else |
110 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture); | 110 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture); |
111 pRenderer->DrawMaskToZBuffer(pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos, | 111 pRenderer->DrawMaskToZBuffer(pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos, |
112 pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos, pTexture, i); | 112 pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos, pTexture, i); |
113 } | 113 } |
123 if ( SBPageCSpellsTextureList[v10]->pLevelOfDetail0_prolly_alpha_mask ) | 123 if ( SBPageCSpellsTextureList[v10]->pLevelOfDetail0_prolly_alpha_mask ) |
124 { | 124 { |
125 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Xpos; | 125 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Xpos; |
126 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Ypos; | 126 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Ypos; |
127 if ( SBPageCSpellsTextureList[v10]->pBits & 0x200 ) | 127 if ( SBPageCSpellsTextureList[v10]->pBits & 0x200 ) |
128 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); | 128 pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); |
129 else | 129 else |
130 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); | 130 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); |
131 } | 131 } |
132 } | 132 } |
133 //pX_coord = (unsigned int)&player->pActiveSkills[PLAYER_SKILL_FIRE]; | 133 //pX_coord = (unsigned int)&player->pActiveSkills[PLAYER_SKILL_FIRE]; |
146 { | 146 { |
147 pPageTexture = pTextures_tabs[i][0]; | 147 pPageTexture = pTextures_tabs[i][0]; |
148 pX_coord = texture_tab_coord0[i][0]; | 148 pX_coord = texture_tab_coord0[i][0]; |
149 pY_coord = texture_tab_coord0[i][1]; | 149 pY_coord = texture_tab_coord0[i][1]; |
150 } | 150 } |
151 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, pPageTexture); | 151 pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, pPageTexture); |
152 } | 152 } |
153 } | 153 } |
154 } | 154 } |