Add SetupCargoArrayParams for cargo array descriptions
commit9b759c7a9b7c958d7014eaa677389f3db6b5b5fc
authorcirdan <cirdansw@gmail.com>
Wed, 29 Mar 2017 19:15:27 +0000 (29 21:15 +0200)
committercirdan <cirdansw@gmail.com>
Wed, 29 Mar 2017 19:15:27 +0000 (29 21:15 +0200)
tree80f7dac7923487254f8012a8ced20be9ea78cee4
parentc01249895101ae05966b7aac1a930f54c220aa1b
Add SetupCargoArrayParams for cargo array descriptions

Add a helper function SetupCargoArrayParams to set up the
string parameters for a string describing a pair or triple of
cargoes, and use it in BuildIndustryWindow::UpdateWidgetSize,
BuildIndustryWindow::DrawWidget and IndustryViewWindow::DrawInfo.
src/industry_gui.cpp