comparison GUIWindow.cpp @ 370:7f817679b60e

_42777D_CastSpell_UseWand_ShootArrow
author Nomad
date Fri, 22 Feb 2013 17:47:41 +0200
parents 85edec9da96b
children c31e87e41131
comparison
equal deleted inserted replaced
366:85edec9da96b 370:7f817679b60e
1038 char *v7; // eax@45 1038 char *v7; // eax@45
1039 int v8; // edi@46 1039 int v8; // edi@46
1040 int v9; // eax@50 1040 int v9; // eax@50
1041 unsigned int v10; // [sp-10h] [bp-C8h]@53 1041 unsigned int v10; // [sp-10h] [bp-C8h]@53
1042 unsigned __int16 v11; // [sp-Ch] [bp-C4h]@53 1042 unsigned __int16 v11; // [sp-Ch] [bp-C4h]@53
1043 unsigned int v12; // [sp-Ch] [bp-C4h]@60 1043 //unsigned int v12; // [sp-Ch] [bp-C4h]@60
1044 char *v13; // [sp-8h] [bp-C0h]@50 1044 char *v13; // [sp-8h] [bp-C0h]@50
1045 unsigned int v14; // [sp-8h] [bp-C0h]@60 1045 //unsigned int v14; // [sp-8h] [bp-C0h]@60
1046 unsigned int v15; // [sp-4h] [bp-BCh]@50 1046 unsigned int v15; // [sp-4h] [bp-BCh]@50
1047 Texture *v16; // [sp-4h] [bp-BCh]@60 1047 //Texture *v16; // [sp-4h] [bp-BCh]@60
1048 GUIWindow w; // [sp+Ch] [bp-ACh]@4 1048 GUIWindow w; // [sp+Ch] [bp-ACh]@4
1049 GUIWindow v18; // [sp+60h] [bp-58h]@2 1049 GUIWindow v18; // [sp+60h] [bp-58h]@2
1050 int v19; // [sp+B4h] [bp-4h]@2 1050 int v19; // [sp+B4h] [bp-4h]@2
1051 1051
1052 if ( !window_SpeakInHouse ) 1052 if ( !window_SpeakInHouse )
1055 v18.uFrameWidth -= 18; 1055 v18.uFrameWidth -= 18;
1056 v18.uFrameZ -= 18; 1056 v18.uFrameZ -= 18;
1057 v1 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); 1057 v1 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu);
1058 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); 1058 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u);
1059 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); 1059 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background);
1060 pRenderer->DrawTextureTransparent(0x1D4u, 0, (Texture *)(uTextureID_507B04 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_507B04] : 0)); 1060 pRenderer->DrawTextureTransparent(0x1D4u, 0, &pIcons_LOD->pTextures[uTextureID_507B04]);
1061 if ( array_5913D8[6] != (NPCData *)uNumDialogueNPCPortraits || !uHouse_ExitPic ) 1061 if ( array_5913D8[6] != (NPCData *)uNumDialogueNPCPortraits || !uHouse_ExitPic )
1062 { 1062 {
1063 w.uFrameWidth = 130; 1063 w.uFrameWidth = 130;
1064 w.uFrameHeight = 2 * LOBYTE(pFontCreate->uFontHeight); 1064 w.uFrameHeight = 2 * LOBYTE(pFontCreate->uFontHeight);
1065 1065
1090 { 1090 {
1091 w.uFrameWidth = 458; 1091 w.uFrameWidth = 458;
1092 w.uFrameZ = 457; 1092 w.uFrameZ = 457;
1093 v5 = pFontArrus->CalcTextHeight(ptr_F8B1E8, &w, 13, 0); 1093 v5 = pFontArrus->CalcTextHeight(ptr_F8B1E8, &w, 13, 0);
1094 v6 = v5 + 7; 1094 v6 = v5 + 7;
1095 pRenderer->_4A6A68(8, 352 - (v5 + 7), (Texture *)(uTextureID_Leather != -1 ? &pIcons_LOD->pTextures[uTextureID_Leather] : 0), 1095 pRenderer->_4A6A68(8, 352 - (v5 + 7), &pIcons_LOD->pTextures[uTextureID_Leather], pIcons_LOD->pTextures[uTextureID_Leather].uTextureHeight - (v5 + 7));
1096 (uTextureID_Leather != -1 ? pIcons_LOD->pTextures[uTextureID_Leather].uTextureHeight : 26) - (v5 + 7));
1097 pRenderer->DrawTextureIndexed(8u, 347 - v6, pTexture_591428); 1096 pRenderer->DrawTextureIndexed(8u, 347 - v6, pTexture_591428);
1098 v7 = FitTextInAWindow(ptr_F8B1E8, pFontArrus, &w, 0xDu, 0); 1097 v7 = FitTextInAWindow(ptr_F8B1E8, pFontArrus, &w, 0xDu, 0);
1099 window_SpeakInHouse->DrawText(pFontArrus, 13, 354 - v6, 0, v7, 0, 0, 0); 1098 window_SpeakInHouse->DrawText(pFontArrus, 13, 354 - v6, 0, v7, 0, 0, 0);
1100 } 1099 }
1101 v8 = 0; 1100 v8 = 0;
1103 goto LABEL_58; 1102 goto LABEL_58;
1104 while ( 1 ) 1103 while ( 1 )
1105 { 1104 {
1106 pRenderer->DrawTextureIndexed(*(&pNPCPortraits_x + v8 + 6 * uNumDialogueNPCPortraits - 6) - 4, 1105 pRenderer->DrawTextureIndexed(*(&pNPCPortraits_x + v8 + 6 * uNumDialogueNPCPortraits - 6) - 4,
1107 *(&pNPCPortraits_y + v8 + 6 * uNumDialogueNPCPortraits - 6) - 4, 1106 *(&pNPCPortraits_y + v8 + 6 * uNumDialogueNPCPortraits - 6) - 4,
1108 (Texture *)(uTextureID_50795C != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_50795C] : 0)); 1107 &pIcons_LOD->pTextures[uTextureID_50795C]);
1109 pRenderer->DrawTextureIndexed(*(&pNPCPortraits_x + v8 + 6 * uNumDialogueNPCPortraits - 6), 1108 pRenderer->DrawTextureIndexed(*(&pNPCPortraits_x + v8 + 6 * uNumDialogueNPCPortraits - 6),
1110 *(&pNPCPortraits_y + v8 + 6 * uNumDialogueNPCPortraits - 6), pDialogueNPCPortraits[v8]); 1109 *(&pNPCPortraits_y + v8 + 6 * uNumDialogueNPCPortraits - 6), pDialogueNPCPortraits[v8]);
1111 if ( uNumDialogueNPCPortraits < 4 ) 1110 if ( uNumDialogueNPCPortraits < 4 )
1112 break; 1111 break;
1113 LABEL_57: 1112 LABEL_57:
1141 v11 = v19; 1140 v11 = v19;
1142 v10 = v9; 1141 v10 = v9;
1143 goto LABEL_56; 1142 goto LABEL_56;
1144 } 1143 }
1145 v4 = (char *)array_5913D8[6] - 1; 1144 v4 = (char *)array_5913D8[6] - 1;
1146 pRenderer->DrawTextureIndexed(pNPCPortraits_x - 4, pNPCPortraits_y - 4, 1145 pRenderer->DrawTextureIndexed(pNPCPortraits_x - 4, pNPCPortraits_y - 4, &pIcons_LOD->pTextures[uTextureID_50795C]);
1147 (Texture *)(uTextureID_50795C != -1 ? &pIcons_LOD->pTextures[uTextureID_50795C] : 0));
1148 pRenderer->DrawTextureIndexed(pNPCPortraits_x, pNPCPortraits_y, pDialogueNPCPortraits[(signed int)v4]); 1146 pRenderer->DrawTextureIndexed(pNPCPortraits_x, pNPCPortraits_y, pDialogueNPCPortraits[(signed int)v4]);
1149 if ( pCurrentScreen == SCREEN_E ) 1147 if ( pCurrentScreen == SCREEN_E )
1150 { 1148 {
1151 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1); 1149 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1);
1152 goto LABEL_58; 1150 goto LABEL_58;
1231 } 1229 }
1232 } 1230 }
1233 LABEL_58: 1231 LABEL_58:
1234 if ( array_5913D8[6] == (NPCData *)uNumDialogueNPCPortraits && uHouse_ExitPic ) 1232 if ( array_5913D8[6] == (NPCData *)uNumDialogueNPCPortraits && uHouse_ExitPic )
1235 { 1233 {
1236 pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, (Texture *)(uTextureID_x_x_u != -1 ? &pIcons_LOD->pTextures[uTextureID_x_x_u] : 0)); 1234 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]);
1237 v16 = (Texture *)(uTextureID_x_ok_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_ok_u] : 0); 1235 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]);
1238 v14 = 451;
1239 v12 = 476;
1240 } 1236 }
1241 else 1237 else
1242 { 1238 {
1243 v16 = (Texture *)(uTextureID_506438 != -1 ? &pIcons_LOD->pTextures[uTextureID_506438] : 0); 1239 pRenderer->DrawTextureIndexed(471, 445, &pIcons_LOD->pTextures[uTextureID_506438]);
1244 v14 = 445; 1240 }
1245 v12 = 471;
1246 }
1247 pRenderer->DrawTextureIndexed(v12, v14, v16);
1248 } 1241 }
1249 1242
1250 1243
1251 //----- (004B1854) -------------------------------------------------------- 1244 //----- (004B1854) --------------------------------------------------------
1252 char *GUIWindow::_4B1854(__int64 a2) 1245 char *GUIWindow::_4B1854(__int64 a2)