comparison mm7_4.cpp @ 60:30ec77bbd018

Merge
author Nomad
date Fri, 26 Oct 2012 02:42:38 +0200
parents 5159d2e6f559 663d5bf032d9
children 1520e3385fed
comparison
equal deleted inserted replaced
59:5159d2e6f559 60:30ec77bbd018
5334 int v49; // eax@46 5334 int v49; // eax@46
5335 int v50; // eax@46 5335 int v50; // eax@46
5336 int v51; // eax@49 5336 int v51; // eax@49
5337 char *v52; // edi@52 5337 char *v52; // edi@52
5338 char v53; // al@52 5338 char v53; // al@52
5339 int v54; // edi@53 5339 int uClassType; // edi@53
5340 int v55; // ST0C_4@53 5340 int v55; // ST0C_4@53
5341 int v56; // eax@53 5341 int v56; // eax@53
5342 int v57; // eax@53 5342 int v57; // eax@53
5343 const char *v58; // ST10_4@55
5344 unsigned int v59; // ST0C_4@55
5345 int v60; // eax@55 5343 int v60; // eax@55
5346 int v61; // ecx@55 5344 int v61; // ecx@55
5347 const char *v62; // ST10_4@57
5348 unsigned int v63; // ST0C_4@57
5349 int v64; // ST08_4@57 5345 int v64; // ST08_4@57
5350 int v65; // eax@57 5346 int v65; // eax@57
5351 int v66; // ecx@57 5347 int v66; // ecx@57
5352 const char *v67; // ST10_4@59
5353 unsigned int v68; // ST0C_4@59
5354 int v69; // ST08_4@59 5348 int v69; // ST08_4@59
5355 int v70; // eax@59 5349 int v70; // eax@59
5356 int v71; // eax@59 5350 int v71; // eax@59
5357 const char *v72; // ST10_4@61
5358 unsigned int v73; // ST0C_4@61
5359 int v74; // eax@61 5351 int v74; // eax@61
5360 int v75; // eax@61 5352 int v75; // eax@61
5361 const char *v76; // ST10_4@63
5362 unsigned int v77; // ST0C_4@63
5363 int v78; // ST08_4@63 5353 int v78; // ST08_4@63
5364 int v79; // eax@63 5354 int v79; // eax@63
5365 int v80; // eax@63 5355 int v80; // eax@63
5366 const char *v81; // ST10_4@65
5367 unsigned int v82; // ST0C_4@65
5368 int v83; // ST08_4@65 5356 int v83; // ST08_4@65
5369 int v84; // eax@65 5357 int v84; // eax@65
5370 int v85; // eax@65 5358 int v85; // eax@65
5371 const char *v86; // ST10_4@67
5372 unsigned int v87; // ST0C_4@67
5373 int v88; // eax@67 5359 int v88; // eax@67
5374 int v89; // eax@67 5360 int v89; // eax@67
5375 const char *v90; // ST10_4@69
5376 unsigned int v91; // ST0C_4@69
5377 int v92; // ST08_4@69 5361 int v92; // ST08_4@69
5378 int v93; // eax@69 5362 int v93; // eax@69
5379 int v94; // eax@69 5363 int v94; // eax@69
5380 const char *v95; // ST10_4@71
5381 unsigned int v96; // ST0C_4@71
5382 int v97; // ST08_4@71 5364 int v97; // ST08_4@71
5383 int v98; // eax@71 5365 int v98; // eax@71
5384 const char *v99; // ST10_4@71
5385 int v100; // ST0C_4@71
5386 int v101; // eax@71 5366 int v101; // eax@71
5387 enum PLAYER_SKILL_TYPE v102; // edi@72 5367 enum PLAYER_SKILL_TYPE v102; // edi@72
5388 size_t v103; // eax@72 5368 size_t v103; // eax@72
5389 signed int v104; // ecx@72 5369 signed int v104; // ecx@72
5390 int v105; // ecx@79 5370 int v105; // ecx@79
5391 int v106; // edi@81
5392 unsigned int v107; // ST0C_4@81 5371 unsigned int v107; // ST0C_4@81
5393 int pTextY; // ST08_4@81 5372 int pTextY; // ST08_4@81
5394 int v109; // eax@81 5373 int v109; // eax@81
5395 const char *v110; // ST10_4@82
5396 int v111; // ST0C_4@82 5374 int v111; // ST0C_4@82
5397 int v112; // eax@82 5375 int v112; // eax@82
5398 signed int v113; // edi@82 5376 signed int v113; // edi@82
5399 int v114; // ST0C_4@82 5377 int v114; // ST0C_4@82
5400 int v115; // eax@82 5378 int v115; // eax@82
5662 if ( v10 ) 5640 if ( v10 )
5663 break; 5641 break;
5664 v51 = v134; 5642 v51 = v134;
5665 } 5643 }
5666 } 5644 }
5667 v54 = pParty->pPlayers[uPlayerCreationUI_SelectedCharacter].uClass; 5645 uClassType = pParty->pPlayers[uPlayerCreationUI_SelectedCharacter].uClass;
5668 v55 = uColor1; 5646 v55 = uColor1;
5669 v133 = pParty->pPlayers[uPlayerCreationUI_SelectedCharacter].uClass;
5670 v56 = pFontCreate->AlignText_Center(193u, Str1); 5647 v56 = pFontCreate->AlignText_Center(193u, Str1);
5671 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v56 + 324, 395, v55, Str1, 0, 0, 0); 5648 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v56 + 324, 395, v55, Str1, 0, 0, 0);
5672 v57 = uColorTeal; 5649 v57 = uColorTeal;
5673 if ( v54 ) 5650 if ( uClassType )
5674 v57 = uColorWhite; 5651 v57 = uColorWhite;
5675 v58 = pClassNames[0];
5676 v59 = v57;
5677 v60 = pFontCreate->AlignText_Center(65u, pClassNames[0]); 5652 v60 = pFontCreate->AlignText_Center(65u, pClassNames[0]);
5678 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v60 + 323, 417, v59, v58, 0, 0, 0); 5653 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v60 + 323, 417, v57, pClassNames[0], 0, 0, 0);
5679 v61 = uColorTeal; 5654 v61 = uColorTeal;
5680 if ( v133 != 12 ) 5655 if ( uClassType != PLAYER_CLASS_PALADIN )
5681 v61 = uColorWhite; 5656 v61 = uColorWhite;
5682 v62 = pClassNames[12];
5683 v63 = v61;
5684 v64 = v128 + 417; 5657 v64 = v128 + 417;
5685 uColorGreen = v128 + 417; 5658 uColorGreen = v128 + 417;
5686 v65 = pFontCreate->AlignText_Center(65u, pClassNames[12]); 5659 v65 = pFontCreate->AlignText_Center(65u, pClassNames[12]);
5687 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v65 + 323, v64, v63, v62, 0, 0, 0); 5660 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v65 + 323, v64, v61, pClassNames[12], 0, 0, 0);
5688 v66 = uColorTeal; 5661 v66 = uColorTeal;
5689 if ( v133 != 20 ) 5662 if ( uClassType != PLAYER_CLASS_DRUID )
5690 v66 = uColorWhite; 5663 v66 = uColorWhite;
5691 v67 = pClassNames[20];
5692 v68 = v66;
5693 v69 = 2 * v128 + 417; 5664 v69 = 2 * v128 + 417;
5694 v126 = 2 * v128 + 417; 5665 v126 = 2 * v128 + 417;
5695 v70 = pFontCreate->AlignText_Center(65u, pClassNames[20]); 5666 v70 = pFontCreate->AlignText_Center(65u, pClassNames[20]);
5696 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v70 + 323, v69, v68, v67, 0, 0, 0); 5667 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v70 + 323, v69, v66, pClassNames[20], 0, 0, 0);
5697 v71 = uColorTeal; 5668 v71 = uColorTeal;
5698 if ( v133 != PLAYER_CLASS_CLERIC ) 5669 if ( uClassType != PLAYER_CLASS_CLERIC )
5699 v71 = uColorWhite; 5670 v71 = uColorWhite;
5700 v72 = pClassNames[24];
5701 v73 = v71;
5702 v74 = pFontCreate->AlignText_Center(65u, pClassNames[24]); 5671 v74 = pFontCreate->AlignText_Center(65u, pClassNames[24]);
5703 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v74 + 388, 417, v73, v72, 0, 0, 0); 5672 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v74 + 388, 417, v71, pClassNames[24], 0, 0, 0);
5704 v75 = uColorTeal; 5673 v75 = uColorTeal;
5705 if ( v133 != 28 ) 5674 if ( uClassType != 28 )
5706 v75 = uColorWhite; 5675 v75 = uColorWhite;
5707 v76 = pClassNames[28];
5708 v77 = v75;
5709 v78 = uColorGreen; 5676 v78 = uColorGreen;
5710 v79 = pFontCreate->AlignText_Center(65u, pClassNames[28]); 5677 v79 = pFontCreate->AlignText_Center(65u, pClassNames[28]);
5711 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v79 + 388, v78, v77, v76, 0, 0, 0); 5678 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v79 + 388, v78, v75, pClassNames[28], 0, 0, 0);
5712 v80 = uColorTeal; 5679 v80 = uColorTeal;
5713 if ( v133 != PLAYER_CLASS_SORCERER ) 5680 if ( uClassType != PLAYER_CLASS_SORCERER )
5714 v80 = uColorWhite; 5681 v80 = uColorWhite;
5715 v81 = pClassNames[32];
5716 v82 = v80;
5717 v83 = v126; 5682 v83 = v126;
5718 v84 = pFontCreate->AlignText_Center(65u, pClassNames[32]); 5683 v84 = pFontCreate->AlignText_Center(65u, pClassNames[32]);
5719 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v84 + 388, v83, v82, v81, 0, 0, 0); 5684 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v84 + 388, v83, v80, pClassNames[32], 0, 0, 0);
5720 v85 = uColorTeal; 5685 v85 = uColorTeal;
5721 if ( v133 != 16 ) 5686 if ( uClassType != PLAYER_CLASS_SHOOTER )
5722 v85 = uColorWhite; 5687 v85 = uColorWhite;
5723 v86 = pClassNames[16];
5724 v87 = v85;
5725 v88 = pFontCreate->AlignText_Center(65u, pClassNames[16]); 5688 v88 = pFontCreate->AlignText_Center(65u, pClassNames[16]);
5726 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v88 + 453, 417, v87, v86, 0, 0, 0); 5689 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v88 + 453, 417, v85, pClassNames[16], 0, 0, 0);
5727 v89 = uColorTeal; 5690 v89 = uColorTeal;
5728 if ( v133 != 8 ) 5691 if ( uClassType != PLAYER_CLASS_MONK )
5729 v89 = uColorWhite; 5692 v89 = uColorWhite;
5730 v90 = pClassNames[8];
5731 v91 = v89;
5732 v92 = uColorGreen; 5693 v92 = uColorGreen;
5733 v93 = pFontCreate->AlignText_Center(65u, pClassNames[8]); 5694 v93 = pFontCreate->AlignText_Center(65u, pClassNames[8]);
5734 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v93 + 453, v92, v91, v90, 0, 0, 0); 5695 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v93 + 453, v92, v89, pClassNames[8], 0, 0, 0);
5735 v94 = uColorTeal; 5696 v94 = uColorTeal;
5736 if ( v133 != 4 ) 5697 if ( uClassType != PLAYER_CLASS_THEIF )
5737 v94 = uColorWhite; 5698 v94 = uColorWhite;
5738 v95 = pClassNames[4];
5739 v96 = v94;
5740 v97 = v126; 5699 v97 = v126;
5741 v98 = pFontCreate->AlignText_Center(65u, pClassNames[4]); 5700 v98 = pFontCreate->AlignText_Center(65u, pClassNames[4]);
5742 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v98 + 453, v97, v96, v95, 0, 0, 0); 5701 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v98 + 453, v97, v94, pClassNames[4], 0, 0, 0);
5743 v99 = pGlobalTXT_LocalizationStrings[20]; // "Available Skills" 5702 v101 = pFontCreate->AlignText_Center(0xECu, pGlobalTXT_LocalizationStrings[20]); // "Available Skills"
5744 v100 = uColor1; 5703 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v101 + 37, 395, uColor1, pGlobalTXT_LocalizationStrings[20], 0, 0, 0);
5745 v101 = pFontCreate->AlignText_Center(0xECu, pGlobalTXT_LocalizationStrings[20]);
5746 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v101 + 37, 395, v100, v99, 0, 0, 0);
5747 v134 = 0; 5704 v134 = 0;
5748 do 5705 do
5749 { 5706 {
5750 v102 = pParty->pPlayers[uPlayerCreationUI_SelectedCharacter].GetSkillIdxByOrder(v134 + 4); 5707 v102 = pParty->pPlayers[uPlayerCreationUI_SelectedCharacter].GetSkillIdxByOrder(v134 + 4);
5751 strcpy(Str1, pSkillNames[v102]); 5708 strcpy(Str1, pSkillNames[v102]);
5771 if ( (signed int)v124 <= 3 ) 5728 if ( (signed int)v124 <= 3 )
5772 uColorGreen = 0; 5729 uColorGreen = 0;
5773 v105 = uColorTeal; 5730 v105 = uColorTeal;
5774 if ( !pParty->pPlayers[0].pActiveSkills[v102 + 3486 * uPlayerCreationUI_SelectedCharacter] ) 5731 if ( !pParty->pPlayers[0].pActiveSkills[v102 + 3486 * uPlayerCreationUI_SelectedCharacter] )
5775 v105 = uColorWhite; 5732 v105 = uColorWhite;
5776 v106 = v134 / 3; 5733 v107 = v105;
5777 v107 = v105;
5778 v109 = pFontCreate->AlignText_Center(100u, Str1); 5734 v109 = pFontCreate->AlignText_Center(100u, Str1);
5779 pGUIWindow_CurrentMenu->DrawText( 5735 pGUIWindow_CurrentMenu->DrawText(
5780 pFontCreate, 5736 pFontCreate,
5781 100 * v106 + v109 + uColorGreen + 17, 5737 100 * (v134 / 3) + v109 + uColorGreen + 17,
5782 v128 * (v134 % 3) + 417, 5738 v128 * (v134 % 3) + 417,
5783 v107, 5739 v107,
5784 Str1, 5740 Str1,
5785 0, 5741 0,
5786 0, 5742 0,
5787 0); 5743 0);
5788 ++v134; 5744 ++v134;
5789 } 5745 }
5790 while ( v134 < 9 ); 5746 while ( v134 < 9 );
5791 v110 = pGlobalTXT_LocalizationStrings[30]; // "Bonus"
5792 v111 = uColor1; 5747 v111 = uColor1;
5793 v112 = pFontCreate->AlignText_Center(0x5Cu, pGlobalTXT_LocalizationStrings[30]); 5748 v112 = pFontCreate->AlignText_Center(0x5Cu, pGlobalTXT_LocalizationStrings[30]);// "Bonus"
5794 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v112 + 533, 394, v111, v110, 0, 0, 0); 5749 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v112 + 533, 394, v111, pGlobalTXT_LocalizationStrings[30], 0, 0, 0);
5795 v113 = PlayerCreation_ComputeAttributeBonus(); 5750 v113 = PlayerCreation_ComputeAttributeBonus();
5796 sprintf(pTmpBuf, "%d", v113); 5751 sprintf(pTmpBuf, "%d", v113);
5797 v114 = uColorWhite; 5752 v114 = uColorWhite;
5798 v115 = pFontCreate->AlignText_Center(84u, pTmpBuf); 5753 v115 = pFontCreate->AlignText_Center(84u, pTmpBuf);
5799 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v115 + 530, 410, v114, pTmpBuf, 0, 0, 0); 5754 pGUIWindow_CurrentMenu->DrawText(pFontCreate, v115 + 530, 410, v114, pTmpBuf, 0, 0, 0);