annotate GUI/UI/Spellbook.cpp @ 2553:48708da03b7f

Party Creation UI logic separated from MainMenu
author a.parshin
date Wed, 13 May 2015 02:20:05 +0200
parents 3121fb54a110
children d87bfbd3bb3b
rev   line source
2549
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
1 #include "Engine/Engine.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
2 #include "Engine/Party.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
3 #include "Engine/LOD.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
4 #include "Engine/Timer.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
5 #include "Engine/texts.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
6 #include "Engine/Graphics/Render.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
7 #include "Engine/Graphics/Viewport.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
8
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
9 #include "IO/Mouse.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
10
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
11 #include "GUI/UI/Spellbook.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
12 #include "GUI/GUIFont.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
13
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
14 #include "Media/Audio/AudioPlayer.h"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
15
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
16
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
17
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
18 void InitializeSpellBookTextures();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
19 void OnCloseSpellBookPage();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
20 void OnCloseSpellBook();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
21 void LoadSpellbook(unsigned int spell_school);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
22 void BookUI_Spellbook_DrawCurrentSchoolBackground();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
23
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
24
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
25 std::array<char *, 9> spellbook_texture_filename_suffices = {{"f", "a", "w", "e", "s", "m", "b", "l", "d"}};
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
26
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
27 std::array<std::array<unsigned char, 12>, 9> pSpellbookSpellIndices = // 4E2430 from pSpellbookSpellIndices[9][12]
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
28 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
29 { //0 1 2 3 4 5 6 7 8 9 10 11
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
30 { 0, 3, 1, 8, 11, 7, 4, 10, 6, 2, 5, 9 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
31 { 0, 11, 2, 9, 6, 8, 5, 10, 3, 7, 1, 4 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
32 { 0, 4, 8, 9, 1, 10, 3, 11, 7, 6, 2, 5 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
33 { 0, 7, 10, 8, 2, 11, 1, 5, 3, 6, 4, 9 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
34 { 0, 5, 10, 11, 7, 2, 8, 1, 4, 9, 3, 6 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
35 { 0, 5, 9, 8, 3, 7, 6, 4, 1, 11, 2, 10 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
36 { 0, 1, 6, 9, 3, 5, 8, 11, 7, 10, 4, 2 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
37 { 0, 1, 10, 11, 9, 4, 3, 6, 5, 7, 8, 2 },
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
38 { 0, 9, 3, 7, 1, 5, 2, 10, 11, 8, 6, 4 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
39 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
40 };
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
41
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
42
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
43
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
44
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
45 GUIWindow_Spellbook::GUIWindow_Spellbook() :
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
46 GUIWindow(0, 0, window->GetWidth(), window->GetHeight(), 0, nullptr)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
47 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
48 // ------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
49 // 004304E7 void Game_EventLoop -- part
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
50 current_screen_type = SCREEN_SPELL_BOOK;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
51 pEventTimer->Pause();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
52
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
53 InitializeSpellBookTextures();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
54 OpenSpellbook();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
55
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
56 // ------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
57 // 004304E7 void Game_EventLoop -- part
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
58 pAudioPlayer->PlaySound(SOUND_48, 0, 0, -1, 0, 0, 0, 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
59 viewparams->field_48 = 1;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
60 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
61
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
62
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
63 void GUIWindow_Spellbook::OpenSpellbookPage(int page)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
64 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
65 // ------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
66 // 004304E7 void Game_EventLoop -- part
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
67
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
68 OnCloseSpellBookPage();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
69 pPlayers[uActiveCharacter]->lastOpenedSpellbookPage = page;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
70 OpenSpellbook();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
71 pAudioPlayer->PlaySound((SoundID)(SOUND_TurnPageU + rand() % 2), 0, 0, -1, 0, 0, 0, 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
72 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
73
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
74 //----- (00411621) --------------------------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
75 void GUIWindow_Spellbook::OpenSpellbook()
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
76 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
77 Player *pPlayer; // edi@1
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
78 //GUIWindow *pWindow; // esi@1
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
79 //unsigned int v3; // ebp@1
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
80 int v4; // eax@3
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
81 ///GUIButton *result; // eax@25
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
82 int a2; // [sp+10h] [bp-8h]@1
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
83 //int v7; // [sp+14h] [bp-4h]@1
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
84
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
85 pPlayer = pPlayers[uActiveCharacter];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
86 //pWindow = this;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
87 LoadSpellbook(pPlayer->lastOpenedSpellbookPage);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
88 //v3 = 0;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
89 a2 = 0;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
90
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
91 PlayerSpellbookChapter* chapter = &pPlayer->spellbook.pChapters[pPlayer->lastOpenedSpellbookPage];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
92 for (uint i = 0; i < 11; ++i)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
93 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
94 if (!chapter->bIsSpellAvailable[i])
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
95 continue;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
96 v4 = pPlayer->lastOpenedSpellbookPage;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
97 //v4 = (12 * pPlayer->lastOpenedSpellbookPage + pSpellbookSpellIndices[pPlayer->lastOpenedSpellbookPage][i + 1]);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
98 CreateButton(pViewport->uViewportTL_X + pIconPos[v4][pSpellbookSpellIndices[v4][i + 1]].Xpos,
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
99 pViewport->uViewportTL_Y + pIconPos[v4][pSpellbookSpellIndices[v4][i + 1]].Ypos, //dword_4E20D0
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
100 SBPageSSpellsTextureList[i + 1]->uTextureWidth,
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
101 SBPageSSpellsTextureList[i + 1]->uTextureHeight,
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
102 1, 79, UIMSG_SelectSpell, i, 0, "", 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
103 ++a2;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
104 //++v3;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
105 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
106 //while ( (signed int)v3 < 11 );
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
107
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
108 CreateButton(0, 0, 0, 0, 1, 0, UIMSG_SpellBook_PressTab, 0, '\t', "", 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
109 if (a2)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
110 _41D08F_set_keyboard_control_group(a2, 0, 0, 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
111
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
112 if (pPlayer->pActiveSkills[PLAYER_SKILL_FIRE]) CreateButton(399, 10, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 0, 0, aSpellSchoolNames[0], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
113 if (pPlayer->pActiveSkills[PLAYER_SKILL_AIR]) CreateButton(399, 46, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 1, 0, aSpellSchoolNames[1], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
114 if (pPlayer->pActiveSkills[PLAYER_SKILL_WATER]) CreateButton(399, 83, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 2, 0, aSpellSchoolNames[2], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
115 if (pPlayer->pActiveSkills[PLAYER_SKILL_EARTH]) CreateButton(399, 121, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 3, 0, aSpellSchoolNames[3], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
116 if (pPlayer->pActiveSkills[PLAYER_SKILL_SPIRIT]) CreateButton(399, 158, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 4, 0, aSpellSchoolNames[4], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
117 if (pPlayer->pActiveSkills[PLAYER_SKILL_MIND]) CreateButton(400, 196, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 5, 0, aSpellSchoolNames[5], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
118 if (pPlayer->pActiveSkills[PLAYER_SKILL_BODY]) CreateButton(400, 234, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 6, 0, aSpellSchoolNames[6], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
119 if (pPlayer->pActiveSkills[PLAYER_SKILL_LIGHT]) CreateButton(400, 271, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 7, 0, aSpellSchoolNames[7], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
120 if (pPlayer->pActiveSkills[PLAYER_SKILL_DARK]) CreateButton(400, 307, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 8, 0, aSpellSchoolNames[8], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
121
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
122 CreateButton(476, 450, pSBClickQuickSpellBtnTextr->uTextureWidth, pSBClickQuickSpellBtnTextr->uTextureHeight, 1, 78, UIMSG_ClickInstallRemoveQuickSpellBtn, 0, 0, "", 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
123 pBtn_InstallRemoveSpell = CreateButton(476, 450, 48, 32, 1, 78, UIMSG_ClickInstallRemoveQuickSpellBtn, 0, 0, "", pSBClickQuickSpellBtnTextr, 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
124 CreateButton(561, 450, pSpellBookClickCloseBtnTextr->uTextureWidth, pSpellBookClickCloseBtnTextr->uTextureHeight, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
125 pBtn_CloseBook = CreateButton(561, 450, 48, 32, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], pSpellBookClickCloseBtnTextr, 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
126 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
127
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
128 void GUIWindow_Spellbook::Update()
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
129 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
130 // -----------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
131 // 004156F0 GUI_UpdateWindows --- part
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
132 // {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
133 // DrawSpellBookContent(pPlayers[uActiveCharacter]);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
134 // }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
135 //
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
136 // --------------------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
137 // 00412B58 void DrawSpellBookContent(Player *player)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
138 auto player = pPlayers[uActiveCharacter];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
139
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
140 Texture *PendingTexture; // edi@1
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
141 Texture *pTexture; // edx@5
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
142 int v10; // eax@13
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
143 unsigned int pX_coord; // esi@18
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
144 unsigned int pY_coord; // edi@18
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
145 Texture *pPageTexture; // eax@21
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
146 // signed int v22; // [sp-4h] [bp-24h]@22
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
147 POINT a2; // [sp+18h] [bp-8h]@13
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
148
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
149 static unsigned int texture_tab_coord1[9][2] =
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
150 { { 406, 9 }, { 406, 46 }, { 406, 84 }, { 406, 121 }, { 407, 158 }, { 405, 196 }, { 405, 234 }, { 405, 272 }, { 405, 309 } };
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
151
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
152 static unsigned int texture_tab_coord0[9][2] =
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
153 { { 415, 10 }, { 415, 46 }, { 415, 83 }, { 415, 121 }, { 415, 158 }, { 416, 196 }, { 416, 234 }, { 416, 271 }, { 416, 307 } };
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
154
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
155 BookUI_Spellbook_DrawCurrentSchoolBackground();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
156
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
157 PendingTexture = pIcons_LOD->GetTexture(pIcons_LOD->FindTextureByName("Pending"));
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
158 pRenderer->ClearZBuffer(0, 479);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
159 if ((11 * player->lastOpenedSpellbookPage) || ((11 * player->lastOpenedSpellbookPage) + 11))//??? maybe structure need fix
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
160 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
161 for (uint i = 1; i <= 11; ++i)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
162 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
163 if (player->_achieved_awards_bits[(11 * player->lastOpenedSpellbookPage) + i + 63])
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
164 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
165 if (SBPageSSpellsTextureList[i] != PendingTexture)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
166 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
167 if (quick_spell_at_page == i)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
168 pTexture = SBPageCSpellsTextureList[i];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
169 else
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
170 pTexture = SBPageSSpellsTextureList[i];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
171 if (pTexture->pLevelOfDetail0_prolly_alpha_mask)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
172 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
173 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
174 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
175 if (pTexture->pBits & 0x200)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
176 pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, pTexture);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
177 else
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
178 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
179 pRenderer->DrawMaskToZBuffer(pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos,
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
180 pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos, pTexture, i);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
181 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
182 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
183 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
184 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
185 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
186
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
187 pMouse->GetCursorPos(&a2);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
188 v10 = pRenderer->pActiveZBuffer[a2.x + pSRZBufferLineOffsets[a2.y]] & 0xFFFF;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
189 if (v10)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
190 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
191 if (SBPageCSpellsTextureList[v10]->pLevelOfDetail0_prolly_alpha_mask)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
192 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
193 pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Xpos;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
194 pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Ypos;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
195 if (SBPageCSpellsTextureList[v10]->pBits & 0x200)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
196 pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
197 else
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
198 pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
199 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
200 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
201 //pX_coord = (unsigned int)&player->pActiveSkills[PLAYER_SKILL_FIRE];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
202 //pY_coord = (unsigned int)&player->pActiveSkills[PLAYER_SKILL_FIRE];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
203 for (uint i = 0; i < 9; i++)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
204 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
205 if (player->pActiveSkills[PLAYER_SKILL_FIRE + i])
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
206 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
207 if (player->lastOpenedSpellbookPage == i)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
208 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
209 pPageTexture = pTextures_tabs[i][1];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
210 pX_coord = texture_tab_coord1[i][0];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
211 pY_coord = texture_tab_coord1[i][1];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
212 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
213 else
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
214 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
215 pPageTexture = pTextures_tabs[i][0];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
216 pX_coord = texture_tab_coord0[i][0];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
217 pY_coord = texture_tab_coord0[i][1];
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
218 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
219 pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, pPageTexture);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
220 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
221 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
222 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
223
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
224
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
225 void GUIWindow_Spellbook::Release()
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
226 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
227 // -----------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
228 // 0041C26A void GUIWindow::Release --- part
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
229 OnCloseSpellBookPage();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
230 OnCloseSpellBook();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
231
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
232 GUIWindow::Release();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
233 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
234
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
235
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
236 //----- (00411300) --------------------------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
237 void LoadSpellbook(unsigned int spell_school)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
238 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
239 char pContainer[20]; // [sp+Ch] [bp-1Ch]@7
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
240
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
241 byte_506550 = 0;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
242 if ( pPlayers[uActiveCharacter]->uQuickSpell && (unsigned __int8)pPlayers[uActiveCharacter]->uQuickSpell / 11 == spell_school )
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
243 quick_spell_at_page = (unsigned __int8)pPlayers[uActiveCharacter]->uQuickSpell - 11 * spell_school;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
244 else
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
245 quick_spell_at_page = 0;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
246
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
247 for (uint i = 1; i <= 11; ++i)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
248 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
249 if (pPlayers[uActiveCharacter]->spellbook.pChapters[spell_school].bIsSpellAvailable[i - 1])
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
250 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
251 sprintf(pContainer, "SB%sS%02d", spellbook_texture_filename_suffices[spell_school], pSpellbookSpellIndices[spell_school][i]);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
252 SBPageSSpellsTextureList[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
253
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
254 sprintf(pContainer, "SB%sC%02d", spellbook_texture_filename_suffices[spell_school], pSpellbookSpellIndices[spell_school][i]);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
255 SBPageCSpellsTextureList[i] = pIcons_LOD->LoadTexturePtr(pContainer, TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
256 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
257 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
258 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
259
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
260 //----- (00412AF9) --------------------------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
261 static void BookUI_Spellbook_DrawCurrentSchoolBackground()
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
262 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
263 int pTexID = 0;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
264 if ( uActiveCharacter )
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
265 pTexID = pParty->pPlayers[uActiveCharacter - 1].lastOpenedSpellbookPage;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
266 pRenderer->DrawTextureIndexed(8, 8, pSpellBookPagesTextr[pTexID]);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
267 pRenderer->DrawTextureIndexed(476, 450, pSBQuickSpellBtnTextr);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
268 pRenderer->DrawTextureIndexed(561, 450, pSpellBookCloseBtnTextr);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
269 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
270
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
271
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
272
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
273
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
274
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
275 //----- (0041192C) --------------------------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
276 void InitializeSpellBookTextures()
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
277 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
278 pAudioPlayer->StopChannels(-1, -1);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
279 ++pIcons_LOD->uTexturePacksCount;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
280 if (!pIcons_LOD->uNumPrevLoadedFiles)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
281 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
282 pAudioPlayer->PlaySound(SOUND_openbook, 0, 0, -1, 0, 0, 0, 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
283 pSpellBookPagesTextr_9 = pIcons_LOD->LoadTexturePtr("book", TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
284 pTexture_pagemask = pIcons_LOD->LoadTexturePtr("pagemask", TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
285 pSpellBookCloseBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m5-u", TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
286 pSpellBookClickCloseBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m5-d", TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
287 pSBQuickSpellBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m6-u", TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
288
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
289 static const char *texNames[9] = // 004E24EC
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
290 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
291 "SBFB00", "SBAB00", "SBWB00", "SBEB00",
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
292 "SBSB00", "SBMB00", "SBBB00", "SBLB00", "SBDB00"
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
293 };
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
294
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
295 pSBClickQuickSpellBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m6-d", TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
296 for (uint i = 0; i < 9; ++i)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
297 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
298 pSpellBookPagesTextr[i] = pIcons_LOD->LoadTexturePtr(texNames[i], TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
299 sprintf(pTmpBuf.data(), "tab%da", i + 1);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
300 pTextures_tabs[i][0] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
301 sprintf(pTmpBuf.data(), "tab%db", i + 1);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
302 pTextures_tabs[i][1] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
303 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
304 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
305
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
306
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
307 //----- (00411473) --------------------------------------------------------
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
308 void OnCloseSpellBook()
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
309 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
310 pTexture_pagemask->Release();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
311 pSpellBookCloseBtnTextr->Release();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
312 pSBQuickSpellBtnTextr->Release();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
313 for (uint i = 0; i < 9; ++i)
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
314 {
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
315 pSpellBookPagesTextr[i]->Release();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
316 pTextures_tabs[i][0]->Release();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
317 pTextures_tabs[i][1]->Release();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
318 }
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
319 pAudioPlayer->PlaySound(SOUND_openbook, 0, 0, -1, 0, 0, 0, 0);
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
320 pIcons_LOD->RemoveTexturesPackFromTextureList();
3121fb54a110 Rest & Spelbook refactored into class
a.parshin
parents:
diff changeset
321 }