The International Simutrans Forum

 

Author Topic: The posbutton on the message window is considered as fixed width  (Read 316 times)

0 Members and 1 Guest are viewing this topic.

Offline Ranran

  • Devotee
  • *
  • Posts: 1412
  • Languages: ja
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

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1532
    • Simutrans-BLOG
  • Languages: ES
Re: The posbutton on the message window is considered as fixed width
« Reply #1 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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4821
  • Languages: EN, DE, AT
Re: The posbutton on the message window is considered as fixed width
« Reply #2 on: October 31, 2020, 12:00:08 PM »
should be better with r9347

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1532
    • Simutrans-BLOG
  • Languages: ES
Re: The posbutton on the message window is considered as fixed width
« Reply #3 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.