comparison GUIWindow.cpp @ 457:e5cf03a3d98e

m
author Ritor1
date Sun, 24 Feb 2013 20:39:03 +0600
parents 5e5dfedcc0ad
children c43f156a95c9
comparison
equal deleted inserted replaced
456:20d96ec810c8 457:e5cf03a3d98e
1046 v18.uFrameZ -= 18; 1046 v18.uFrameZ -= 18;
1047 v1 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); 1047 v1 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu);
1048 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); 1048 v19 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u);
1049 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); 1049 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background);
1050 pRenderer->DrawTextureTransparent(0x1D4u, 0, &pIcons_LOD->pTextures[uTextureID_507B04]); 1050 pRenderer->DrawTextureTransparent(0x1D4u, 0, &pIcons_LOD->pTextures[uTextureID_507B04]);
1051 if ( array_5913D8[6] != (NPCData *)uNumDialogueNPCPortraits || !uHouse_ExitPic ) 1051 if ( pDialogueNPCCount != uNumDialogueNPCPortraits || !uHouse_ExitPic )
1052 { 1052 {
1053 w.uFrameWidth = 130; 1053 w.uFrameWidth = 130;
1054 w.uFrameHeight = 2 * LOBYTE(pFontCreate->uFontHeight); 1054 w.uFrameHeight = 2 * LOBYTE(pFontCreate->uFontHeight);
1055 1055
1056 //v2 = (const char *)p2DEvents_minus1_::04[13 * (unsigned int)ptr_507BC0->ptr_1C]; 1056 //v2 = (const char *)p2DEvents_minus1_::04[13 * (unsigned int)ptr_507BC0->ptr_1C];
1066 p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pName, 3); 1066 p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pName, 3);
1067 } 1067 }
1068 } 1068 }
1069 v18.uFrameWidth += 8; 1069 v18.uFrameWidth += 8;
1070 v18.uFrameZ += 8; 1070 v18.uFrameZ += 8;
1071 if ( !array_5913D8[6] ) 1071 if ( !pDialogueNPCCount )
1072 { 1072 {
1073 if ( dword_F8B198 == 31 ) 1073 if ( dword_F8B198 == 31 )
1074 { 1074 {
1075 sub_4B4F4F(); 1075 sub_4B4F4F();
1076 goto LABEL_58; 1076 goto LABEL_58;
1121 v13 = (char *)p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pProprieterTitle; 1121 v13 = (char *)p2DEvents[(unsigned int)window_SpeakInHouse->ptr_1C - 1].pProprieterTitle;
1122 v18.DrawTitleText(pFontCreate, 0x1E3u, 113, v19, v13, 3); 1122 v18.DrawTitleText(pFontCreate, 0x1E3u, 113, v19, v13, 3);
1123 goto LABEL_57; 1123 goto LABEL_57;
1124 } 1124 }
1125 v15 = 3; 1125 v15 = 3;
1126 v13 = array_5913D8[v8 - (dword_591080 != 0)]->pName; 1126 v13 = HouseNPCData[v8 - (dword_591080 != 0)]->pName;
1127 v9 = pNPCPortraits_x[6 + (uNumDialogueNPCPortraits - 1)][v8] + pDialogueNPCPortraits[v8]->uTextureHeight + 2; 1127 v9 = pNPCPortraits_x[6 + (uNumDialogueNPCPortraits - 1)][v8] + pDialogueNPCPortraits[v8]->uTextureHeight + 2;
1128 } 1128 }
1129 v11 = v19; 1129 v11 = v19;
1130 v10 = v9; 1130 v10 = v9;
1131 v18.DrawTitleText(pFontCreate, 0x1E3u, v10, v11, v13, v15); 1131 v18.DrawTitleText(pFontCreate, 0x1E3u, v10, v11, v13, v15);
1132 goto LABEL_57; 1132 goto LABEL_57;
1133 } 1133 }
1134 v4 = (char *)array_5913D8[6] - 1; 1134 v4 = (char *)pDialogueNPCCount - 1;
1135 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, &pIcons_LOD->pTextures[uTextureID_50795C]); 1135 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, &pIcons_LOD->pTextures[uTextureID_50795C]);
1136 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[(signed int)v4]); 1136 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[(signed int)v4]);
1137 if ( pCurrentScreen == SCREEN_E ) 1137 if ( pCurrentScreen == SCREEN_E )
1138 { 1138 {
1139 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1); 1139 CharacterUI_InventoryTab_Draw(uActiveCharacter, 1);
1218 } 1218 }
1219 break; 1219 break;
1220 } 1220 }
1221 } 1221 }
1222 LABEL_58: 1222 LABEL_58:
1223 if ( array_5913D8[6] == (NPCData *)uNumDialogueNPCPortraits && uHouse_ExitPic ) 1223 if ( pDialogueNPCCount == uNumDialogueNPCPortraits && uHouse_ExitPic )
1224 { 1224 {
1225 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]); 1225 pRenderer->DrawTextureIndexed(556, 451, &pIcons_LOD->pTextures[uTextureID_x_x_u]);
1226 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]); 1226 pRenderer->DrawTextureIndexed(476, 451, &pIcons_LOD->pTextures[uTextureID_x_ok_u]);
1227 } 1227 }
1228 else 1228 else
1946 v29 = (char*)pGlobalTXT_LocalizationStrings[LOCSTR_ENTER_S];//Войти в ^Pv[%s] 1946 v29 = (char*)pGlobalTXT_LocalizationStrings[LOCSTR_ENTER_S];//Войти в ^Pv[%s]
1947 } 1947 }
1948 else 1948 else
1949 { 1949 {
1950 if ( v26 || !dword_591080 ) 1950 if ( v26 || !dword_591080 )
1951 v27 = array_5913D8[v26 - (dword_591080 != 0)]->pName; 1951 v27 = HouseNPCData[v26 - (dword_591080 != 0)]->pName;
1952 else 1952 else
1953 //v27 = (char *)p2DEvents_minus1_::08[13 * a4]; 1953 //v27 = (char *)p2DEvents_minus1_::08[13 * a4];
1954 v27 = (char *)p2DEvents[pButton - 1].pProprieterName; 1954 v27 = (char *)p2DEvents[pButton - 1].pProprieterName;
1955 v30 = v27; 1955 v30 = v27;
1956 v29 = (char*)pGlobalTXT_LocalizationStrings[435];// "Converse with %s" Побеседовать с ^Pt[%s] 1956 v29 = (char*)pGlobalTXT_LocalizationStrings[435];// "Converse with %s" Побеседовать с ^Pt[%s]
1957 } 1957 }
1958 sprintf(&byte_591180[100 * v26], v29, v30); 1958 sprintf(&byte_591180[100 * v26], v29, v30);
1959 array_5913D8[v26 + 7] = (NPCData *)pWindow->CreateButton(pNPCPortraits_x[uNumDialogueNPCPortraits - 1][v26], 1959 HouseNPCData[v26 + 7] = (NPCData *)pWindow->CreateButton(pNPCPortraits_x[uNumDialogueNPCPortraits - 1][v26],
1960 pNPCPortraits_y[uNumDialogueNPCPortraits - 1][v26], 1960 pNPCPortraits_y[uNumDialogueNPCPortraits - 1][v26],
1961 0x3Fu, 0x49u, 1, 0, 0x19Au, v26, 0, &byte_591180[100 * v26], 0, 0, 0); 1961 0x3Fu, 0x49u, 1, 0, 0x19Au, v26, 0, &byte_591180[100 * v26], 0, 0, 0);
1962 ++v26; 1962 ++v26;
1963 v25 = uNumDialogueNPCPortraits; 1963 v25 = uNumDialogueNPCPortraits;
1964 } 1964 }