NewGRF GUI Window

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

NewGRF GUI Window

Post by nycom »

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.
Attachments
newgrf_gui2.png
newgrf_gui2.png (195.5 KiB) Viewed 21781 times
newgrf_gui_r11499.diff
(25.45 KiB) Downloaded 592 times
User avatar
Ben_K
Tycoon
Tycoon
Posts: 1166
Joined: 01 Jun 2006 15:15
Location: Sydney, AUS

Re: NewGRF GUI Window

Post by Ben_K »

Awesome. This would be a great patch. I hope you can work with the developers to get it into trunk! 8)
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: NewGRF GUI Window

Post by Rubidium »

How does this look at 320x240 and 240x320? Is it useable at those resolutions?
rabbit67890
Engineer
Engineer
Posts: 72
Joined: 23 Sep 2007 09:57

Re: NewGRF GUI Window

Post by rabbit67890 »

Rubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
i guess yes
User avatar
Octopussy
Engineer
Engineer
Posts: 122
Joined: 01 May 2006 21:57

Re: NewGRF GUI Window

Post by Octopussy »

Very nice !!

Exactly what I want here : https://www.tt-forums.net/viewtopic.php? ... &sk=t&sd=a

Image

You are so fast !!

Thanks a lot !! :P :P :P
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: NewGRF GUI Window

Post by Zuu »

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.
rabbit67890 wrote:
Rubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
i guess yes
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?
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)
User avatar
George
Tycoon
Tycoon
Posts: 4362
Joined: 16 Apr 2003 16:09
Skype: george-vb
Location: Varna, Bulgaria
Contact:

Re: NewGRF GUI Window

Post by George »

Would it be possible to save window size in config if it was resized and use stored size in next window opening?
Image Image Image Image
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Re: NewGRF GUI Window

Post by nycom »

Rubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
The minimum size is 607x198.
I don't know how to resize the window and keep the same width for both sides
George wrote:Would it be possible to save window size in config if it was resized and use stored size in next window opening?
I made a litte patch that store the window size in the config file.
Attachments
newgrf_gui_r11502.diff
(26.8 KiB) Downloaded 356 times
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: NewGRF GUI Window

Post by athanasios »

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.
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.
User avatar
rbenevid
Traffic Manager
Traffic Manager
Posts: 192
Joined: 14 Oct 2004 20:08
Location: Brazil

Re: NewGRF GUI Window

Post by rbenevid »

Great work. Much better than the old one. Maybe we could have both, just for the portable ports?
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: NewGRF GUI Window

Post by Rubidium »

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.
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.
User avatar
Octopussy
Engineer
Engineer
Posts: 122
Joined: 01 May 2006 21:57

Re: NewGRF GUI Window

Post by Octopussy »

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 ? :wink:

Image

And we can't resize the Subsidies one ... :roll:
Attachments
Unnamed, 18th Sep 1950_2.png
Unnamed, 18th Sep 1950_2.png (23.15 KiB) Viewed 8043 times
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: NewGRF GUI Window

Post by Rubidium »

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.
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: NewGRF GUI Window

Post by athanasios »

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).
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.
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: NewGRF GUI Window

Post by Rubidium »

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.
T-Unit
Transport Coordinator
Transport Coordinator
Posts: 368
Joined: 03 Feb 2007 18:53
Location: Leeds, England

Re: NewGRF GUI Window

Post by T-Unit »

Couldn't it just be programmed to return to the current setup when viewed in 320x240?
User avatar
Octopussy
Engineer
Engineer
Posts: 122
Joined: 01 May 2006 21:57

Re: NewGRF GUI Window

Post by Octopussy »

Is it possible to update this patch with the new OOP window system ?

Thanks :)
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Re: NewGRF GUI Window

Post by nycom »

Octopussy wrote:Is it possible to update this patch with the new OOP window system ?

Thanks :)
OOP ??
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: NewGRF GUI Window

Post by belugas »

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...
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
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: NewGRF GUI Window

Post by LordAzamath »

Rubidium wrote:How does this look at 320x240 and 240x320? Is it useable at those resolutions?
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...
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 31 guests