The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on July 13, 2024, 09:03:51 PM

Title: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 13, 2024, 09:03:51 PM
This did not happen in previous revisions. Did anything change recently?.

I am using the latest night available on playstore.

Screenshot_2024-07-13-16-59-26-346_com.simutrans.jpg
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: prissi on July 14, 2024, 12:36:07 AM
We updated the SLD2 version. Maybe that is the problem.

I the dead space above the status bar dead or does it display something?
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 14, 2024, 11:04:53 PM
In the latest revision the windows now overflow when the orientation is vertical.
Screenshot_2024-07-14-19-01-16-418_com.simutrans.jpg
Screenshot_2024-07-14-19-00-51-662_com.simutrans.jpg
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: prissi on July 15, 2024, 04:13:48 AM
Too wide dialogs are now centered, there was still an error. Also I made several dialoges with statistics narrower if the screen is very narrow. Check r11341.
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 16, 2024, 12:08:15 AM
I only have problems with the paksets selection window (on startup) and the startup banner (this one is more important for me).

But the paksets selection window for some reason is not centered on the screen when simutrans starts in vertical orientation.
photo_2024-07-15_20-24-32 (2).jpg photo_2024-07-15_20-24-32.jpg



Edit

The factories window is huge with a lot of white space, maybe it can be made smaller too?.
photo_2024-07-15_20-33-56.jpg
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: prissi on July 16, 2024, 03:48:40 AM
I am not sure why the pakset selection is not centered. It is centered on all my tries with Windows when confining to a narrow portrait screen.

The factory widow cannot made smaller as there is not a sensible way to reduce the statistics to a three button width. One could of course threw out the statistics entirely for very narrow screens ...

Latest nightly should shows a slightly narrower banner window by moving the iron to the lower left corner if four buttons would not fit. However, the width is also given by the long revision text at the bottom.
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 16, 2024, 11:37:20 PM
Thanks, it works fine for me now :)Screenshot_2024-07-16-19-34-57-420_com.simutrans.jpg
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: prissi on July 17, 2024, 11:38:32 AM
But have still a black top ...
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 17, 2024, 01:29:14 PM
Quote from: prissi on July 17, 2024, 11:38:32 AMBut have still a black top ...
No no, that border is not usable space, so I think everything is fine.


Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: FLN on July 18, 2024, 06:46:33 PM
Quote from: prissi on July 16, 2024, 03:48:40 AMThe factory widow cannot made smaller as there is not a sensible way to reduce the statistics to a three button width.
May I ask, if it's possible to define two widths for the same window?

Like, there could be defined a narrower width for windows wich usually have this remarkable blank areas when they get opened, and a secondary broader width, for when the statistics panel gets called up.
This method then could be only applied for small screens...
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 19, 2024, 03:30:12 AM
Quote from: FLN on July 18, 2024, 06:46:33 PMMay I ask, if it's possible to define two widths for the same window?

Like, there could be defined a narrower width for windows wich usually have this remarkable blank areas when they get opened, and a secondary broader width, for when the statistics panel gets called up.
This method then could be only applied for small screens...
It seems that our @prissi already did it silently, but it looked very good with that scroll bar. :D

Screenshot_2024-07-18-23-27-36-695_com.simutrans.jpg





The load save game and load scenario windows also have problems caused by long text, maybe the same can be done with the start banner here too?.

Screenshot_2024-07-18-23-35-15-490_com.simutrans.jpg
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: prissi on July 19, 2024, 12:32:06 PM
The loadsave frame was easy and the online frame is also a little narrower as is the line list. But thats about it.
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 19, 2024, 01:53:02 PM
I think the size of the graphics 📈 is also affecting the minimum size in the convoy window.

Screenshot_2024-07-19-09-48-43-463_com.simutrans.jpg
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: prissi on July 20, 2024, 08:10:47 AM
Yes, but if it gets narrower, it will go to three buttons instead, so that space should be ok.
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: Yona-TYT on July 20, 2024, 11:11:29 PM
Quote from: prissi on July 20, 2024, 08:10:47 AMYes, but if it gets narrower, it will go to three buttons instead, so that space should be ok.
It's strange, the depot window has the same number of buttons but they are reduced a little more. Maybe something else is affecting the minimum size of the window?.
Screenshot_2024-07-20-19-08-53-940_com.simutrans.jpg
Title: Re: [Android] The menu bar is displayed outside the screen limits
Post by: prissi on July 20, 2024, 11:40:00 PM
Yes, essentially the length of the translation. If the font size is large, then some button become larger than the usual standard size and widen the whole dialog. That of course is only visible after building the dialog. I used a trick for the factory statistics. But it is quite some effort. Simutrans really requires big wide screens and is borderline usable on a smartphone.