Mercurial > mm7
comparison GUI/UI/UIGuilds.cpp @ 2575:a76d408c5132 tip
DrawTranslucent -> DrawTextureGrayShade
Removed old texture drawing stuff
author | a.parshin |
---|---|
date | Wed, 09 Mar 2016 01:39:52 +0200 |
parents | 0c67be4ec900 |
children |
comparison
equal
deleted
inserted
replaced
2574:dd36326a9994 | 2575:a76d408c5132 |
---|---|
164 v62 = 0; | 164 v62 = 0; |
165 for ( pX = 32; pX < 452; pX += 70 )//расположение в верхнем ряду | 165 for ( pX = 32; pX < 452; pX += 70 )//расположение в верхнем ряду |
166 { | 166 { |
167 if ( pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][v6].uItemID ) | 167 if ( pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][v6].uItemID ) |
168 { | 168 { |
169 pRenderer->DrawTextureIndexedAlpha(pX, 90, ItemsInShopTexture[v6]); | 169 pRenderer->DrawTextureAlphaNew(pX/640.0f, 90/480.0f, shop_ui_items_in_store[v6]); |
170 ZBuffer_DoFill((int *)((char *)pRenderer->pActiveZBuffer + v62 + 230528), ItemsInShopTexture[v6], v6 + 1); | 170 //ZBuffer_DoFill((int *)((char *)pRenderer->pActiveZBuffer + v62 + 230528), shop_ui_items_in_store[v6], v6 + 1); |
171 } | 171 } |
172 v62 += 280; | 172 v62 += 280; |
173 ++v6; | 173 ++v6; |
174 } | 174 } |
175 v62 = 1680; | 175 v62 = 1680; |
176 v7 = 6; | 176 v7 = 6; |
177 for ( pX = 32; pX < 452; pX += 70 )//расположение в нижнем ряду | 177 for ( pX = 32; pX < 452; pX += 70 )//расположение в нижнем ряду |
178 { | 178 { |
179 if (pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][v7].uItemID) | 179 if (pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][v7].uItemID) |
180 { | 180 { |
181 pRenderer->DrawTextureIndexedAlpha(pX, 250, ItemsInShopTexture[v7]); | 181 pRenderer->DrawTextureAlphaNew(pX/640.0f, 250/480.0f, shop_ui_items_in_store[v7]); |
182 ZBuffer_DoFill((int *)((char *)pRenderer->pActiveZBuffer + v62 + 638448), ItemsInShopTexture[v7], v7 + 1); | 182 //ZBuffer_DoFill((int *)((char *)pRenderer->pActiveZBuffer + v62 + 638448), shop_ui_items_in_store[v7], v7 + 1); |
183 } | 183 } |
184 v62 += 280; | 184 v62 += 280; |
185 ++v7; | 185 ++v7; |
186 } | 186 } |
187 if ( HouseUI_CheckIfPlayerCanInteract() ) | 187 if ( HouseUI_CheckIfPlayerCanInteract() ) |
269 } | 269 } |
270 ItemGen * item_spellbook = &pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][i]; | 270 ItemGen * item_spellbook = &pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][i]; |
271 item_spellbook->Reset(); | 271 item_spellbook->Reset(); |
272 pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][i].uItemID = pItemNum; | 272 pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][i].uItemID = pItemNum; |
273 pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][i].IsIdentified(); | 273 pParty->SpellBooksInGuilds[window_SpeakInHouse->par1C-139][i].IsIdentified(); |
274 ItemsInShopTexture[i] = pIcons_LOD->LoadTexturePtr(pItemsTable->pItems[pItemNum].pIconName, TEXTURE_16BIT_PALETTE); | 274 |
275 shop_ui_items_in_store[i] = assets->GetImage_16BitColorKey(pItemsTable->pItems[pItemNum].pIconName, 0x7FF); | |
275 } | 276 } |
276 return; | 277 return; |
277 } | 278 } |