comparison GUI/UI/UIBooks.cpp @ 2534:1bcadc6dd203

enum SOUND_
author Ritor1
date Mon, 09 Feb 2015 19:17:12 +0600
parents a77c34acdbc9
children a902abdfc7f2
comparison
equal deleted inserted replaced
2533:2baaac65d5bf 2534:1bcadc6dd203
35 { 35 {
36 pAudioPlayer->StopChannels(-1, -1); 36 pAudioPlayer->StopChannels(-1, -1);
37 ++pIcons_LOD->uTexturePacksCount; 37 ++pIcons_LOD->uTexturePacksCount;
38 if ( !pIcons_LOD->uNumPrevLoadedFiles ) 38 if ( !pIcons_LOD->uNumPrevLoadedFiles )
39 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; 39 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
40 pAudioPlayer->PlaySound(SOUND_OpenBook, 0, 0, -1, 0, 0, 0, 0); 40 pAudioPlayer->PlaySound(SOUND_openbook, 0, 0, -1, 0, 0, 0, 0);
41 pSpellBookPagesTextr_9 = pIcons_LOD->LoadTexturePtr("book", TEXTURE_16BIT_PALETTE); 41 pSpellBookPagesTextr_9 = pIcons_LOD->LoadTexturePtr("book", TEXTURE_16BIT_PALETTE);
42 pTexture_pagemask = pIcons_LOD->LoadTexturePtr("pagemask", TEXTURE_16BIT_PALETTE); 42 pTexture_pagemask = pIcons_LOD->LoadTexturePtr("pagemask", TEXTURE_16BIT_PALETTE);
43 pSpellBookCloseBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m5-u", TEXTURE_16BIT_PALETTE); 43 pSpellBookCloseBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m5-u", TEXTURE_16BIT_PALETTE);
44 pSpellBookClickCloseBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m5-d", TEXTURE_16BIT_PALETTE); 44 pSpellBookClickCloseBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m5-d", TEXTURE_16BIT_PALETTE);
45 pSBQuickSpellBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m6-u",TEXTURE_16BIT_PALETTE); 45 pSBQuickSpellBtnTextr = pIcons_LOD->LoadTexturePtr("ib-m6-u",TEXTURE_16BIT_PALETTE);
66 { 66 {
67 pAudioPlayer->StopChannels(-1, -1); 67 pAudioPlayer->StopChannels(-1, -1);
68 ++pIcons_LOD->uTexturePacksCount; 68 ++pIcons_LOD->uTexturePacksCount;
69 if ( !pIcons_LOD->uNumPrevLoadedFiles ) 69 if ( !pIcons_LOD->uNumPrevLoadedFiles )
70 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles; 70 pIcons_LOD->uNumPrevLoadedFiles = pIcons_LOD->uNumLoadedFiles;
71 pAudioPlayer->PlaySound(SOUND_OpenBook, 0, 0, -1, 0, 0, 0, 0); 71 pAudioPlayer->PlaySound(SOUND_openbook, 0, 0, -1, 0, 0, 0, 0);
72 pTexture_mapbordr = pIcons_LOD->LoadTexturePtr("mapbordr", TEXTURE_16BIT_PALETTE); 72 pTexture_mapbordr = pIcons_LOD->LoadTexturePtr("mapbordr", TEXTURE_16BIT_PALETTE);
73 pBookFont = LoadFont("book.fnt", "FONTPAL", NULL); 73 pBookFont = LoadFont("book.fnt", "FONTPAL", NULL);
74 pBook2Font = LoadFont("book2.fnt", "FONTPAL", NULL); 74 pBook2Font = LoadFont("book2.fnt", "FONTPAL", NULL);
75 pAutonoteFont = LoadFont("autonote.fnt", "FONTPAL", NULL); 75 pAutonoteFont = LoadFont("autonote.fnt", "FONTPAL", NULL);
76 pSpellFont = LoadFont("spell.fnt", "FONTPAL", NULL); 76 pSpellFont = LoadFont("spell.fnt", "FONTPAL", NULL);
111 { 111 {
112 pSpellBookPagesTextr[i]->Release(); 112 pSpellBookPagesTextr[i]->Release();
113 pTextures_tabs[i][0]->Release(); 113 pTextures_tabs[i][0]->Release();
114 pTextures_tabs[i][1]->Release(); 114 pTextures_tabs[i][1]->Release();
115 } 115 }
116 pAudioPlayer->PlaySound(SOUND_CloseBook, 0, 0, -1, 0, 0, 0, 0); 116 pAudioPlayer->PlaySound(SOUND_openbook, 0, 0, -1, 0, 0, 0, 0);
117 pIcons_LOD->RemoveTexturesPackFromTextureList(); 117 pIcons_LOD->RemoveTexturesPackFromTextureList();
118 } 118 }