Feature: Allow GameScripts to add additional text to Industry view window

This commit is contained in:
dP
2021-01-15 17:38:14 +03:00
committed by Charles Pigott
parent 4b42ecb0f6
commit bab7de6cf2
9 changed files with 60 additions and 11 deletions

View File

@@ -913,6 +913,13 @@ public:
}
}
}
if (!i->text.empty()) {
SetDParamStr(0, i->text.c_str());
y += WD_PAR_VSEP_WIDE;
y = DrawStringMultiLine(left + WD_FRAMERECT_LEFT, right - WD_FRAMERECT_RIGHT, y, UINT16_MAX, STR_JUST_RAW_STRING, TC_BLACK);
}
return y + WD_FRAMERECT_BOTTOM;
}