Re: [GS] RCG - A city growth GameScript for OTTD
Posted: 24 Dec 2014 09:17
You can construct your strings manually, but then you are out on your own. You get no translation support nor parameterized strings from OpenTTD. Eg. getting correctly pluralized cargo label by passing cargo id and cargo count.
You will need to concatenate strings and numbers and then pass that string to the API method just as you do for GSLog.Info. I hope it work for all places where GSText is expected, but it might be incorrect, so make a quick test before going to deep into this solution.
A different way around is to not display that many figures in the town window and put a more detailed report story book window. In this window you can have (almost) unlimited amount of paragraphs where each paragraph is a GSText. The window has scrollbar and you can also insert clickable references to map locations and goals.
You will need to concatenate strings and numbers and then pass that string to the API method just as you do for GSLog.Info. I hope it work for all places where GSText is expected, but it might be incorrect, so make a quick test before going to deep into this solution.
A different way around is to not display that many figures in the town window and put a more detailed report story book window. In this window you can have (almost) unlimited amount of paragraphs where each paragraph is a GSText. The window has scrollbar and you can also insert clickable references to map locations and goals.