Mercurial > mm7
comparison UI/Books/UISpellBook.cpp @ 1455:bfe342ae0c1f
DrawPaperdoll cleaning
author | Ritor1 |
---|---|
date | Fri, 09 Aug 2013 17:30:33 +0600 |
parents | 6b1c8c41c83f |
children | ff2118028c71 |
comparison
equal
deleted
inserted
replaced
1454:7d3bed7772cb | 1455:bfe342ae0c1f |
---|---|
1 #ifdef _MSC_VER | 1 #ifdef _MSC_VER |
2 #define _CRT_SECURE_NO_WARNINGS | 2 #define _CRT_SECURE_NO_WARNINGS |
3 #endif | 3 #endif |
4 | 4 |
5 #include <assert.h> | 5 #include <assert.h> |
6 | |
7 #include "..\..\MM7.h" | 6 #include "..\..\MM7.h" |
8 #include "..\..\Render.h" | 7 #include "..\..\Render.h" |
9 #include "..\..\Mouse.h" | 8 #include "..\..\Mouse.h" |
10 #include "..\UIBooks.h" | 9 #include "..\UIBooks.h" |
11 #include "..\..\GUIWindow.h" | 10 #include "..\..\GUIWindow.h" |
14 #include "..\..\AudioPlayer.h" | 13 #include "..\..\AudioPlayer.h" |
15 #include "..\..\LOD.h" | 14 #include "..\..\LOD.h" |
16 #include "..\..\Allocator.h" | 15 #include "..\..\Allocator.h" |
17 #include "..\..\Viewport.h" | 16 #include "..\..\Viewport.h" |
18 #include "..\..\texts.h" | 17 #include "..\..\texts.h" |
19 // | |
20 #include "..\..\mm7_data.h" | 18 #include "..\..\mm7_data.h" |
21 | |
22 | 19 |
23 std::array<char *, 9> spellbook_texture_filename_suffices = {{"f", "a", "w", "e", "s", "m", "b", "l", "d"}}; // weak | 20 std::array<char *, 9> spellbook_texture_filename_suffices = {{"f", "a", "w", "e", "s", "m", "b", "l", "d"}}; // weak |
24 | 21 |
25 //----- (00411300) -------------------------------------------------------- | 22 //----- (00411300) -------------------------------------------------------- |
26 void LoadSpellbook(unsigned int spell_school) | 23 void LoadSpellbook(unsigned int spell_school) |
64 } | 61 } |
65 | 62 |
66 //----- (00412AF9) -------------------------------------------------------- | 63 //----- (00412AF9) -------------------------------------------------------- |
67 static void BookUI_Spellbook_DrawCurrentSchoolBackground() | 64 static void BookUI_Spellbook_DrawCurrentSchoolBackground() |
68 { | 65 { |
69 int v0; // ecx@1 | 66 int pTexID = 0; |
70 | |
71 v0 = 0; | |
72 if ( uActiveCharacter ) | 67 if ( uActiveCharacter ) |
73 v0 = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage;//*((char *)&pParty->pPartyBuffs[5].uExpireTime + 6972 * uActiveCharacter + 2); | 68 pTexID = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage; |
74 pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[v0]); | 69 pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[pTexID]); |
75 pRenderer->DrawTextureIndexed(476, 450, pSBQuickSpellBtnTextr); | 70 pRenderer->DrawTextureIndexed(476, 450, pSBQuickSpellBtnTextr); |
76 pRenderer->DrawTextureIndexed(561, 450, pSpellBookCloseBtnTextr); | 71 pRenderer->DrawTextureIndexed(561, 450, pSpellBookCloseBtnTextr); |
77 } | 72 } |
78 | 73 |
79 //----- (00412B58) -------------------------------------------------------- | 74 //----- (00412B58) -------------------------------------------------------- |