Mercurial > mm7
comparison GUIWindow.cpp @ 1402:a519a6a412d0
CloseSpellBook and close SpellBookPage
author | Ritor1 |
---|---|
date | Fri, 19 Jul 2013 17:21:40 +0600 |
parents | 8ea496564034 |
children | 7cc3b01a92ac |
comparison
equal
deleted
inserted
replaced
1401:3161094869e0 | 1402:a519a6a412d0 |
---|---|
324 pCurrentScreen = pMainScreenNum; | 324 pCurrentScreen = pMainScreenNum; |
325 break; | 325 break; |
326 } | 326 } |
327 case WINDOW_SpellBook: | 327 case WINDOW_SpellBook: |
328 { | 328 { |
329 sub_41140B(); | 329 OnCloseSpellBookPage(); |
330 sub_411473(); | 330 OnCloseSpellBook(); |
331 break; | 331 break; |
332 } | 332 } |
333 case WINDOW_Book: | 333 case WINDOW_Book: |
334 { | 334 { |
335 OnCloseSpellBook(); | 335 OnCloseBook(); |
336 break; | 336 break; |
337 } | 337 } |
338 case WINDOW_ChangeLocation: | 338 case WINDOW_ChangeLocation: |
339 { | 339 { |
340 pTexture_outside->Release(); | 340 pTexture_outside->Release(); |
341 pTexture_Dialogue_Background->Release(); | 341 pTexture_Dialogue_Background->Release(); |
342 pIcons_LOD->SyncLoadedFilesCount(); | 342 pIcons_LOD->SyncLoadedFilesCount(); |
343 pCurrentScreen = pMainScreenNum; | 343 pCurrentScreen = pMainScreenNum; |
344 break; | 344 break; |
872 continue; | 872 continue; |
873 v4= pPlayer->lastOpenedSpellbookPage; | 873 v4= pPlayer->lastOpenedSpellbookPage; |
874 //v4 = (12 * pPlayer->lastOpenedSpellbookPage + pSpellbookSpellIndices[pPlayer->lastOpenedSpellbookPage][i + 1]); | 874 //v4 = (12 * pPlayer->lastOpenedSpellbookPage + pSpellbookSpellIndices[pPlayer->lastOpenedSpellbookPage][i + 1]); |
875 CreateButton(pViewport->uViewportTL_X + pIconPos[v4][pSpellbookSpellIndices[v4][i+1]].Xpos, | 875 CreateButton(pViewport->uViewportTL_X + pIconPos[v4][pSpellbookSpellIndices[v4][i+1]].Xpos, |
876 pViewport->uViewportTL_Y + pIconPos[v4][pSpellbookSpellIndices[v4][i+1]].Ypos, //dword_4E20D0 | 876 pViewport->uViewportTL_Y + pIconPos[v4][pSpellbookSpellIndices[v4][i+1]].Ypos, //dword_4E20D0 |
877 dword_506408[i + 1]->uTextureWidth, | 877 SBPageSSpellsTextureList[i + 1]->uTextureWidth, |
878 dword_506408[i + 1]->uTextureHeight, | 878 SBPageSSpellsTextureList[i + 1]->uTextureHeight, |
879 1, 79, UIMSG_SelectSpell, i, 0, "", 0); | 879 1, 79, UIMSG_SelectSpell, i, 0, "", 0); |
880 ++a2; | 880 ++a2; |
881 //++v3; | 881 //++v3; |
882 } | 882 } |
883 //while ( (signed int)v3 < 11 ); | 883 //while ( (signed int)v3 < 11 ); |
894 if (pPlayer->pActiveSkills[PLAYER_SKILL_MIND]) CreateButton(400, 196, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 5, 0, aSpellSchoolNames[5], 0); | 894 if (pPlayer->pActiveSkills[PLAYER_SKILL_MIND]) CreateButton(400, 196, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 5, 0, aSpellSchoolNames[5], 0); |
895 if (pPlayer->pActiveSkills[PLAYER_SKILL_BODY]) CreateButton(400, 234, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 6, 0, aSpellSchoolNames[6], 0); | 895 if (pPlayer->pActiveSkills[PLAYER_SKILL_BODY]) CreateButton(400, 234, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 6, 0, aSpellSchoolNames[6], 0); |
896 if (pPlayer->pActiveSkills[PLAYER_SKILL_LIGHT]) CreateButton(400, 271, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 7, 0, aSpellSchoolNames[7], 0); | 896 if (pPlayer->pActiveSkills[PLAYER_SKILL_LIGHT]) CreateButton(400, 271, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 7, 0, aSpellSchoolNames[7], 0); |
897 if (pPlayer->pActiveSkills[PLAYER_SKILL_DARK]) CreateButton(400, 307, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 8, 0, aSpellSchoolNames[8], 0); | 897 if (pPlayer->pActiveSkills[PLAYER_SKILL_DARK]) CreateButton(400, 307, 50, 36, 1, 0, UIMSG_OpenSpellbookPage, 8, 0, aSpellSchoolNames[8], 0); |
898 | 898 |
899 CreateButton(476, 450, pTexture_506444->uTextureWidth, pTexture_506444->uTextureHeight, 1, 78, UIMSG_ClickInstallRemoveQuickSpellBtn, 0, 0, "", 0); | 899 CreateButton(476, 450, pSBClickQuickSpellBtnTextr->uTextureWidth, pSBClickQuickSpellBtnTextr->uTextureHeight, 1, 78, UIMSG_ClickInstallRemoveQuickSpellBtn, 0, 0, "", 0); |
900 pBtn_InstallRemoveSpell = CreateButton(476, 450, 48, 32, 1, 78, UIMSG_ClickInstallRemoveQuickSpellBtn, 0, 0, "", pTexture_506444, 0); | 900 pBtn_InstallRemoveSpell = CreateButton(476, 450, 48, 32, 1, 78, UIMSG_ClickInstallRemoveQuickSpellBtn, 0, 0, "", pSBClickQuickSpellBtnTextr, 0); |
901 CreateButton(561, 450, ptr_506440->uTextureWidth, ptr_506440->uTextureHeight, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], 0); | 901 CreateButton(561, 450, pSpellBookClickCloseBtnTextr->uTextureWidth, pSpellBookClickCloseBtnTextr->uTextureHeight, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], 0); |
902 pBtn_CloseBook = CreateButton(561, 450, 48, 32, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], ptr_506440, 0); | 902 pBtn_CloseBook = CreateButton(561, 450, 48, 32, 1, 0, UIMSG_Escape, 0, 0, pGlobalTXT_LocalizationStrings[79], pSpellBookClickCloseBtnTextr, 0); |
903 } | 903 } |
904 // 50640C: using guessed type int dword_50640C[]; | 904 // 50640C: using guessed type int dword_50640C[]; |
905 | 905 |
906 //----- (004B3157) -------------------------------------------------------- | 906 //----- (004B3157) -------------------------------------------------------- |
907 void GUIWindow::HouseDialogManager() | 907 void GUIWindow::HouseDialogManager() |