comparison UI/UiGame.cpp @ 2092:a869b0376b48

enums and BLV_UpdateDoors()
author Ritor1
date Thu, 12 Dec 2013 13:55:42 +0600
parents 38bf1c70fc70
children 2b39f6b451f9
comparison
equal deleted inserted replaced
2091:75edfa36c4de 2092:a869b0376b48
1150 ItemGen *pItemGen; // ecx@44 1150 ItemGen *pItemGen; // ecx@44
1151 int v16; // ecx@46 1151 int v16; // ecx@46
1152 signed int v18; // eax@55 1152 signed int v18; // eax@55
1153 signed int v18b; 1153 signed int v18b;
1154 signed int v19; // ecx@63 1154 signed int v19; // ecx@63
1155 BLVFace *pFace; // eax@69
1156 const char *pText; // ecx@79 1155 const char *pText; // ecx@79
1157 char *v28; // esi@82 1156 char *v28; // esi@82
1158 enum UIMessageType pMessageType2; // esi@110 1157 enum UIMessageType pMessageType2; // esi@110
1159 enum UIMessageType pMessageType3; // edx@117 1158 enum UIMessageType pMessageType3; // edx@117
1160 char Str1[200]; // [sp+Ch] [bp-D4h]@129 1159 char Str1[200]; // [sp+Ch] [bp-D4h]@129
1258 //For 3D Model------------------------------------- 1257 //For 3D Model-------------------------------------
1259 if (PID_TYPE(v18) == OBJECT_BModel) 1258 if (PID_TYPE(v18) == OBJECT_BModel)
1260 { 1259 {
1261 if ( HIWORD(v18) < interaction_distance_limit ) 1260 if ( HIWORD(v18) < interaction_distance_limit )
1262 { 1261 {
1263 if ( uCurrentlyLoadedLevelType != LEVEL_Indoor) 1262 if ( uCurrentlyLoadedLevelType == LEVEL_Outdoor)
1264 { 1263 {
1265 v18b = (signed int)(unsigned __int16)v18 >> 9; 1264 v18b = (signed int)(unsigned __int16)v18 >> 9;
1266 if ( !pOutdoor->pBModels[v18b].pFaces[v19 & 0x3F].sCogTriggeredID 1265 if ( !pOutdoor->pBModels[v18b].pFaces[v19 & 0x3F].sCogTriggeredID
1267 || !GetEventHintString(pOutdoor->pBModels[v18b].pFaces[v19 & 0x3F].sCogTriggeredID) ) 1266 || !GetEventHintString(pOutdoor->pBModels[v18b].pFaces[v19 & 0x3F].sCogTriggeredID) )
1268 { 1267 {
1282 } 1281 }
1283 } 1282 }
1284 uLastPointedObjectID = pMouse->uPointingObjectID; 1283 uLastPointedObjectID = pMouse->uPointingObjectID;
1285 return; 1284 return;
1286 } 1285 }
1287 pFace = &pIndoor->pFaces[v19]; 1286 if ( uCurrentlyLoadedLevelType == LEVEL_Indoor)
1288 if ( BYTE3(pFace->uAttributes) & 6 )
1289 { 1287 {
1290 if ( !pIndoor->pFaceExtras[pFace->uFaceExtraID].uEventID 1288 if ( pIndoor->pFaces[v19].uAttributes & FACE_INDICATE )
1291 || !GetEventHintString(pIndoor->pFaceExtras[pFace->uFaceExtraID].uEventID) )
1292 { 1289 {
1293 pMouse->uPointingObjectID = 0; 1290 if ( !pIndoor->pFaceExtras[pIndoor->pFaces[v19].uFaceExtraID].uEventID
1294 pFooterString[0] = 0; 1291 || !GetEventHintString(pIndoor->pFaceExtras[pIndoor->pFaces[v19].uFaceExtraID].uEventID) )
1295 bForceDrawFooter = 1; 1292 {
1296 uLastPointedObjectID = 0; 1293 pMouse->uPointingObjectID = 0;
1294 pFooterString[0] = 0;
1295 bForceDrawFooter = 1;
1296 uLastPointedObjectID = 0;
1297 return;
1298 }
1299 GameUI_SetFooterString(GetEventHintString(pIndoor->pFaceExtras[pIndoor->pFaces[v19].uFaceExtraID].uEventID));
1300 if ( pMouse->uPointingObjectID == 0 )
1301 {
1302 if ( uLastPointedObjectID != 0 )
1303 {
1304 pFooterString[0] = 0;
1305 bForceDrawFooter = 1;
1306 }
1307 }
1308 uLastPointedObjectID = pMouse->uPointingObjectID;
1297 return; 1309 return;
1298 } 1310 }
1299 GameUI_SetFooterString(GetEventHintString(pIndoor->pFaceExtras[pFace->uFaceExtraID].uEventID));
1300 if ( pMouse->uPointingObjectID == 0 )
1301 {
1302 if ( uLastPointedObjectID != 0 )
1303 {
1304 pFooterString[0] = 0;
1305 bForceDrawFooter = 1;
1306 }
1307 }
1308 uLastPointedObjectID = pMouse->uPointingObjectID;
1309 return;
1310 } 1311 }
1311 } 1312 }
1312 pMouse->uPointingObjectID = 0; 1313 pMouse->uPointingObjectID = 0;
1313 pFooterString[0] = 0; 1314 pFooterString[0] = 0;
1314 bForceDrawFooter = 1; 1315 bForceDrawFooter = 1;
1971 pIndoor->_visible_outlines[i >> 3] |= 1 << (7 - i % 8); 1972 pIndoor->_visible_outlines[i >> 3] |= 1 << (7 - i % 8);
1972 1973
1973 LABEL_15: 1974 LABEL_15:
1974 //v12 = &pIndoor->pFaces[pOutline->uFace1ID]; 1975 //v12 = &pIndoor->pFaces[pOutline->uFace1ID];
1975 if (bWizardEyeActive && uWizardEyeSkillLevel >= 3 && 1976 if (bWizardEyeActive && uWizardEyeSkillLevel >= 3 &&
1976 (pFace1->uAttributes & 0x2000 || pFace2->uAttributes & 0x2000) && 1977 (pFace1->Invisible() || pFace2->Invisible()) &&
1977 (pIndoor->pFaceExtras[pFace1->uFaceExtraID].uEventID || pIndoor->pFaceExtras[pFace2->uFaceExtraID].uEventID)) 1978 (pIndoor->pFaceExtras[pFace1->uFaceExtraID].uEventID || pIndoor->pFaceExtras[pFace2->uFaceExtraID].uEventID))
1978 { 1979 {
1979 if (uNumBlueFacesInBLVMinimap < 49) 1980 if (uNumBlueFacesInBLVMinimap < 49)
1980 pBlueFacesInBLVMinimapIDs[uNumBlueFacesInBLVMinimap++] = i; 1981 pBlueFacesInBLVMinimapIDs[uNumBlueFacesInBLVMinimap++] = i;
1981 } 1982 }