Mercurial > mm7
comparison UI/Books/UISpellBook.cpp @ 1451:6b1c8c41c83f
m
author | Ritor1 |
---|---|
date | Tue, 06 Aug 2013 09:26:06 +0600 |
parents | c0b273d33338 |
children | bfe342ae0c1f |
comparison
equal
deleted
inserted
replaced
1431:4d13549db029 | 1451:6b1c8c41c83f |
---|---|
44 SBPageCSpellsTextureList[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); | 44 SBPageCSpellsTextureList[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE); |
45 } | 45 } |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 | |
50 | |
51 //----- (00411597) -------------------------------------------------------- | 49 //----- (00411597) -------------------------------------------------------- |
52 void OnCloseBook() | 50 void OnCloseBook() |
53 { | 51 { |
54 pAllocator->FreeChunk(pSpellFont); | 52 pAllocator->FreeChunk(pSpellFont); |
55 pSpellFont = nullptr; | 53 pSpellFont = nullptr; |
56 pAllocator->FreeChunk(pBookFont); | 54 pAllocator->FreeChunk(pBookFont); |
57 pBookFont = nullptr; | 55 pBookFont = nullptr; |
58 pAllocator->FreeChunk(pBook2Font); | 56 pAllocator->FreeChunk(pBook2Font); |
59 pBook2Font = nullptr; | 57 pBook2Font = nullptr; |
60 pAllocator->FreeChunk(pAutonoteFont); | 58 pAllocator->FreeChunk(pAutonoteFont); |
61 pAutonoteFont = nullptr; | 59 pAutonoteFont = nullptr; |
62 pTexture_mapbordr->Release(); | 60 pTexture_mapbordr->Release(); |
63 pAudioPlayer->PlaySound(SOUND_CloseBook, 0, 0, -1, 0, 0, 0, 0); | 61 pAudioPlayer->PlaySound(SOUND_CloseBook, 0, 0, -1, 0, 0, 0, 0); |
64 pIcons_LOD->RemoveTexturesPackFromTextureList(); | 62 pIcons_LOD->RemoveTexturesPackFromTextureList(); |
65 dword_506364 = 0; | 63 dword_506364 = 0; |
66 } | 64 } |
67 | |
68 | |
69 | 65 |
70 //----- (00412AF9) -------------------------------------------------------- | 66 //----- (00412AF9) -------------------------------------------------------- |
71 static void BookUI_Spellbook_DrawCurrentSchoolBackground() | 67 static void BookUI_Spellbook_DrawCurrentSchoolBackground() |
72 { | 68 { |
73 int v0; // ecx@1 | 69 int v0; // ecx@1 |
74 | 70 |
75 v0 = 0; | 71 v0 = 0; |
76 if ( uActiveCharacter ) | 72 if ( uActiveCharacter ) |
77 v0 = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage;//*((char *)&pParty->pPartyBuffs[5].uExpireTime + 6972 * uActiveCharacter + 2); | 73 v0 = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage;//*((char *)&pParty->pPartyBuffs[5].uExpireTime + 6972 * uActiveCharacter + 2); |
78 pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[v0]); | 74 pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[v0]); |
79 pRenderer->DrawTextureIndexed(476, 450, pSBQuickSpellBtnTextr); | 75 pRenderer->DrawTextureIndexed(476, 450, pSBQuickSpellBtnTextr); |
80 pRenderer->DrawTextureIndexed(561, 450, pSpellBookCloseBtnTextr); | 76 pRenderer->DrawTextureIndexed(561, 450, pSpellBookCloseBtnTextr); |
81 } | 77 } |
82 | 78 |