The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Ranran on October 27, 2020, 09:19:17 AM

Title: The posbutton on the message window is considered as fixed width
Post by: Ranran on October 27, 2020, 09:19:17 AM
The posbutton on the message window is considered as fixed width.
So if the theme has a posbutton image larger than 12px it will overlap the text.
The relevant part of the code is as follows:
https://github.com/aburch/simutrans/blob/472d8fde95f2836213cf3a7efc2c6360d743a687/gui/message_stats_t.cc#L226
https://github.com/aburch/simutrans/blob/472d8fde95f2836213cf3a7efc2c6360d743a687/gui/message_stats_t.cc#L254
Title: Re: The posbutton on the message window is considered as fixed width
Post by: Yona-TYT on October 27, 2020, 11:25:31 AM
This is the only list that still has this problem, I suppose it is because the message center window was never optimized so that the components would align automatically.
(https://doc-04-6c-docs.googleusercontent.com/docs/securesc/fmfdhjeb1gq1andqkij3csae5hasfte0/lfgomr7poo64680m6of4i9h3h0nifcah/1603797825000/10501154323442011542/10501154323442011542/1RdWTnSzU7KR1Y9vNNyuVRpHzFIMwlMjK?e=download&authuser=0&nonce=ueeh1oup3iabo&user=10501154323442011542&hash=llmpp087j976j8unkrvra1b4gobqeppr)
Title: Re: The posbutton on the message window is considered as fixed width
Post by: Dwachs on October 31, 2020, 12:00:08 PM
should be better with r9347
Title: Re: The posbutton on the message window is considered as fixed width
Post by: Yona-TYT on October 31, 2020, 02:24:24 PM
should be better with r9347
Very happy to hear that, as soon as I got home I tried it.