comparison mm7_1.cpp @ 24:352b15291822

18.01.13 (PlaySound work)
author Ritor1
date Fri, 18 Jan 2013 17:30:54 +0600
parents 5c9930cc1959
children a9e9c6989d04
comparison
equal deleted inserted replaced
23:75d706037de4 24:352b15291822
1045 do 1045 do
1046 { 1046 {
1047 pPlayer = &pParty->pPlayers[v43]; 1047 pPlayer = &pParty->pPlayers[v43];
1048 v44 = 94 * v43 + 89; 1048 v44 = 94 * v43 + 89;
1049 if ( v43 == v0 ) 1049 if ( v43 == v0 )
1050 pGUIWindow_CurrentMenu->DrawTextInRect( 1050 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, 0x12u, v0, pGlobalTXT_LocalizationStrings[149], 60, v0);//Name
1051 pFontArrus,
1052 0x16u,
1053 0x12u,
1054 v0,
1055 pGlobalTXT_LocalizationStrings[149],
1056 60,
1057 v0);
1058 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 94 * v43 + 89, 0x12u, v47, pPlayer->pName, 84, v0); 1051 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 94 * v43 + 89, 0x12u, v47, pPlayer->pName, 84, v0);
1059 if ( v43 == v0 ) 1052 if ( v43 == v0 )
1060 pGUIWindow_CurrentMenu->DrawTextInRect( 1053 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, 0x2Fu, v0, pGlobalTXT_LocalizationStrings[131], 60, v0); //Уров.
1061 pFontArrus,
1062 0x16u,
1063 0x2Fu,
1064 v0,
1065 pGlobalTXT_LocalizationStrings[131],
1066 60,
1067 v0);
1068 v3 = pPlayer->GetActualLevel(); 1054 v3 = pPlayer->GetActualLevel();
1069 sprintf(pTmpBuf, "%lu", v3); 1055 sprintf(pTmpBuf, "%lu", v3);
1070 v4 = pPlayer->GetBaseLevel(); 1056 v4 = pPlayer->GetBaseLevel();
1071 if ( pPlayer->GetActualLevel() <= v4 ) 1057 if ( pPlayer->GetActualLevel() <= v4 )
1072 v5 = pPlayer->GetExperienceDisplayColor(); 1058 v5 = pPlayer->GetExperienceDisplayColor();
1073 else 1059 else
1074 v5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, v0); 1060 v5 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0, 0xFFu, v0);
1075 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, 0x2Fu, v5, pTmpBuf, 84, v0); 1061 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, 0x2Fu, v5, pTmpBuf, 84, v0);
1076 v6 = v45 + 47; 1062 v6 = v45 + 47;
1077 if ( v43 == v0 ) 1063 if ( v43 == v0 )
1078 pGUIWindow_CurrentMenu->DrawTextInRect( 1064 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v45 + 47, v0, pGlobalTXT_LocalizationStrings[41], 60, v0);//Класс
1079 pFontArrus,
1080 0x16u,
1081 v45 + 47,
1082 v0,
1083 pGlobalTXT_LocalizationStrings[41],
1084 60,
1085 v0);
1086 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v6, v0, pClassNames[pPlayer->uClass], 84, v0); 1065 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v6, v0, pClassNames[pPlayer->uClass], 84, v0);
1087 v7 = v45 + v6; 1066 v7 = v45 + v6;
1088 if ( v43 == v0 ) 1067 if ( v43 == v0 )
1089 pGUIWindow_CurrentMenu->DrawTextInRect( 1068 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v7, v0, pGlobalTXT_LocalizationStrings[107], 60, v0);//Здор.
1090 pFontArrus,
1091 0x16u,
1092 v7,
1093 v0,
1094 pGlobalTXT_LocalizationStrings[107],
1095 60,
1096 v0);
1097 sprintf(pTmpBuf, "%d", pPlayer->sHealth); 1069 sprintf(pTmpBuf, "%d", pPlayer->sHealth);
1098 v8 = pPlayer->GetMaxHealth(); 1070 v8 = pPlayer->GetMaxHealth();
1099 v9 = UI_GetHealthManaStringColor(pPlayer->sHealth, v8); 1071 v9 = UI_GetHealthManaStringColor(pPlayer->sHealth, v8);
1100 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v7, v9, pTmpBuf, 84, v0); 1072 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v7, v9, pTmpBuf, 84, v0);
1101 v10 = v45 + v7; 1073 v10 = v45 + v7;
1102 if ( v43 == v0 ) 1074 if ( v43 == v0 )
1103 pGUIWindow_CurrentMenu->DrawTextInRect( 1075 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v10, v0, pGlobalTXT_LocalizationStrings[209], 60, v0);//Мана
1104 pFontArrus,
1105 0x16u,
1106 v10,
1107 v0,
1108 pGlobalTXT_LocalizationStrings[209],
1109 60,
1110 v0);
1111 sprintf(pTmpBuf, "%d", pPlayer->sMana); 1076 sprintf(pTmpBuf, "%d", pPlayer->sMana);
1112 v11 = pPlayer->GetMaxMana(); 1077 v11 = pPlayer->GetMaxMana();
1113 v12 = UI_GetHealthManaStringColor(pPlayer->sMana, v11); 1078 v12 = UI_GetHealthManaStringColor(pPlayer->sMana, v11);
1114 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v10, v12, pTmpBuf, 84, v0); 1079 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v10, v12, pTmpBuf, 84, v0);
1115 v13 = v45 + v10; 1080 v13 = v45 + v10;
1116 if ( v43 == v0 ) 1081 if ( v43 == v0 )
1117 pGUIWindow_CurrentMenu->DrawTextInRect( 1082 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v13, v0, pGlobalTXT_LocalizationStrings[0], 60, v0);//Класс брони
1118 pFontArrus,
1119 0x16u,
1120 v13,
1121 v0,
1122 pGlobalTXT_LocalizationStrings[0],
1123 60,
1124 v0);
1125 v14 = pPlayer->GetActualAC(); 1083 v14 = pPlayer->GetActualAC();
1126 sprintf(pTmpBuf, "%d", v14); 1084 sprintf(pTmpBuf, "%d", v14);
1127 v15 = v0; 1085 v15 = v0;
1128 v16 = pPlayer->GetBaseAC(); 1086 v16 = pPlayer->GetBaseAC();
1129 v17 = pPlayer->GetActualAC(); 1087 v17 = pPlayer->GetActualAC();
1130 v18 = UI_GetHealthManaStringColor(v17, v16); 1088 v18 = UI_GetHealthManaStringColor(v17, v16);
1131 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v13, v18, pTmpBuf, 84, v15); 1089 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v13, v18, pTmpBuf, 84, v15);
1132 v0 = 0; 1090 v0 = 0;
1133 v19 = v45 + v13; 1091 v19 = v45 + v13;
1134 if ( !v43 ) 1092 if ( !v43 )
1135 pGUIWindow_CurrentMenu->DrawTextInRect( 1093 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v19, 0, pGlobalTXT_LocalizationStrings[18], 60, 0);//Атака
1136 pFontArrus,
1137 0x16u,
1138 v19,
1139 0,
1140 pGlobalTXT_LocalizationStrings[18],
1141 60,
1142 0);
1143 v20 = pPlayer->GetActualAttack(0); 1094 v20 = pPlayer->GetActualAttack(0);
1144 sprintf(pTmpBuf, "%+d", v20); 1095 sprintf(pTmpBuf, "%+d", v20);
1145 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v19, 0, pTmpBuf, 84, 0); 1096 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v19, 0, pTmpBuf, 84, 0);
1146 v21 = v45 + v19; 1097 v21 = v45 + v19;
1147 if ( !v43 ) 1098 if ( !v43 )
1148 pGUIWindow_CurrentMenu->DrawTextInRect( 1099 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v21, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Повр.
1149 pFontArrus,
1150 0x16u,
1151 v21,
1152 0,
1153 pGlobalTXT_LocalizationStrings[66],
1154 60,
1155 0);
1156 v22 = pPlayer->GetMeleeDamageString(); 1100 v22 = pPlayer->GetMeleeDamageString();
1157 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v21, 0, v22, 84, 0); 1101 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v21, 0, v22, 84, 0);
1158 v23 = v45 + v21; 1102 v23 = v45 + v21;
1159 if ( !v43 ) 1103 if ( !v43 )
1160 pGUIWindow_CurrentMenu->DrawTextInRect( 1104 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v23, 0, pGlobalTXT_LocalizationStrings[203], 60, 0);// Стрелять
1161 pFontArrus,
1162 0x16u,
1163 v23,
1164 0,
1165 pGlobalTXT_LocalizationStrings[203],
1166 60,
1167 0);
1168 v24 = pPlayer->GetRangedAttack(); 1105 v24 = pPlayer->GetRangedAttack();
1169 sprintf(pTmpBuf, "%+d", v24); 1106 sprintf(pTmpBuf, "%+d", v24);
1170 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v23, 0, pTmpBuf, 84, 0); 1107 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v23, 0, pTmpBuf, 84, 0);
1171 v25 = v45 + v23; 1108 v25 = v45 + v23;
1172 if ( !v43 ) 1109 if ( !v43 )
1173 pGUIWindow_CurrentMenu->DrawTextInRect( 1110 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v25, 0, pGlobalTXT_LocalizationStrings[66], 60, 0);//Повр.
1174 pFontArrus,
1175 0x16u,
1176 v25,
1177 0,
1178 pGlobalTXT_LocalizationStrings[66],
1179 60,
1180 0);
1181 v26 = pPlayer->GetRangedDamageString(); 1111 v26 = pPlayer->GetRangedDamageString();
1182 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v25, 0, v26, 84, 0); 1112 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v25, 0, v26, 84, 0);
1183 v27 = v45 + v25; 1113 v27 = v45 + v25;
1184 if ( !v43 ) 1114 if ( !v43 )
1185 pGUIWindow_CurrentMenu->DrawTextInRect( 1115 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v27, 0, pGlobalTXT_LocalizationStrings[205], 60, 0);//Навыки
1186 pFontArrus,
1187 0x16u,
1188 v27,
1189 0,
1190 pGlobalTXT_LocalizationStrings[205],
1191 60,
1192 0);
1193 v28 = 0; 1116 v28 = 0;
1194 v29 = (char *)pPlayer->pActiveSkills; 1117 v29 = (char *)pPlayer->pActiveSkills;
1195 v30 = 36; 1118 v30 = 36;
1196 do 1119 do
1197 { 1120 {
1203 while ( v30 ); 1126 while ( v30 );
1204 sprintf(pTmpBuf, "%lu", v28); 1127 sprintf(pTmpBuf, "%lu", v28);
1205 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v27, 0, pTmpBuf, 84, 0); 1128 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v27, 0, pTmpBuf, 84, 0);
1206 v31 = v45 + v27; 1129 v31 = v45 + v27;
1207 if ( !v43 ) 1130 if ( !v43 )
1208 pGUIWindow_CurrentMenu->DrawTextInRect( 1131 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v31, 0, pGlobalTXT_LocalizationStrings[168], 60, 0);//Очки
1209 pFontArrus,
1210 0x16u,
1211 v31,
1212 0,
1213 pGlobalTXT_LocalizationStrings[168],
1214 60,
1215 0);
1216 sprintf(pTmpBuf, "%lu", pPlayer->uSkillPoints); 1132 sprintf(pTmpBuf, "%lu", pPlayer->uSkillPoints);
1217 pGUIWindow_CurrentMenu->DrawTextInRect( 1133 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v31, pPlayer->uSkillPoints != 0 ? v46 : 0, pTmpBuf, 84, 0);
1218 pFontArrus,
1219 v44,
1220 v31,
1221 pPlayer->uSkillPoints != 0 ? v46 : 0,
1222 pTmpBuf,
1223 84,
1224 0);
1225 v32 = v45 + v31; 1134 v32 = v45 + v31;
1226 v48 = pPlayer->GetMajorConditionIdx(); 1135 v48 = pPlayer->GetMajorConditionIdx();
1227 if ( !v43 ) 1136 if ( !v43 )
1228 pGUIWindow_CurrentMenu->DrawTextInRect( 1137 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v32, 0, pGlobalTXT_LocalizationStrings[45], 60, 0);//Сост.
1229 pFontArrus,
1230 0x16u,
1231 v32,
1232 0,
1233 pGlobalTXT_LocalizationStrings[45],
1234 60,
1235 0);
1236 v33 = aCharacterConditionNames[v48]; 1138 v33 = aCharacterConditionNames[v48];
1237 v34 = GetConditionDrawColor(v48); 1139 v34 = GetConditionDrawColor(v48);
1238 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v32, v34, v33, 84, 0); 1140 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v32, v34, v33, 84, 0);
1239 v35 = v45 + v32; 1141 v35 = v45 + v32;
1240 if ( !v43 ) 1142 if ( !v43 )
1241 pGUIWindow_CurrentMenu->DrawTextInRect( 1143 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 0x16u, v35, 0, pGlobalTXT_LocalizationStrings[170], 60, 0);//Б.Прим.
1242 pFontArrus,
1243 0x16u,
1244 v35,
1245 0,
1246 pGlobalTXT_LocalizationStrings[170],
1247 60,
1248 0);
1249 v36 = pPlayer->uQuickSpell; 1144 v36 = pPlayer->uQuickSpell;
1250 if ( v36 ) 1145 if ( v36 )
1251 v37 = pSpellStats->pInfos[v36].pShortName; 1146 v37 = pSpellStats->pInfos[v36].pShortName;
1252 else 1147 else
1253 v37 = pGlobalTXT_LocalizationStrings[153]; 1148 v37 = pGlobalTXT_LocalizationStrings[153];//Нет
1254 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v35, 0, v37, 84, 0); 1149 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, v44, v35, 0, v37, 84, 0);
1255 ++v43; 1150 ++v43;
1256 } 1151 }
1257 while ( v43 < 4 ); 1152 while ( v43 < 4 );
1258 v38 = GetPartyReputation(); 1153 v38 = GetPartyReputation();
1265 else 1160 else
1266 { 1161 {
1267 v39 = v46; 1162 v39 = v46;
1268 } 1163 }
1269 v40 = GetReputationString(v38); 1164 v40 = GetReputationString(v38);
1270 sprintf(pTmpBuf, "%s: ", pGlobalTXT_LocalizationStrings[180], v39, v40); 1165 sprintf(pTmpBuf, "%s: ", pGlobalTXT_LocalizationStrings[180], v39, v40);//Reputation
1271 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf, 0, 0, 0); 1166 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 22, 323, 0, pTmpBuf, 0, 0, 0);
1272 v41 = pParty->GetPartyFame(); 1167 v41 = pParty->GetPartyFame();
1273 sprintf(pTmpBuf, "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], v41);// Fame 1168 sprintf(pTmpBuf, "\r261%s: %d", pGlobalTXT_LocalizationStrings[84], v41);// Fame Слава
1274 return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf, 0, 0, 0); 1169 return pGUIWindow_CurrentMenu->DrawText(pFontArrus, 0, 323, 0, pTmpBuf, 0, 0, 0);
1275 } 1170 }
1276 1171
1277 //----- (0041ABFD) -------------------------------------------------------- 1172 //----- (0041ABFD) --------------------------------------------------------
1278 void __thiscall CharacterUI_CharacterScreen_Draw(unsigned int uPlayerIdx) 1173 void __thiscall CharacterUI_CharacterScreen_Draw(unsigned int uPlayerIdx)
4717 ++v23; 4612 ++v23;
4718 v22 += 2; 4613 v22 += 2;
4719 } 4614 }
4720 while ( v23 < v21 * v19 ); 4615 while ( v23 < v21 * v19 );
4721 } 4616 }
4722 pRenderer->DrawTextureIndexed( 4617 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY,
4723 pBtn_ExitCancel->uX,
4724 pBtn_ExitCancel->uY,
4725 (Texture *)(uTextureID_506438 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_506438] : 0)); 4618 (Texture *)(uTextureID_506438 != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_506438] : 0));
4726 } 4619 }
4727 4620
4728 //----- (00420B13) -------------------------------------------------------- 4621 //----- (00420B13) --------------------------------------------------------
4729 void __fastcall sub_420B13(int a1, int a2) 4622 void __fastcall sub_420B13(int a1, int a2)