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

Singnal GUI window doesn't scale along with the content #5733

Closed
DorpsGek opened this issue Sep 3, 2013 · 6 comments
Closed

Singnal GUI window doesn't scale along with the content #5733

DorpsGek opened this issue Sep 3, 2013 · 6 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Sep 3, 2013

adf88 opened the ticket and wrote:

Buttons in the signal window don't scale along with signal sprites or signal density text. See attached images. Fix patch also attached (r25753).

Attachments

Reported version: trunk
Operating system: All


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

DorpsGek commented Sep 4, 2013

planetmaker wrote:

I like very much what I see here and also in #5735.

One thing I wonder: the [x] button on the top left does not scale with OpenGFX+BigGUI... was that window-specific (I know it behaves badly in other windows, too) or is that a problem to be fixed at a more general level (and out of scope of these patches)?


This comment was imported from FlySpray: https://bugs.openttd.org/task/5733#comment12585

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 4, 2013

Alberth wrote:

size calculation of sprites in 10 could also be done in Window::OnInit


This comment was imported from FlySpray: https://bugs.openttd.org/task/5733#comment12586

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 5, 2013

adf88 wrote:

To cache values? I see no need. Each button has it's own sprite - each sprite is asked for it's size exactly one time per window (re)init.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5733#comment12591

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 5, 2013

adf88 wrote:

OK, maybe not necessarily once :) I updated the patch:
- now it uses OnInit to cache the size
- WD_IMGBTN_XXX and WD_FRAMERECT_XXX constants are used where appropriate (size calculations, sprite offsetting)
- added vertical centring of signal sprites

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5733#comment12592

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 6, 2013

adf88 wrote:

I investigated the problem of the [x] button, see #5737


This comment was imported from FlySpray: https://bugs.openttd.org/task/5733#comment12599

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Implemented

in r25927 to r25929. Thanks for the patches!


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

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant