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

yorick
Engineer
Engineer
Posts: 80
Joined: 23 Mar 2008 08:53

Re: NewGRF GUI Window

Post by yorick »

An update I extracted from the TibPP.
Attachments
newnewgrf_gui_r14103.diff
Works with presets
(39.95 KiB) Downloaded 151 times
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

update to trunk (r14103)
EDIT: somewhat made the code more OpenTTD compliant :). Thx Belugas for his time and patience
Attachments
newgrf-gui_r14103.diff
newgrf gui window, for trunk r14103
(39.9 KiB) Downloaded 169 times
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1732
Joined: 30 Mar 2005 09:43

Re: NewGRF GUI Window

Post by peter1138 »

There's an off-by-one error somewhere, causing trails to be left behind when resizing the window.
He's like, some kind of OpenTTD developer.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

Update to trunk r14423.
peter1138 wrote:There's an off-by-one error somewhere, causing trails to be left behind when resizing the window.
I hope that's fixed now, too.

There's still a problem with the button texts becoming too wide, if the window is sufficiently decreased in size.
Attachments
newgrf-gui_r14423.diff
newgrf gui for r14423
(38.28 KiB) Downloaded 199 times
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

An update and small bugfix to this patch can be found at flyspray.
Tiberius
Engineer
Engineer
Posts: 86
Joined: 17 Sep 2004 03:15

Re: NewGRF GUI Window

Post by Tiberius »

Just received the flyspray notification mail, glad to see there's still someone taking care of it :bow:
Hope I can squeeze some time to fiddle with OpenTTD ...
I may implement/fix/tweak/eat/ditch it soon (or in distant future, if at all, so don't hold your breath).
If anyone want to be the one please implement it for us all 8)
Batti5
Transport Coordinator
Transport Coordinator
Posts: 279
Joined: 06 Aug 2007 17:37

Re: NewGRF GUI Window

Post by Batti5 »

it should be in the patch setting, so if you have trouble with it thay can turn-it off.
Wish to earn some money for free just by viewing some advertisment? Click this banner for more info.
Image
It is Legal.
User avatar
Gremnon
Tycoon
Tycoon
Posts: 1517
Joined: 16 Sep 2005 12:23
Skype: the_gremnon
Location: /home
Contact:

Re: NewGRF GUI Window

Post by Gremnon »

If people test this, then the trouble can be fixed. I've tested it alone and with other patches I use, and there are no such problems, therefore I don't believe your suggestion is of any use. It needs no patch setting.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: NewGRF GUI Window

Post by Hamilton2007 »

I really would like to add this, but for the moment i'm not succeded in patching anything jet...
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

Batti5 wrote:it should be in the patch setting, so if you have trouble with it thay can turn-it off.
what do you want to turn off, Batti5? You want a switch to change the window design? respectively the way the user interface works?

IMO, as it doesn't change the game at all, it doesn not need any switch.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: NewGRF GUI Window

Post by Hamilton2007 »

Indeed, the window is much better, hopefully it's in the next nightly.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

there's an update to trunk r15256 available at flyspray: http://bugs.openttd.org/task/2195/getfi ... 15256.diff

EDIT: a few changes to the layout
http://bugs.openttd.org/task/2195/getfi ... 2_320l.png
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

Update to trunk r15776:
Attachments
newgrf-gui_v2_r15776.diff
update to r15776
(40.42 KiB) Downloaded 181 times
User avatar
nex259
Engineer
Engineer
Posts: 11
Joined: 13 Mar 2009 13:52

Re: NewGRF GUI Window

Post by nex259 »

Update to trunk r15913.

bug:when resizing to small size (height),layout of "selected" grf list will get out of shape.

edited:
(add png )
resize to larger than default(height induced)
-> last line is bad.(lower-side harf is for "next" position grf,but grfname and marker are not shown)
Attachments
newgrf_gui_v2_r15913.diff
Update to r15913 (use -p1)
(40.59 KiB) Downloaded 174 times
layout_get_out_of_shape.png
layout_get_out_of_shape.png (74.71 KiB) Viewed 906 times
Last edited by nex259 on 04 Apr 2009 15:02, edited 1 time in total.
---
Sorry my bad English...
nex259
---
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

Thanks for your update, nex259!

I don't understand what graphical bug you refer to... to me it looks like it behaves like it did before, also wrt resizing. Do I miss something?
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: NewGRF GUI Window

Post by Terkhen »

When nex259's latest version is patched against current trunk, the game aborts whenever you open the content download window.
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

I cannot follow that either. Worked for me. Any more details? Crash log? assertion?
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: NewGRF GUI Window

Post by Terkhen »

Sorry, i was too hasty assuming it was this patch's fault. I got the bug in clean trunk too: just after opening the content downloading window, the game crashes. I'm going to get more info and report it to flyspray.
User avatar
nex259
Engineer
Engineer
Posts: 11
Joined: 13 Mar 2009 13:52

Re: NewGRF GUI Window

Post by nex259 »

Terkhen wrote:When nex259's latest version is patched against current trunk, the game aborts whenever you open the content download window.
I confirmed that it was before svn r15919 that this patch works without the critical issues.

Now,the networking codes of OTTD are under changing (and they are greatly) , networking is in buggy and unstable state.
Because,which the codes of this patch ,or the networking codes ,the cause is not understood.

==My compile environment:
pc1)Win32 gcc 3.4.5/MinGW at WindowsXP SP3
pc2)Linux_amd64 gcc 4.3.2-1.1 at Debian/5.0
Last edited by nex259 on 04 Apr 2009 18:54, edited 1 time in total.
---
Sorry my bad English...
nex259
---
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: NewGRF GUI Window

Post by planetmaker »

it works flawlessly for me with r15929.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 34 guests