Big GUI bug?

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

User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Big GUI bug?

Post by Zephyris »

I am in the process of making a double size gui to help usability on higher resolution and touchscreen devices but I am getting some wierd behaviour of the toolbar.

With the double size icons the toolbar always switches to the half length mode, even if there would be space for the full toolbar. Is this intended behaviour? Or is it a bug? The grf is not suitable for general consumption yet but I will pm it for testing purposes...
Attachments
Unnamed, 13th Jan 1950 Crop.png
(38.48 KiB) Downloaded 1 time
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Big GUI bug?

Post by Yexo »

Seems to be a bug. Could you pm me the grf so I can do some tests?
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Big GUI bug?

Post by Rubidium »

Not sure whether it's a bug or somewhat of a misfeature; the toolbar is 640 pixels wide for aesthetical reasons. It doesn't get any bigger than that when you use bigger sprites, although you seem to trigger the behaviour implemented for small screen devices.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

It did just seem a bit wierd, I have pm'd the grf to Yexo for some testing...
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

Turns out the scenario editor toolbar behaves very strangely too...
Attachments
screenshotcrop.png
(20.42 KiB) Downloaded 1 time
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Big GUI bug?

Post by Yexo »

Fixed in r20807. I hope it works as you expect now.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

Cool thanks! I noticed one more little bug with the big GUI; when opening a window (excluding the road/rail/etc. building toolbars) with a default position of the top of the viewport it gets positioned at the bottom instead.

You can replicate this by opening the train vehicle list with the big GUI enabled - the window gets placed at the bottom of the viewport instead of the top.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Big GUI bug?

Post by Yexo »

Fixed that too in r20820.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

Awesome, thank you :D
Ihmemies
Engineer
Engineer
Posts: 23
Joined: 03 May 2006 20:47

Re: Big GUI bug?

Post by Ihmemies »

Funny thing, double size was in the game a bit ago, but it was removed for some reason :P Personally I'd like it since everything is quite small and unusable at 2560*1600.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Big GUI bug?

Post by NekoMaster »

You know, I dont ever remeber double size guis... this might be something nice to try some time :3
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
WWTBAM
Moderator
Moderator
Posts: 3689
Joined: 02 Apr 2005 07:01
Location: Sydney NSW Antipodea
Contact:

Re: Big GUI bug?

Post by WWTBAM »

Ihmemies wrote:Funny thing, double size was in the game a bit ago, but it was removed for some reason :P Personally I'd like it since everything is quite small and unusable at 2560*1600.
I think it was windows only and thats why it was removed.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Big GUI bug?

Post by Eddi »

it also conflicted with the blitter rewrite.
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

*Nudge* Just a little nudge... Is there any chance of support for larger fonts any time soon? :) I have attached the test new font grfs if any devs feel like testing...
Attachments
BigFonts.zip
(24.9 KiB) Downloaded 78 times
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Big GUI bug?

Post by planetmaker »

Zephyris wrote:*Nudge* Just a little nudge... Is there any chance of support for larger fonts any time soon? :) I have attached the test new font grfs if any devs feel like testing...
Well, I did play around with them a bit, trying to find where things go wrong. I noticed that some letters were mis-represented within those fonts, though (see attached screenshot snippet): ä, ö, ü, ß are given incorrectly as the æ, ø,... so I guess they are just in the wrong location within that font: it should correctly read "Straßen", "Bahnhöfe", "Flughäfen"
Zephyris wrote:So... the big GUI/big fonts bugs, is there interest in trying to solve them?
I consider it more of a feature request than a bug (as the current system was still not designed to handle differently sized sprite fonts), but sure, it makes sense, is very useful and is not forgotten. It "just" needs quite a bit more than a quick fix.
Attachments
wrong letters
wrong letters
Unbenannt, 11-01-2050.png (34.42 KiB) Viewed 3519 times
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

Looking very nice! Thanks so much! Though I should have known it would be more complex to code than I imagined :)

I'll have a look at fixing the incorrect characters, it should be simple, all the grfs are generated by scripts!
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

Found the bug, I had two missing sprites (the small up and down arrows, sprites 158 and 159). The scripts are now fixed and I will make corrected big font grfs asap!
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

New big font grfs... These should have sorted the shifted characters.
Attachments
OpenGFX+BigFonts.zip
(24.91 KiB) Downloaded 62 times
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Big GUI bug?

Post by planetmaker »

Uhm... something surely is shifted. But then, I'm sure differently than intended:
Attachments
Unnamed, 27-01-2050.png
Unnamed, 27-01-2050.png (67.09 KiB) Viewed 3306 times
User avatar
Zephyris
Tycoon
Tycoon
Posts: 2890
Joined: 16 May 2007 16:59

Re: Big GUI bug?

Post by Zephyris »

Arg, messed up the big font. This version should be fixed.
Attachments
OpenGFX+LLFont.grf
(20.99 KiB) Downloaded 74 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 23 guests