Mercurial > might-and-magic-trilogy
comparison mm7_4.cpp @ 169:bf2956650e92
12.12.12
author | Ritor1 |
---|---|
date | Wed, 12 Dec 2012 17:07:27 +0600 |
parents | 90a9c828c2a6 |
children | b1f67710227f |
comparison
equal
deleted
inserted
replaced
168:12a0213e66c7 | 169:bf2956650e92 |
---|---|
9134 a1.uFrameHeight -= 12; | 9134 a1.uFrameHeight -= 12; |
9135 v7 = pSpellStats->pInfos[v1].pName; | 9135 v7 = pSpellStats->pInfos[v1].pName; |
9136 a1.uFrameZ = a1.uFrameX + a1.uFrameWidth - 1; | 9136 a1.uFrameZ = a1.uFrameX + a1.uFrameWidth - 1; |
9137 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1; | 9137 a1.uFrameW = a1.uFrameHeight + a1.uFrameY - 1; |
9138 v8 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 9138 v8 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); |
9139 a1.DrawText2(pFontArrus, 0x78u, 0xCu, v8, v7, 3u); | 9139 a1.DrawTitleText(pFontArrus, 0x78u, 0xCu, v8, v7, 3u); |
9140 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0); | 9140 a1.DrawText(pFontSmallnum, 120, 44, 0, pTmpBuf2, 0, 0, 0); |
9141 a1.uFrameZ = a1.uFrameX + 107; | 9141 a1.uFrameZ = a1.uFrameX + 107; |
9142 a1.uFrameWidth = 108; | 9142 a1.uFrameWidth = 108; |
9143 a1.DrawText2(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u); | 9143 a1.DrawTitleText(pFontComic, 0xCu, 0x4Bu, 0, pSkillNames[v11 / 4 + 12], 3u); |
9144 sprintf(pTmpBuf, "%s\n%d", pGlobalTXT_LocalizationStrings[522], *(&pSpellDatas[0].uNormalLevelMana + 10 * v1)); | 9144 sprintf(pTmpBuf, "%s\n%d", pGlobalTXT_LocalizationStrings[522], *(&pSpellDatas[0].uNormalLevelMana + 10 * v1)); |
9145 return a1.DrawText2( | 9145 return a1.DrawTitleText( |
9146 pFontComic, | 9146 pFontComic, |
9147 0xCu, | 9147 0xCu, |
9148 a1.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16, | 9148 a1.uFrameHeight - LOBYTE(pFontComic->uFontHeight) - 16, |
9149 0, | 9149 0, |
9150 pTmpBuf, | 9150 pTmpBuf, |
9177 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// | 9177 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[427], pPlayer->pName, pGlobalTXT_LocalizationStrings[562]);// |
9178 // "%s is in no condition to %s" | 9178 // "%s is in no condition to %s" |
9179 // "do anything" | 9179 // "do anything" |
9180 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); | 9180 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0x9Bu); |
9181 v3 = pFontArrus->CalcTextHeight(pTmpBuf, &v4, 0, 0); | 9181 v3 = pFontArrus->CalcTextHeight(pTmpBuf, &v4, 0, 0); |
9182 v4.DrawText2(pFontArrus, 0, (212 - v3) / 2 + 101, v2, pTmpBuf, 3u); | 9182 v4.DrawTitleText(pFontArrus, 0, (212 - v3) / 2 + 101, v2, pTmpBuf, 3u); |
9183 result = 0; | 9183 result = 0; |
9184 } | 9184 } |
9185 return result; | 9185 return result; |
9186 } | 9186 } |
9187 // F8B1E0: using guessed type int dword_F8B1E0; | 9187 // F8B1E0: using guessed type int dword_F8B1E0; |
10234 v0 = pMapStats->pInfos[uHouse_ExitPic].pName; | 10234 v0 = pMapStats->pInfos[uHouse_ExitPic].pName; |
10235 v1 = pMapStats->pInfos[uHouse_ExitPic].pName; | 10235 v1 = pMapStats->pInfos[uHouse_ExitPic].pName; |
10236 a1.uFrameX = 493; | 10236 a1.uFrameX = 493; |
10237 a1.uFrameWidth = 126; | 10237 a1.uFrameWidth = 126; |
10238 a1.uFrameZ = 366; | 10238 a1.uFrameZ = 366; |
10239 a1.DrawText2(pFontCreate, 0, 2u, 0, v1, 3u); | 10239 a1.DrawTitleText(pFontCreate, 0, 2u, 0, v1, 3u); |
10240 a1.uFrameX = 483; | 10240 a1.uFrameX = 483; |
10241 a1.uFrameWidth = 148; | 10241 a1.uFrameWidth = 148; |
10242 a1.uFrameZ = 334; | 10242 a1.uFrameZ = 334; |
10243 v2 = (&off_4EB080)[4 * uHouse_ExitPic]; | 10243 v2 = (&off_4EB080)[4 * uHouse_ExitPic]; |
10244 if ( !v2 ) | 10244 if ( !v2 ) |
10246 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[411], v0); | 10246 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[411], v0); |
10247 v2 = pTmpBuf; | 10247 v2 = pTmpBuf; |
10248 } | 10248 } |
10249 v3 = v2; | 10249 v3 = v2; |
10250 v4 = pFontCreate->CalcTextHeight(v2, &a1, 0, 0); | 10250 v4 = pFontCreate->CalcTextHeight(v2, &a1, 0, 0); |
10251 LOBYTE(i) = (unsigned int)a1.DrawText2(pFontCreate, 0, (212 - v4) / 2 + 101, 0, v3, 3u); | 10251 LOBYTE(i) = (unsigned int)a1.DrawTitleText(pFontCreate, 0, (212 - v4) / 2 + 101, 0, v3, 3u); |
10252 return i; | 10252 return i; |
10253 } | 10253 } |
10254 a1.uFrameWidth -= 10; | 10254 a1.uFrameWidth -= 10; |
10255 a1.uFrameZ -= 10; | 10255 a1.uFrameZ -= 10; |
10256 v58 = array_5913D8[(unsigned int)((char *)array_5913D8[6] + -(dword_591080 != 0) - 1)]; | 10256 v58 = array_5913D8[(unsigned int)((char *)array_5913D8[6] + -(dword_591080 != 0) - 1)]; |
10260 v8 = v6->uProfession; | 10260 v8 = v6->uProfession; |
10261 if ( v8 ) | 10261 if ( v8 ) |
10262 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v6->pName, aNPCProfessionNames[v8]); | 10262 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[429], v6->pName, aNPCProfessionNames[v8]); |
10263 else | 10263 else |
10264 strcpy(pTmpBuf, v6->pName); | 10264 strcpy(pTmpBuf, v6->pName); |
10265 a1.DrawText2(pFontCreate, 0x1E3u, 0x71u, v7, pTmpBuf, 3u); | 10265 a1.DrawTitleText(pFontCreate, 0x1E3u, 0x71u, v7, pTmpBuf, 3u); |
10266 if ( !dword_591080 ) | 10266 if ( !dword_591080 ) |
10267 { | 10267 { |
10268 if ( !uDialogueType ) | 10268 if ( !uDialogueType ) |
10269 { | 10269 { |
10270 v9 = v6->greet; | 10270 v9 = v6->greet; |
10457 v40 = v45 + v44 - 1; | 10457 v40 = v45 + v44 - 1; |
10458 v42->uW = v40; | 10458 v42->uW = v40; |
10459 v46 = v55; | 10459 v46 = v55; |
10460 if ( (char *)pDialogueWindow->pCurrentPosActiveItem != pInString ) | 10460 if ( (char *)pDialogueWindow->pCurrentPosActiveItem != pInString ) |
10461 v46 = v54; | 10461 v46 = v54; |
10462 v52.DrawText2(pFontArrus, 0, v45, v46, v43, 3u); | 10462 v52.DrawTitleText(pFontArrus, 0, v45, v46, v43, 3u); |
10463 v14 = pDialogueWindow; | 10463 v14 = pDialogueWindow; |
10464 ++pInString; | 10464 ++pInString; |
10465 ++v56; | 10465 ++v56; |
10466 i = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; | 10466 i = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; |
10467 if ( v56 >= (signed int)i ) | 10467 if ( v56 >= (signed int)i ) |
11761 } | 11761 } |
11762 while ( (signed int)v15 < v13->pNumPresenceButton + v13->pStartingPosActiveItem ); | 11762 while ( (signed int)v15 < v13->pNumPresenceButton + v13->pStartingPosActiveItem ); |
11763 if ( v72 ) | 11763 if ( v72 ) |
11764 { | 11764 { |
11765 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v73);// "Skill Cost: %lu" | 11765 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v73);// "Skill Cost: %lu" |
11766 v65.DrawText2(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); | 11766 v65.DrawTitleText(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); |
11767 v73 = (signed int)(149 - i) / v72; | 11767 v73 = (signed int)(149 - i) / v72; |
11768 if ( v73 > 32 ) | 11768 if ( v73 > 32 ) |
11769 v73 = 32; | 11769 v73 = 32; |
11770 result = v13->pStartingPosActiveItem; | 11770 result = v13->pStartingPosActiveItem; |
11771 v19 = (signed int)(149 - v72 * v73 - i) / 2 - v73 / 2 + 162; | 11771 v19 = (signed int)(149 - v72 * v73 - i) / 2 - v73 / 2 + 162; |
11797 v21->uW = v26; | 11797 v21->uW = v26; |
11798 v68 = v26; | 11798 v68 = v26; |
11799 v27 = v71; | 11799 v27 = v71; |
11800 if ( pDialogueWindow->pCurrentPosActiveItem != v72 ) | 11800 if ( pDialogueWindow->pCurrentPosActiveItem != v72 ) |
11801 v27 = white; | 11801 v27 = white; |
11802 v65.DrawText2(pFontArrus, 0, v25, v27, (char *)HIDWORD(v66), 3u); | 11802 v65.DrawTitleText(pFontArrus, 0, v25, v27, (char *)HIDWORD(v66), 3u); |
11803 } | 11803 } |
11804 v28 = v13->pStartingPosActiveItem; | 11804 v28 = v13->pStartingPosActiveItem; |
11805 ++i; | 11805 ++i; |
11806 result = v13->pNumPresenceButton + v28; | 11806 result = v13->pNumPresenceButton + v28; |
11807 ++v72; | 11807 ++v72; |
11816 // "Seek knowledge elsewhere %s the %s" | 11816 // "Seek knowledge elsewhere %s the %s" |
11817 strcat(pTmpBuf, "\n \n"); | 11817 strcat(pTmpBuf, "\n \n"); |
11818 strcat(pTmpBuf, pGlobalTXT_LocalizationStrings[528]);// "I can offer you nothing further." | 11818 strcat(pTmpBuf, pGlobalTXT_LocalizationStrings[528]);// "I can offer you nothing further." |
11819 v29 = v71; | 11819 v29 = v71; |
11820 v30 = pFontArrus->CalcTextHeight(pTmpBuf, &v65, 0, 0); | 11820 v30 = pFontArrus->CalcTextHeight(pTmpBuf, &v65, 0, 0); |
11821 result = (int)v65.DrawText2(pFontArrus, 0, (174 - v30) / 2 + 138, v29, pTmpBuf, 3u); | 11821 result = (int)v65.DrawTitleText(pFontArrus, 0, (174 - v30) / 2 + 138, v29, pTmpBuf, 3u); |
11822 } | 11822 } |
11823 } | 11823 } |
11824 } | 11824 } |
11825 return result; | 11825 return result; |
11826 } | 11826 } |
11827 if ( !sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() ) | 11827 if ( !sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win() ) |
11828 { | 11828 { |
11829 v31 = pNPCTopics[122].pText; | 11829 v31 = pNPCTopics[122].pText; |
11830 v32 = v71; | 11830 v32 = v71; |
11831 v33 = pFontArrus->CalcTextHeight(pNPCTopics[122].pText, &v65, 0, 0); | 11831 v33 = pFontArrus->CalcTextHeight(pNPCTopics[122].pText, &v65, 0, 0); |
11832 v65.DrawText2(pFontArrus, 0, (212 - v33) / 2 + 101, v32, v31, 3u); | 11832 v65.DrawTitleText(pFontArrus, 0, (212 - v33) / 2 + 101, v32, v31, 3u); |
11833 result = (int)pDialogueWindow; | 11833 result = (int)pDialogueWindow; |
11834 pDialogueWindow->pNumPresenceButton = 0; | 11834 pDialogueWindow->pNumPresenceButton = 0; |
11835 return result; | 11835 return result; |
11836 } | 11836 } |
11837 v34 = v0->uLevel; | 11837 v34 = v0->uLevel; |
11908 v62 = 3; | 11908 v62 = 3; |
11909 v60 = pTmpBuf; | 11909 v60 = pTmpBuf; |
11910 v58 = v71; | 11910 v58 = v71; |
11911 v36 = (212 - pFontArrus->CalcTextHeight(pTmpBuf, &v65, 0, 0)) / 2 + 101; | 11911 v36 = (212 - pFontArrus->CalcTextHeight(pTmpBuf, &v65, 0, 0)) / 2 + 101; |
11912 } | 11912 } |
11913 v65.DrawText2(pFontArrus, v35, v36, v58, v60, v62); | 11913 v65.DrawTitleText(pFontArrus, v35, v36, v58, v60, v62); |
11914 v63 = 3; | 11914 v63 = 3; |
11915 goto LABEL_55; | 11915 goto LABEL_55; |
11916 } | 11916 } |
11917 result = sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); | 11917 result = sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); |
11918 if ( result ) | 11918 if ( result ) |
11984 v53->uW = v56; | 11984 v53->uW = v56; |
11985 v49 = v56; | 11985 v49 = v56; |
11986 v57 = v71; | 11986 v57 = v71; |
11987 if ( pDialogueWindow->pCurrentPosActiveItem != i ) | 11987 if ( pDialogueWindow->pCurrentPosActiveItem != i ) |
11988 v57 = white; | 11988 v57 = white; |
11989 v65.DrawText2(pFontArrus, 0, v55, v57, *v51, 3u); | 11989 v65.DrawTitleText(pFontArrus, 0, v55, v57, *v51, 3u); |
11990 v43 = pDialogueWindow; | 11990 v43 = pDialogueWindow; |
11991 ++i; | 11991 ++i; |
11992 ++v51; | 11992 ++v51; |
11993 ++v73; | 11993 ++v73; |
11994 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; | 11994 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; |
12184 v81 = v84 + v85 - 1; | 12184 v81 = v84 + v85 - 1; |
12185 v82->uW = v81; | 12185 v82->uW = v81; |
12186 v87 = color2; | 12186 v87 = color2; |
12187 if ( pDialogueWindow->pCurrentPosActiveItem != v86 ) | 12187 if ( pDialogueWindow->pCurrentPosActiveItem != v86 ) |
12188 v87 = white; | 12188 v87 = white; |
12189 v112.DrawText2(pFontArrus, 0, v85, v87, *v119, 3u); | 12189 v112.DrawTitleText(pFontArrus, 0, v85, v87, *v119, 3u); |
12190 v79 = pDialogueWindow; | 12190 v79 = pDialogueWindow; |
12191 ++v122; | 12191 ++v122; |
12192 ++v119; | 12192 ++v119; |
12193 ++v118; | 12193 ++v118; |
12194 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; | 12194 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; |
12246 v89 = 0; | 12246 v89 = 0; |
12247 v88 = &v112; | 12247 v88 = &v112; |
12248 goto LABEL_61; | 12248 goto LABEL_61; |
12249 } | 12249 } |
12250 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v119);// "Skill Cost: %lu" | 12250 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v119);// "Skill Cost: %lu" |
12251 v112.DrawText2(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); | 12251 v112.DrawTitleText(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); |
12252 v119 = (const char **)((149 - v118) / v122); | 12252 v119 = (const char **)((149 - v118) / v122); |
12253 if ( (149 - v118) / v122 > 32 ) | 12253 if ( (149 - v118) / v122 > 32 ) |
12254 v119 = (const char **)32; | 12254 v119 = (const char **)32; |
12255 result = v31->pStartingPosActiveItem; | 12255 result = v31->pStartingPosActiveItem; |
12256 v38 = (149 - v122 * (signed int)v119 - v118) / 2 - (signed int)v119 / 2 + 162; | 12256 v38 = (149 - v122 * (signed int)v119 - v118) / 2 - (signed int)v119 / 2 + 162; |
12283 v40->uW = v46; | 12283 v40->uW = v46; |
12284 v114 = v46; | 12284 v114 = v46; |
12285 v47 = color2; | 12285 v47 = color2; |
12286 if ( pDialogueWindow->pCurrentPosActiveItem != v45 ) | 12286 if ( pDialogueWindow->pCurrentPosActiveItem != v45 ) |
12287 v47 = white; | 12287 v47 = white; |
12288 v112.DrawText2(pFontArrus, 0, v44, v47, Str, 3u); | 12288 v112.DrawTitleText(pFontArrus, 0, v44, v47, Str, 3u); |
12289 } | 12289 } |
12290 v48 = v31->pStartingPosActiveItem; | 12290 v48 = v31->pStartingPosActiveItem; |
12291 ++v118; | 12291 ++v118; |
12292 result = v31->pNumPresenceButton + v48; | 12292 result = v31->pNumPresenceButton + v48; |
12293 ++v122; | 12293 ++v122; |
12368 v19 = v24 + v23 - 1; | 12368 v19 = v24 + v23 - 1; |
12369 v21->uW = v19; | 12369 v21->uW = v19; |
12370 v26 = color2; | 12370 v26 = color2; |
12371 if ( (const char **)pDialogueWindow->pCurrentPosActiveItem != v25 ) | 12371 if ( (const char **)pDialogueWindow->pCurrentPosActiveItem != v25 ) |
12372 v26 = white; | 12372 v26 = white; |
12373 v112.DrawText2(pFontArrus, 0, v24, v26, (const char *)LODWORD(_this->pConditions[0]), 3u); | 12373 v112.DrawTitleText(pFontArrus, 0, v24, v26, (const char *)LODWORD(_this->pConditions[0]), 3u); |
12374 v17 = pDialogueWindow; | 12374 v17 = pDialogueWindow; |
12375 v119 = (const char **)((char *)v119 + 1); | 12375 v119 = (const char **)((char *)v119 + 1); |
12376 _this = (Player *)((char *)_this + 4); | 12376 _this = (Player *)((char *)_this + 4); |
12377 ++v122; | 12377 ++v122; |
12378 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; | 12378 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; |
12415 v5 = sub_495461("%24", uActiveCharacter - 1, (ItemGen *)v4, (char *)ptr_507BC0->ptr_1C, 4, 0); | 12415 v5 = sub_495461("%24", uActiveCharacter - 1, (ItemGen *)v4, (char *)ptr_507BC0->ptr_1C, 4, 0); |
12416 v97 = 3; | 12416 v97 = 3; |
12417 v95 = v5; | 12417 v95 = v5; |
12418 v92 = white; | 12418 v92 = white; |
12419 v6 = (212 - pFontArrus->CalcTextHeight(v5, &v112, 0, 0)) / 2 + 101; | 12419 v6 = (212 - pFontArrus->CalcTextHeight(v5, &v112, 0, 0)) / 2 + 101; |
12420 return (int)v112.DrawText2(pFontArrus, v3, v6, v92, v95, v97); | 12420 return (int)v112.DrawTitleText(pFontArrus, v3, v6, v92, v95, v97); |
12421 } | 12421 } |
12422 v93 = ptr_507BC0->ptr_1C; | 12422 v93 = ptr_507BC0->ptr_1C; |
12423 v90 = (ItemGen *)v4; | 12423 v90 = (ItemGen *)v4; |
12424 v7 = (int)ptr_507BC0->ptr_1C; | 12424 v7 = (int)ptr_507BC0->ptr_1C; |
12425 uPlayerID = uActiveCharacter - 1; | 12425 uPlayerID = uActiveCharacter - 1; |
12463 v91 = v3; | 12463 v91 = v3; |
12464 v89 = v3; | 12464 v89 = v3; |
12465 v88 = &v112; | 12465 v88 = &v112; |
12466 LABEL_61: | 12466 LABEL_61: |
12467 v6 = (174 - pFontArrus->CalcTextHeight(v30, v88, v89, v91)) / 2 + 138; | 12467 v6 = (174 - pFontArrus->CalcTextHeight(v30, v88, v89, v91)) / 2 + 138; |
12468 return (int)v112.DrawText2(pFontArrus, v3, v6, v92, v95, v97); | 12468 return (int)v112.DrawTitleText(pFontArrus, v3, v6, v92, v95, v97); |
12469 } | 12469 } |
12470 } | 12470 } |
12471 pRenderer->DrawTextureIndexed(8u, 8u, dword_F8B164); | 12471 pRenderer->DrawTextureIndexed(8u, 8u, dword_F8B164); |
12472 v3 = 0; | 12472 v3 = 0; |
12473 v49 = 0; | 12473 v49 = 0; |
13212 v41 = 0; | 13212 v41 = 0; |
13213 v40 = 0; | 13213 v40 = 0; |
13214 v39 = &v52; | 13214 v39 = &v52; |
13215 LABEL_32: | 13215 LABEL_32: |
13216 v19 = pFontArrus->CalcTextHeight(v18, v39, v40, v41); | 13216 v19 = pFontArrus->CalcTextHeight(v18, v39, v40, v41); |
13217 return (int)v52.DrawText2(pFontArrus, v5, (174 - v19) / 2 + 138, v42, v43, v44); | 13217 return (int)v52.DrawTitleText(pFontArrus, v5, (174 - v19) / 2 + 138, v42, v43, v44); |
13218 } | 13218 } |
13219 } | 13219 } |
13220 return result; | 13220 return result; |
13221 } | 13221 } |
13222 if ( !(unsigned __int16)_449B57_test_bit( | 13222 if ( !(unsigned __int16)_449B57_test_bit( |
13224 word_4F0704[2 * (unsigned int)ptr_507BC0->ptr_1C]) ) | 13224 word_4F0704[2 * (unsigned int)ptr_507BC0->ptr_1C]) ) |
13225 { | 13225 { |
13226 v36 = pNPCTopics[121].pText; | 13226 v36 = pNPCTopics[121].pText; |
13227 v37 = v57; | 13227 v37 = v57; |
13228 v38 = pFontArrus->CalcTextHeight(pNPCTopics[121].pText, &v52, 0, 0); | 13228 v38 = pFontArrus->CalcTextHeight(pNPCTopics[121].pText, &v52, 0, 0); |
13229 v52.DrawText2(pFontArrus, 0, (212 - v38) / 2 + 101, v37, v36, 3u); | 13229 v52.DrawTitleText(pFontArrus, 0, (212 - v38) / 2 + 101, v37, v36, 3u); |
13230 result = (int)pDialogueWindow; | 13230 result = (int)pDialogueWindow; |
13231 pDialogueWindow->pNumPresenceButton = 0; | 13231 pDialogueWindow->pNumPresenceButton = 0; |
13232 return result; | 13232 return result; |
13233 } | 13233 } |
13234 result = sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); | 13234 result = sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); |
13288 goto LABEL_32; | 13288 goto LABEL_32; |
13289 } | 13289 } |
13290 if ( Str ) | 13290 if ( Str ) |
13291 { | 13291 { |
13292 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v63); | 13292 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v63); |
13293 v52.DrawText2(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); | 13293 v52.DrawTitleText(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); |
13294 } | 13294 } |
13295 v63 = (signed int)(149 - v62) / v61; | 13295 v63 = (signed int)(149 - v62) / v61; |
13296 if ( v63 > 32 ) | 13296 if ( v63 > 32 ) |
13297 v63 = 32; | 13297 v63 = 32; |
13298 result = v20->pStartingPosActiveItem; | 13298 result = v20->pStartingPosActiveItem; |
13330 v28->uW = v33; | 13330 v28->uW = v33; |
13331 v55 = v33; | 13331 v55 = v33; |
13332 v34 = v57; | 13332 v34 = v57; |
13333 if ( pDialogueWindow->pCurrentPosActiveItem != v61 ) | 13333 if ( pDialogueWindow->pCurrentPosActiveItem != v61 ) |
13334 v34 = v56; | 13334 v34 = v56; |
13335 v52.DrawText2(pFontArrus, 0, v32, v34, Str, 3u); | 13335 v52.DrawTitleText(pFontArrus, 0, v32, v34, Str, 3u); |
13336 goto LABEL_58; | 13336 goto LABEL_58; |
13337 } | 13337 } |
13338 v28->uW = 0; | 13338 v28->uW = 0; |
13339 v28->uHeight = 0; | 13339 v28->uHeight = 0; |
13340 v28->uY = 0; | 13340 v28->uY = 0; |
13478 } | 13478 } |
13479 while ( (signed int)v62 < v4->pNumPresenceButton + v11 ); | 13479 while ( (signed int)v62 < v4->pNumPresenceButton + v11 ); |
13480 if ( v65 ) | 13480 if ( v65 ) |
13481 { | 13481 { |
13482 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v64); | 13482 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v64); |
13483 v57.DrawText2(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); | 13483 v57.DrawTitleText(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); |
13484 v64 = (149 - (signed int)v66) / (signed int)v65; | 13484 v64 = (149 - (signed int)v66) / (signed int)v65; |
13485 if ( v64 > 32 ) | 13485 if ( v64 > 32 ) |
13486 v64 = 32; | 13486 v64 = 32; |
13487 v65 = (signed int)(149 - v65 * v64 - (int)v66) / 2 - v64 / 2 + 162; | 13487 v65 = (signed int)(149 - v65 * v64 - (int)v66) / 2 - v64 / 2 + 162; |
13488 v12 = v61; | 13488 v12 = v61; |
13515 v15->uW = v20; | 13515 v15->uW = v20; |
13516 v65 = v20; | 13516 v65 = v20; |
13517 v21 = WORD2(v59); | 13517 v21 = WORD2(v59); |
13518 if ( (DDM_DLV_Header *)pDialogueWindow->pCurrentPosActiveItem != v66 ) | 13518 if ( (DDM_DLV_Header *)pDialogueWindow->pCurrentPosActiveItem != v66 ) |
13519 v21 = WORD2(v58); | 13519 v21 = WORD2(v58); |
13520 v57.DrawText2(pFontArrus, 0, v19, v21, (const char *)HIDWORD(v60), 3u); | 13520 v57.DrawTitleText(pFontArrus, 0, v19, v21, (const char *)HIDWORD(v60), 3u); |
13521 } | 13521 } |
13522 result = (int)v61; | 13522 result = (int)v61; |
13523 ++v62; | 13523 ++v62; |
13524 v66 = (DDM_DLV_Header *)((char *)v66 + 1); | 13524 v66 = (DDM_DLV_Header *)((char *)v66 + 1); |
13525 if ( (signed int)v62 >= v61->pNumPresenceButton + v61->pStartingPosActiveItem ) | 13525 if ( (signed int)v62 >= v61->pNumPresenceButton + v61->pStartingPosActiveItem ) |
13534 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[544], v1->pName, pClassNames[v1->uClass]); | 13534 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[544], v1->pName, pClassNames[v1->uClass]); |
13535 strcat(pTmpBuf, "\n \n"); | 13535 strcat(pTmpBuf, "\n \n"); |
13536 strcat(pTmpBuf, pGlobalTXT_LocalizationStrings[528]); | 13536 strcat(pTmpBuf, pGlobalTXT_LocalizationStrings[528]); |
13537 v22 = WORD2(v59); | 13537 v22 = WORD2(v59); |
13538 v23 = pFontArrus->CalcTextHeight(pTmpBuf, &v57, 0, 0); | 13538 v23 = pFontArrus->CalcTextHeight(pTmpBuf, &v57, 0, 0); |
13539 result = (int)v57.DrawText2(pFontArrus, 0, (174 - v23) / 2 + 138, v22, pTmpBuf, 3u); | 13539 result = (int)v57.DrawTitleText(pFontArrus, 0, (174 - v23) / 2 + 138, v22, pTmpBuf, 3u); |
13540 } | 13540 } |
13541 } | 13541 } |
13542 } | 13542 } |
13543 return result; | 13543 return result; |
13544 } | 13544 } |
13730 v47 = v52 + v51 - 1; | 13730 v47 = v52 + v51 - 1; |
13731 v50->uW = v47; | 13731 v50->uW = v47; |
13732 v53 = WORD2(v59); | 13732 v53 = WORD2(v59); |
13733 if ( (GUIWindow *)pDialogueWindow->pCurrentPosActiveItem != v61 ) | 13733 if ( (GUIWindow *)pDialogueWindow->pCurrentPosActiveItem != v61 ) |
13734 v53 = WORD2(v58); | 13734 v53 = WORD2(v58); |
13735 v57.DrawText2(pFontArrus, 0, v52, v53, (const char *)v66, 3u); | 13735 v57.DrawTitleText(pFontArrus, 0, v52, v53, (const char *)v66, 3u); |
13736 v43 = pDialogueWindow; | 13736 v43 = pDialogueWindow; |
13737 v66 = (DDM_DLV_Header *)((char *)v66 + 100); | 13737 v66 = (DDM_DLV_Header *)((char *)v66 + 100); |
13738 v61 = (GUIWindow *)((char *)v61 + 1); | 13738 v61 = (GUIWindow *)((char *)v61 + 1); |
13739 ++v65; | 13739 ++v65; |
13740 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; | 13740 result = pDialogueWindow->pNumPresenceButton + pDialogueWindow->pStartingPosActiveItem; |
13945 word_4F0754[2 * (unsigned int)ptr_507BC0->ptr_1C]) ) | 13945 word_4F0754[2 * (unsigned int)ptr_507BC0->ptr_1C]) ) |
13946 { | 13946 { |
13947 v24 = pNPCTopics[171].pText; | 13947 v24 = pNPCTopics[171].pText; |
13948 v25 = v31; | 13948 v25 = v31; |
13949 v26 = pFontArrus->CalcTextHeight(pNPCTopics[171].pText, &v28, 0, 0); | 13949 v26 = pFontArrus->CalcTextHeight(pNPCTopics[171].pText, &v28, 0, 0); |
13950 v28.DrawText2(pFontArrus, 0, (212 - v26) / 2 + 101, v25, v24, 3u); | 13950 v28.DrawTitleText(pFontArrus, 0, (212 - v26) / 2 + 101, v25, v24, 3u); |
13951 result = (int)pDialogueWindow; | 13951 result = (int)pDialogueWindow; |
13952 pDialogueWindow->pNumPresenceButton = 0; | 13952 pDialogueWindow->pNumPresenceButton = 0; |
13953 return result; | 13953 return result; |
13954 } | 13954 } |
13955 result = sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); | 13955 result = sub_4B1784_check_if_player_concious__draw_warning_else_mess_with_dlg_win(); |
13983 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[544], v1->pName, pClassNames[v1->uClass]); | 13983 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[544], v1->pName, pClassNames[v1->uClass]); |
13984 strcat(pTmpBuf, "\n \n"); | 13984 strcat(pTmpBuf, "\n \n"); |
13985 strcat(pTmpBuf, pGlobalTXT_LocalizationStrings[528]); | 13985 strcat(pTmpBuf, pGlobalTXT_LocalizationStrings[528]); |
13986 v22 = v31; | 13986 v22 = v31; |
13987 v23 = pFontArrus->CalcTextHeight(pTmpBuf, &v28, 0, 0); | 13987 v23 = pFontArrus->CalcTextHeight(pTmpBuf, &v28, 0, 0); |
13988 return (int)v28.DrawText2(pFontArrus, 0, (174 - v23) / 2 + 138, v22, pTmpBuf, 3u); | 13988 return (int)v28.DrawTitleText(pFontArrus, 0, (174 - v23) / 2 + 138, v22, pTmpBuf, 3u); |
13989 } | 13989 } |
13990 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v32); | 13990 sprintf(pTmpBuf, pGlobalTXT_LocalizationStrings[401], v32); |
13991 v28.DrawText2(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); | 13991 v28.DrawTitleText(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); |
13992 v32 = (149 - v33) / v34; | 13992 v32 = (149 - v33) / v34; |
13993 if ( (149 - v33) / v34 > 32 ) | 13993 if ( (149 - v33) / v34 > 32 ) |
13994 v32 = 32; | 13994 v32 = 32; |
13995 result = v8->pStartingPosActiveItem; | 13995 result = v8->pStartingPosActiveItem; |
13996 v35 = result; | 13996 v35 = result; |
14016 v14->uW = v20; | 14016 v14->uW = v20; |
14017 v34 = v20; | 14017 v34 = v20; |
14018 v21 = v31; | 14018 v21 = v31; |
14019 if ( pDialogueWindow->pCurrentPosActiveItem != v33 ) | 14019 if ( pDialogueWindow->pCurrentPosActiveItem != v33 ) |
14020 v21 = v30; | 14020 v21 = v30; |
14021 v28.DrawText2(pFontArrus, 0, v19, v21, v17, 3u); | 14021 v28.DrawTitleText(pFontArrus, 0, v19, v21, v17, 3u); |
14022 goto LABEL_34; | 14022 goto LABEL_34; |
14023 } | 14023 } |
14024 } | 14024 } |
14025 else | 14025 else |
14026 { | 14026 { |
14257 v46 = &v50; | 14257 v46 = &v50; |
14258 v45 = (unsigned int)&v49; | 14258 v45 = (unsigned int)&v49; |
14259 v44 = &v48; | 14259 v44 = &v48; |
14260 v43 = pTmpBuf2; | 14260 v43 = pTmpBuf2; |
14261 sprintf(pTmpBuf, "%s\n \n%s%s%s%s%s", pTmpBuf2, &v48, &v49, &v50, &v51, &Dest); | 14261 sprintf(pTmpBuf, "%s\n \n%s%s%s%s%s", pTmpBuf2, &v48, &v49, &v50, &v51, &Dest); |
14262 v53.DrawText2(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); | 14262 v53.DrawTitleText(pFontArrus, 0, 0x92u, 0, pTmpBuf, 3u); |
14263 } | 14263 } |
14264 else | 14264 else |
14265 { | 14265 { |
14266 LABEL_71: | 14266 LABEL_71: |
14267 v47[1] = (const char *)3; | 14267 v47[1] = (const char *)3; |
14268 v47[0] = pGlobalTXT_LocalizationStrings[561]; | 14268 v47[0] = pGlobalTXT_LocalizationStrings[561]; |
14269 v46 = *(char **)v57; | 14269 v46 = *(char **)v57; |
14270 v45 = (174 - pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[561], &v53, 0, 0)) / 2 + 138; | 14270 v45 = (174 - pFontArrus->CalcTextHeight(pGlobalTXT_LocalizationStrings[561], &v53, 0, 0)) / 2 + 138; |
14271 v53.DrawText2(pFontArrus, 0, v45, (unsigned __int16)v46, v47[0], (unsigned int)v47[1]); | 14271 v53.DrawTitleText(pFontArrus, 0, v45, (unsigned __int16)v46, v47[0], (unsigned int)v47[1]); |
14272 pAudioPlayer->StopChannels(-1, -1); | 14272 pAudioPlayer->StopChannels(-1, -1); |
14273 } | 14273 } |
14274 } | 14274 } |
14275 } | 14275 } |
14276 else | 14276 else |