Changed PartyMemberExtraInfo to not show "Addict" text (in dark green) on the combat control panel if the party member is not addicted to drugs.

This commit is contained in:
NovaRain
2018-11-02 22:48:17 +08:00
parent fbdb9777c7
commit 3c9d5f7cb4
+3 -1
View File
@@ -257,10 +257,12 @@ static void __fastcall PartyMemberPrintStat(BYTE* surface, DWORD toWidth) {
xPos -= fo::GetTextWidth(armorClassMsg) + 20;
fo::PrintText(acMsg, color, xPos, 167, fo::GetTextWidth(acMsg), toWidth, surface);
color = (fo::func::queue_find_first(partyMember, 2)) ? fo::var::RedColor : fo::var::DarkGreenColor;
if (fo::func::queue_find_first(partyMember, 2)) {
color = fo::var::RedColor;
widthText = fo::GetTextWidth(addictMsg);
fo::PrintText(addictMsg, color, 350 - widthText, 148, widthText, toWidth, surface);
}
}
static void __declspec(naked) gdControlUpdateInfo_hook() {
__asm {