NewGRF GUI Window
Moderator: OpenTTD Developers
NewGRF GUI Window
Hi all,
I just created a patch to merge the two newgrf windows.
- To add a NewGRF : on the left side, click on a newGRF and press the ">>"' button, or doubleclick on it.
- To Remove a NewGRF : on the right side, click on a newGRF and press the "<<"' button.
Attached is a patch against r11499.
I just created a patch to merge the two newgrf windows.
- To add a NewGRF : on the left side, click on a newGRF and press the ">>"' button, or doubleclick on it.
- To Remove a NewGRF : on the right side, click on a newGRF and press the "<<"' button.
Attached is a patch against r11499.
- Attachments
-
- newgrf_gui2.png (195.5 KiB) Viewed 22981 times
-
- newgrf_gui_r11499.diff
- (25.45 KiB) Downloaded 628 times
Re: NewGRF GUI Window
Awesome. This would be a great patch. I hope you can work with the developers to get it into trunk! 

Re: NewGRF GUI Window
How does this look at 320x240 and 240x320? Is it useable at those resolutions?
-
- Engineer
- Posts: 72
- Joined: 23 Sep 2007 09:57
Re: NewGRF GUI Window
i guess yesRubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
Re: NewGRF GUI Window
Very nice !!
Exactly what I want here : https://www.tt-forums.net/viewtopic.php? ... &sk=t&sd=a

You are so fast !!
Thanks a lot !!

Exactly what I want here : https://www.tt-forums.net/viewtopic.php? ... &sk=t&sd=a
You are so fast !!
Thanks a lot !!



Re: NewGRF GUI Window
Nice patch.
Have you tried to make multi-line selection?
But if that is not currently supported by the GUI "framwork" it might not be that trival to do.

But if that is not currently supported by the GUI "framwork" it might not be that trival to do.
If you check you'll se that the by nycom attached image is 615 pixels wide. How will you reduce the window to become 320 or even 240 pixels?rabbit67890 wrote:i guess yesRubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
Last edited by Zuu on 23 Nov 2007 18:14, edited 1 time in total.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
- George
- Tycoon
- Posts: 4364
- Joined: 16 Apr 2003 16:09
- Skype: george-vb
- Location: Varna, Bulgaria
- Contact:
Re: NewGRF GUI Window
Would it be possible to save window size in config if it was resized and use stored size in next window opening?
Re: NewGRF GUI Window
The minimum size is 607x198.Rubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
I don't know how to resize the window and keep the same width for both sides
I made a litte patch that store the window size in the config file.George wrote:Would it be possible to save window size in config if it was resized and use stored size in next window opening?
- Attachments
-
- newgrf_gui_r11502.diff
- (26.8 KiB) Downloaded 420 times
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Re: NewGRF GUI Window
You made my day, er my night!
Thanks for this practical patch.
Sorry, besides Pocket PCs who is using 320x240? Let's hold to the standard min. (640x480) and the rest can follow later. To my opinion it is not so trivial.
![Pleased :]](./images/smilies/pleased.gif)
Sorry, besides Pocket PCs who is using 320x240? Let's hold to the standard min. (640x480) and the rest can follow later. To my opinion it is not so trivial.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
Re: NewGRF GUI Window
Great work. Much better than the old one. Maybe we could have both, just for the portable ports?
Re: NewGRF GUI Window
Almost *all* windows are useable on 320x240, except IIRC the configure patches. This includes the main toolbar that resizes for resolutions less than 640 wide. I'm all okay with the GUI being 640x480 or even 800x600 but only when it automatically downscales so it is useable on 320x240. Primarily because it is inevitable that we will some time get Pocket PC (and similar platform) support; we already have quite a lot support for them, it only is not 100% functional.athanasios wrote:You made my day, er my night!Thanks for this practical patch.
Sorry, besides Pocket PCs who is using 320x240? Let's hold to the standard min. (640x480) and the rest can follow later. To my opinion it is not so trivial.
Re: NewGRF GUI Window
But the Subsidies window is larger than the NewGRF one and the Vehicle Group Window is also higher than it.
So where is the problem ?

And we can't resize the Subsidies one ...
So where is the problem ?

And we can't resize the Subsidies one ...

- Attachments
-
- Unnamed, 18th Sep 1950_2.png (23.15 KiB) Viewed 9243 times
Re: NewGRF GUI Window
The problem is that the subsidiaries window apparantly wasn't updated to work at 320x240. If you would've opened the vehicle window at 320x240 you would have seen that it would still fit the screen; it would only be smaller. The default size of the windows in OTTD is not necessarily the smallest size.
- athanasios
- Tycoon
- Posts: 3138
- Joined: 23 Jun 2005 00:09
- Contact:
Re: NewGRF GUI Window
Questions for thought:
How long will pocket PCs stay in 320x240? There are already models that support 640x480.
How long will it take for OpenTTD to be ported to pocket PCs?
How useful would be the NewGRF GUI Window in 320x240? There won't be enough space to fit the new grfs titles (they will be displayed trunkated).
How long will pocket PCs stay in 320x240? There are already models that support 640x480.
How long will it take for OpenTTD to be ported to pocket PCs?
How useful would be the NewGRF GUI Window in 320x240? There won't be enough space to fit the new grfs titles (they will be displayed trunkated).
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
"If no one is a fool I am also a fool." -The TTD maniac.
I prefer to be contacted through PMs. Thanks.
Re: NewGRF GUI Window
Quite long I fear; an 'issue' with 640x480 is that it is kinda advertised as 320x240 and that you should use that for better quality graphics instead of 'more' graphics, or at least that was discovered when trying to port it. As far as I am aware this was a major reason why we do not have a pocket pc version yet.
There is already a pocket pc port and there is already a vast amount of code as base for a pocket pc port. How long it takes really depends on whether there is a developer with such a device or someone else who wants to cooperate closely to make the port.
Counter question: how useful is a 640x480 GUI window on 320x240? Especially because it is split into two distinct sides, it's kinda useless in that case. I'd rather have truncated text than not being able to 'properly' configure my NewGRF config.
There is already a pocket pc port and there is already a vast amount of code as base for a pocket pc port. How long it takes really depends on whether there is a developer with such a device or someone else who wants to cooperate closely to make the port.
Counter question: how useful is a 640x480 GUI window on 320x240? Especially because it is split into two distinct sides, it's kinda useless in that case. I'd rather have truncated text than not being able to 'properly' configure my NewGRF config.
Re: NewGRF GUI Window
Couldn't it just be programmed to return to the current setup when viewed in 320x240?
Re: NewGRF GUI Window
Is it possible to update this patch with the new OOP window system ?
Thanks
Thanks

Re: NewGRF GUI Window
OOP ??Octopussy wrote:Is it possible to update this patch with the new OOP window system ?
Thanks
- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Re: NewGRF GUI Window
Octopussy has been misleading in believing the widget/window system has turned into an Object Oriented Programming code.
It's not the case, just a little layer of OOP...
It's not the case, just a little layer of OOP...
If you are not ready to work a bit for your ideas, it means they don't count much for you.
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
-
- Tycoon
- Posts: 1656
- Joined: 08 Jun 2007 08:00
Re: NewGRF GUI Window
How is wiki.openttd.org readable for even 640*480. I tried this just..Wanted to show manual to someone...He couldn't read it...Rubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
Who is online
Users browsing this forum: No registered users and 4 guests