Added DisplayNPCExtraInfo option to ddraw.ini for previous commit.

This commit is contained in:
NovaRain
2018-10-17 09:34:14 +08:00
parent cc2b95d64e
commit c05babeda7
2 changed files with 11 additions and 4 deletions
+3
View File
@@ -629,6 +629,9 @@ NumbersInDialogue=0
;Set to 1 to use Fallout's normal text font instead of DOS-like font on the world map
WorldMapFontPatch=0
;Set to 1 to display party member's current level/AC/addict flag on the combat control panel
DisplayNPCExtraInfo=0
;Set to 1 to prevent the inventory/loot/automap interfaces from being placed on top of other script-created windows
InterfaceDontMoveOnTop=0
+8 -4
View File
@@ -421,10 +421,14 @@ void PartyControlInit() {
dlogr(" Disabled.", DL_INIT);
// display party member's current level & AC & addict flag
HookCall(0x44926F, gdControlUpdateInfo_hook);
GetPrivateProfileString("sfall", "PartyLvlMsg", "Lvl:", levelMsg, 12, translationIni);
GetPrivateProfileString("sfall", "PartyACMsg", "AC:", armorClassMsg, 12, translationIni);
GetPrivateProfileString("sfall", "PartyAddictMsg", "Addict", addictMsg, 16, translationIni);
if (GetPrivateProfileIntA("Misc", "DisplayNPCExtraInfo", 0, ini)) {
dlog("Applying display NPC extra info patch.", DL_INIT);
HookCall(0x44926F, gdControlUpdateInfo_hook);
GetPrivateProfileString("sfall", "PartyLvlMsg", "Lvl:", levelMsg, 12, translationIni);
GetPrivateProfileString("sfall", "PartyACMsg", "AC:", armorClassMsg, 12, translationIni);
GetPrivateProfileString("sfall", "PartyAddictMsg", "Addict", addictMsg, 16, translationIni);
dlogr(" Done", DL_INIT);
}
}
void __stdcall PartyControlReset() {