Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Town windows not expanding correctly when calling GSTown.SetText #6119

Closed
DorpsGek opened this issue Sep 20, 2014 · 1 comment
Closed

Town windows not expanding correctly when calling GSTown.SetText #6119

DorpsGek opened this issue Sep 20, 2014 · 1 comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

keoz opened the ticket and wrote:

Under some conditions: when GSTown.SetText is called, the town window does not expand correctly to display the entire text and needs to be expanded manually.

Let's illustrate the problem with the attached screenshots. They come from the Script I'm working on:
Shot 1: initial situation: townwindows just show a general text.
Shot 2: one month after, the city Burgistein received cargo requirements, and the townwindow text was updated with requirements. Here the window expands correctly.
Shot 3: some time later, the town Ardon also received cargo requirements and the townwindow text was updated BUT the new text isn't entirely displayed.
Shot 4: I expanded just a little bit Ardon's window (horizontally) and the text is now entirely shown (only on two lines).

Note: Until here, all text changes were done in town windows which where leaved open.
Shot 5: Here, I closed the Ardon's town window and reopened it: the text is now shown correctly (on three lines), as it should have been in shot 3.

Additional notes:
- I only noticed the problem when I changed fonts configuration in openttd.cfg (using larger fonts than default). I think, that with default configuration this wouldn't happen, or not on the same way.
- I could post a savegame but the one I have at the moment is full of more or less exotical NewGRF's. If you need a clean test case, I can manage to build it. But I'm hoping that the problem is quite clear without it. :p

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6119
@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Fixed

in r26859


This comment was imported from FlySpray: https://bugs.openttd.org/task/6119

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Goal/Game script labels Apr 7, 2018
@frosch123 frosch123 added the component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) label Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

2 participants