comparison UI/Books/UISpellBook.cpp @ 2197:42c8807225a2

UIMSG_SpellBook_PressTab continue
author Ritor1
date Fri, 31 Jan 2014 17:30:36 +0600
parents d28d3c006077
children e18200fcfb50
comparison
equal deleted inserted replaced
2196:628a0ad87136 2197:42c8807225a2
127 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); 127 pRenderer->DrawTextureTransparent(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]);
128 else 128 else
129 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); 129 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]);
130 } 130 }
131 } 131 }
132 pX_coord = (unsigned int)&player->pActiveSkills[12]; 132 //pX_coord = (unsigned int)&player->pActiveSkills[PLAYER_SKILL_FIRE];
133 pY_coord = (unsigned int)&player->pActiveSkills[12]; 133 //pY_coord = (unsigned int)&player->pActiveSkills[PLAYER_SKILL_FIRE];
134 for ( uint i = 0; i < 9; i++ ) 134 for ( uint i = 0; i < 9; i++ )
135 { 135 {
136 if ( player->pActiveSkills[12 + i] ) 136 if ( player->pActiveSkills[PLAYER_SKILL_FIRE + i] )
137 { 137 {
138 if ( player->lastOpenedSpellbookPage == i ) 138 if ( player->lastOpenedSpellbookPage == i )
139 { 139 {
140 pPageTexture = pTextures_tabs[i][1]; 140 pPageTexture = pTextures_tabs[i][1];
141 pX_coord = texture_tab_coord1[i][0]; 141 pX_coord = texture_tab_coord1[i][0];