comparison UI/UICharacter.cpp @ 1507:a109bb203e28

UIGame.cpp cleaning(continue) GameUI_DrawMinimap
author Ritor1
date Mon, 02 Sep 2013 17:30:50 +0600
parents ab6bf38b2940
children 091c5eb46a0e
comparison
equal deleted inserted replaced
1506:c76c0f6974bc 1507:a109bb203e28
2010 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf.data(), 0, 0, 0); 2010 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, 18, 0, pTmpBuf.data(), 0, 0, 0);
2011 2011
2012 //First column(Первая колонка) 2012 //First column(Первая колонка)
2013 pY = 53; 2013 pY = 53;
2014 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[144], 2014 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[144],
2015 UI_GetHealthManaStringColor(player->GetActualMight(), player->GetBaseStrength()), 2015 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualMight(), player->GetBaseStrength()),
2016 player->GetActualMight(), player->GetBaseStrength());//Might 2016 player->GetActualMight(), player->GetBaseStrength());//Might
2017 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2017 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2018 2018
2019 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2019 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2020 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[116], 2020 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[116],
2021 UI_GetHealthManaStringColor(player->GetActualIntelligence(), player->GetBaseIntelligence()), 2021 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualIntelligence(), player->GetBaseIntelligence()),
2022 player->GetActualIntelligence(), player->GetBaseIntelligence());//Intellect 2022 player->GetActualIntelligence(), player->GetBaseIntelligence());//Intellect
2023 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2023 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2024 2024
2025 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2025 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2026 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[163], 2026 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[163],
2027 UI_GetHealthManaStringColor(player->GetActualWillpower(), player->GetBaseWillpower()), 2027 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualWillpower(), player->GetBaseWillpower()),
2028 player->GetActualWillpower(), player->GetBaseWillpower());// 2028 player->GetActualWillpower(), player->GetBaseWillpower());//
2029 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2029 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2030 2030
2031 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2031 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2032 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[75], 2032 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[75],
2033 UI_GetHealthManaStringColor(player->GetActualEndurance(), player->GetBaseEndurance()), 2033 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualEndurance(), player->GetBaseEndurance()),
2034 player->GetActualEndurance(), player->GetBaseEndurance());// 2034 player->GetActualEndurance(), player->GetBaseEndurance());//
2035 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2035 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2036 2036
2037 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2037 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2038 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[1], 2038 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[1],
2039 UI_GetHealthManaStringColor(player->GetActualAccuracy(), player->GetBaseAccuracy()), 2039 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualAccuracy(), player->GetBaseAccuracy()),
2040 player->GetActualAccuracy(), player->GetBaseAccuracy()); 2040 player->GetActualAccuracy(), player->GetBaseAccuracy());
2041 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2041 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2042 2042
2043 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2043 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2044 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[211], 2044 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n", pGlobalTXT_LocalizationStrings[211],
2045 UI_GetHealthManaStringColor(player->GetActualSpeed(), player->GetBaseSpeed()), 2045 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualSpeed(), player->GetBaseSpeed()),
2046 player->GetActualSpeed(), player->GetBaseSpeed()); 2046 player->GetActualSpeed(), player->GetBaseSpeed());
2047 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2047 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2048 2048
2049 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2049 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2050 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[136], 2050 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[136],
2051 UI_GetHealthManaStringColor(player->GetActualLuck(), player->GetBaseLuck()), 2051 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualLuck(), player->GetBaseLuck()),
2052 player->GetActualLuck(), player->GetBaseLuck()); 2052 player->GetActualLuck(), player->GetBaseLuck());
2053 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2053 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2054 2054
2055 a2 = "%s\f%05u\r424%d\f00000 /\t185%d\n"; 2055 a2 = "%s\f%05u\r424%d\f00000 /\t185%d\n";
2056 if ( player->GetMaxHealth() >= 1000 ) 2056 if ( player->GetMaxHealth() >= 1000 )
2057 a2 = "%s\f%05u\r388%d\f00000 / %d\n"; 2057 a2 = "%s\f%05u\r388%d\f00000 / %d\n";
2058 pY += 2 * LOBYTE(pFontArrus->uFontHeight) + 5; 2058 pY += 2 * LOBYTE(pFontArrus->uFontHeight) + 5;
2059 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[108], 2059 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[108],
2060 UI_GetHealthManaStringColor(player->sHealth, player->GetMaxHealth()), 2060 UI_GetHealthManaAndOtherQualitiesStringColor(player->sHealth, player->GetMaxHealth()),
2061 player->sHealth, player->GetMaxHealth()); 2061 player->sHealth, player->GetMaxHealth());
2062 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2062 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2063 2063
2064 a2 = "%s\f%05u\r424%d\f00000 /\t185%d\n"; 2064 a2 = "%s\f%05u\r424%d\f00000 /\t185%d\n";
2065 if ( player->GetMaxMana() >= 1000 ) 2065 if ( player->GetMaxMana() >= 1000 )
2066 a2 = "%s\f%05u\r388%d\f00000 / %d\n"; 2066 a2 = "%s\f%05u\r388%d\f00000 / %d\n";
2067 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2067 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2068 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[212], 2068 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[212],
2069 UI_GetHealthManaStringColor(player->sMana, player->GetMaxMana()), 2069 UI_GetHealthManaAndOtherQualitiesStringColor(player->sMana, player->GetMaxMana()),
2070 player->sMana, player->GetMaxMana()); 2070 player->sMana, player->GetMaxMana());
2071 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2071 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2072 2072
2073 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2073 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2074 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[12], 2074 sprintf(pTmpBuf.data(), "%s\f%05u\r424%d\f00000 /\t185%d\n\n", pGlobalTXT_LocalizationStrings[12],
2075 UI_GetHealthManaStringColor(player->GetActualAC(), player->GetBaseAC()), 2075 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualAC(), player->GetBaseAC()),
2076 player->GetActualAC(), player->GetBaseAC()); 2076 player->GetActualAC(), player->GetBaseAC());
2077 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0); 2077 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 26, pY, 0, pTmpBuf.data(), 0, 0, 0);
2078 2078
2079 pY += 2 * LOBYTE(pFontArrus->uFontHeight) - 2; 2079 pY += 2 * LOBYTE(pFontArrus->uFontHeight) - 2;
2080 sprintf(pTmpBuf.data(), "%s: \f%05d%s\n", pGlobalTXT_LocalizationStrings[47], GetConditionDrawColor(player->GetMajorConditionIdx()), 2080 sprintf(pTmpBuf.data(), "%s: \f%05d%s\n", pGlobalTXT_LocalizationStrings[47], GetConditionDrawColor(player->GetMajorConditionIdx()),
2089 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 26, pY, 0, pTmpBuf.data(), 226, 0); 2089 pGUIWindow_CurrentMenu->DrawTextInRect(pFontArrus, 26, pY, 0, pTmpBuf.data(), 226, 0);
2090 2090
2091 //Second column (Вторая колонка) 2091 //Second column (Вторая колонка)
2092 pY = 50; 2092 pY = 50;
2093 sprintf(pTmpBuf.data(), "%s\f%05u\t100%d\f00000 / %d\n", pGlobalTXT_LocalizationStrings[5], 2093 sprintf(pTmpBuf.data(), "%s\f%05u\t100%d\f00000 / %d\n", pGlobalTXT_LocalizationStrings[5],
2094 UI_GetHealthManaStringColor(player->GetActualAge(), player->GetBaseAge()), 2094 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualAge(), player->GetBaseAge()),
2095 player->GetActualAge(), player->GetBaseAge()); 2095 player->GetActualAge(), player->GetBaseAge());
2096 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2096 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2097 2097
2098 a2 = "%s\f%05u\t100%d\f00000 / %d\n"; 2098 a2 = "%s\f%05u\t100%d\f00000 / %d\n";
2099 if ( player->GetBaseLevel() > 99 ) 2099 if ( player->GetBaseLevel() > 99 )
2100 a2 = "%s\f%05u\t180%d\f00000 / %d\n"; 2100 a2 = "%s\f%05u\t180%d\f00000 / %d\n";
2101 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2101 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2102 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[131],//Уров. 2102 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[131],//Уров.
2103 UI_GetHealthManaStringColor(player->GetActualLevel(), player->GetBaseLevel()), 2103 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualLevel(), player->GetBaseLevel()),
2104 player->GetActualLevel(), player->GetBaseLevel()); 2104 player->GetActualLevel(), player->GetBaseLevel());
2105 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2105 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2106 2106
2107 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2107 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2108 pText = pGlobalTXT_LocalizationStrings[17]; // "Exp." 2108 pText = pGlobalTXT_LocalizationStrings[17]; // "Exp."
2130 a2 = format_4E2E10; 2130 a2 = format_4E2E10;
2131 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE) > 99 ) 2131 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE) > 99 )
2132 a2 = "%s\f%05u\t180%d\f00000 / %d\n"; 2132 a2 = "%s\f%05u\t180%d\f00000 / %d\n";
2133 pY += 2 * LOBYTE(pFontArrus->uFontHeight) - 4; 2133 pY += 2 * LOBYTE(pFontArrus->uFontHeight) - 4;
2134 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[87], 2134 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[87],
2135 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE)), 2135 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE)),
2136 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE)); 2136 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_FIRE));
2137 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2137 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2138 2138
2139 a2 = format_4E2E10; 2139 a2 = format_4E2E10;
2140 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR) > 99 ) 2140 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR) > 99 )
2141 a2 = "%s\f%05u\t180%d\f00000 / %d\n"; 2141 a2 = "%s\f%05u\t180%d\f00000 / %d\n";
2142 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2142 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2143 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[6], 2143 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[6],
2144 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR)), 2144 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR)),
2145 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR)); 2145 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_AIR), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_AIR));
2146 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2146 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2147 2147
2148 a2 = format_4E2E10; 2148 a2 = format_4E2E10;
2149 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER) > 99 ) 2149 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER) > 99 )
2150 a2 = "%s\f%05u\t180%d\f00000 / %d\n"; 2150 a2 = "%s\f%05u\t180%d\f00000 / %d\n";
2151 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2151 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2152 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[240], 2152 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[240],
2153 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER)), 2153 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER)),
2154 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER)); 2154 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_WATER), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_WATER));
2155 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2155 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2156 2156
2157 a2 = format_4E2E10; 2157 a2 = format_4E2E10;
2158 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH) > 99 ) 2158 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH) > 99 )
2159 a2 = "%s\f%05u\t180%d\f00000 / %d\n"; 2159 a2 = "%s\f%05u\t180%d\f00000 / %d\n";
2160 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2160 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2161 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[70], 2161 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[70],
2162 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH)), 2162 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH)),
2163 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH)); 2163 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_EARTH));
2164 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2164 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2165 2165
2166 a2 = format_4E2E10; 2166 a2 = format_4E2E10;
2167 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND) > 99 ) 2167 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND) > 99 )
2168 a2 = "%s\f%05u\t180%d\f00000 / %d\n"; 2168 a2 = "%s\f%05u\t180%d\f00000 / %d\n";
2169 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2169 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2170 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[142], 2170 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[142],
2171 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND)), 2171 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND)),
2172 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND)); 2172 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND));
2173 if ( player->classType == PLAYER_CLASS_LICH && player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND) == 200 ) 2173 if ( player->classType == PLAYER_CLASS_LICH && player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_MIND) == 200 )
2174 sprintf(pTmpBuf.data(), format_4E2E00, pGlobalTXT_LocalizationStrings[142], 2174 sprintf(pTmpBuf.data(), format_4E2E00, pGlobalTXT_LocalizationStrings[142],
2175 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND), 200), pGlobalTXT_LocalizationStrings[625]); 2175 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_MIND), 200), pGlobalTXT_LocalizationStrings[625]);
2176 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2176 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2177 2177
2178 a2 = format_4E2E10; 2178 a2 = format_4E2E10;
2179 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY) > 99 ) 2179 if ( player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY) > 99 || player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY) > 99 )
2180 a2 = "%s\f%05u\t180%d\f00000 / %d\n"; 2180 a2 = "%s\f%05u\t180%d\f00000 / %d\n";
2181 pY += LOBYTE(pFontArrus->uFontHeight) - 2; 2181 pY += LOBYTE(pFontArrus->uFontHeight) - 2;
2182 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[29], 2182 sprintf(pTmpBuf.data(), a2, pGlobalTXT_LocalizationStrings[29],
2183 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY)), 2183 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY)),
2184 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY)); 2184 player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY), player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY));
2185 if ( player->classType == PLAYER_CLASS_LICH && player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY) == 200 ) 2185 if ( player->classType == PLAYER_CLASS_LICH && player->GetBaseResistance(CHARACTER_ATTRIBUTE_RESIST_BODY) == 200 )
2186 sprintf(pTmpBuf.data(), format_4E2E00, pGlobalTXT_LocalizationStrings[29], 2186 sprintf(pTmpBuf.data(), format_4E2E00, pGlobalTXT_LocalizationStrings[29],
2187 UI_GetHealthManaStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY), 200), pGlobalTXT_LocalizationStrings[625]); 2187 UI_GetHealthManaAndOtherQualitiesStringColor(player->GetActualResistance(CHARACTER_ATTRIBUTE_RESIST_BODY), 200), pGlobalTXT_LocalizationStrings[625]);
2188 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0); 2188 pGUIWindow_CurrentMenu->DrawText(pFontArrus, 266, pY, 0, pTmpBuf.data(), 0, 0, 0);
2189 } 2189 }
2190 2190
2191 bool awardSort (int i, int j) 2191 bool awardSort (int i, int j)
2192 { 2192 {