comparison UI/UIBooks.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
37 case WINDOW_LloydsBeacon: DrawLloydBeaconsScreen(); break; 37 case WINDOW_LloydsBeacon: DrawLloydBeaconsScreen(); break;
38 case WINDOW_TownPortal: BookUI_DrawTownPortalMap(); break; 38 case WINDOW_TownPortal: BookUI_DrawTownPortalMap(); break;
39 } 39 }
40 } 40 }
41 41
42
43
44
45
46
47
48 //----- (0041192C) -------------------------------------------------------- 42 //----- (0041192C) --------------------------------------------------------
49 void InitializeBookTextures() 43 void InitializeBookTextures()
50 { 44 {
51 45
52 pAudioPlayer->StopChannels(-1, -1); 46 pAudioPlayer->StopChannels(-1, -1);
79 sprintf(pTmpBuf.data(), "tab%db", i+1); 73 sprintf(pTmpBuf.data(), "tab%db", i+1);
80 pTextures_tabs[i][1] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); 74 pTextures_tabs[i][1] = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE);
81 } 75 }
82 } 76 }
83 77
84
85
86 //----- (00411AAA) -------------------------------------------------------- 78 //----- (00411AAA) --------------------------------------------------------
87 void InitializeBookFonts() 79 void InitializeBookFonts()
88 { 80 {
89 pAudioPlayer->StopChannels(-1, -1); 81 pAudioPlayer->StopChannels(-1, -1);
90 82
97 pBookFont = LoadFont("book.fnt", "FONTPAL", NULL); 89 pBookFont = LoadFont("book.fnt", "FONTPAL", NULL);
98 pBook2Font = LoadFont("book2.fnt", "FONTPAL", NULL); 90 pBook2Font = LoadFont("book2.fnt", "FONTPAL", NULL);
99 pAutonoteFont = LoadFont("autonote.fnt", "FONTPAL", NULL); 91 pAutonoteFont = LoadFont("autonote.fnt", "FONTPAL", NULL);
100 pSpellFont = LoadFont("spell.fnt", "FONTPAL", NULL); 92 pSpellFont = LoadFont("spell.fnt", "FONTPAL", NULL);
101 } 93 }
102
103
104
105 94
106 //----- (0041140B) -------------------------------------------------------- 95 //----- (0041140B) --------------------------------------------------------
107 void OnCloseSpellBookPage() 96 void OnCloseSpellBookPage()
108 { 97 {
109 GUIButton *pNextButton; // esi@4 98 GUIButton *pNextButton; // esi@4
142 pTextures_tabs[i][1]->Release(); 131 pTextures_tabs[i][1]->Release();
143 } 132 }
144 pAudioPlayer->PlaySound(SOUND_CloseBook, 0, 0, -1, 0, 0, 0, 0); 133 pAudioPlayer->PlaySound(SOUND_CloseBook, 0, 0, -1, 0, 0, 0, 0);
145 pIcons_LOD->RemoveTexturesPackFromTextureList(); 134 pIcons_LOD->RemoveTexturesPackFromTextureList();
146 } 135 }
147
148
149
150
151
152
153
154