Toolbar Overlap Fix v2 - in trunk since r11256

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

Post Reply

What preferred you?

change only y-coordinate (move the toolbars under the parent one and a little bit to the right (like original))
4
31%
change the x- and y-coordinate (move the toolbars under the parent one and the left side is exactly under the left side of the parent one)
7
54%
something else
2
15%
 
Total votes: 13

BigBB
Engineer
Engineer
Posts: 106
Joined: 07 Aug 2007 20:39

Toolbar Overlap Fix v2 - in trunk since r11256

Post by BigBB »

Everytime you open a new toolbar for e.g. depots, stations, etc. it overlap the parent toolbar and so covered several buttons.

Two years ago richk67 made a patch (link) which moved the child toolbar exactly under the parent one. But he defined every child toolbar, this means that everytime a new child toolbar get into the game (by a patch or a NewGRF?) you have again a overlap toolbar.

So it's easier and dynamic to say which parent toolbars have sub toolbars who get moved. These two are WC_BUILD_TOOLBAR (for build railway/roads/ship docks/airports) and WC_SCEN_LAND_GEN (for landscaping).

Flyspray task

Have fun,
BigBB


There are two versions:
v2.2y - the child toolbar is under the parent one and a little bit to the right (like original)
v2.2xy - the child toolbar is under the parent one and the left side is under the left side of the parent one
Last edited by BigBB on 04 Nov 2007 12:05, edited 7 times in total.
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
chrissicom
Route Supervisor
Route Supervisor
Posts: 415
Joined: 07 Oct 2004 10:05

Re: Toolbar Overlap Fix v2

Post by chrissicom »

That sounds very promising :) I'll test this with the signal gui, copy & paste gui etc.

And a happy welcome to the forums! 8) always great to see new patch authors! One liners are the best hehe :)
User avatar
NukeBuster
Traffic Manager
Traffic Manager
Posts: 222
Joined: 04 Jan 2006 18:16
Location: Alphen aan den Rijn, The Netherlands
Contact:

Re: Toolbar Overlap Fix v2

Post by NukeBuster »

Did you add it to flyspray?
NukeBuster

Transport Empire: The Transport Empire Linux effort
Join the Transport Empire IRC channel: [url]irc://irc.oftc.net/transportempire[/url] !

OpenTTD patch(es): Password at join
BigBB
Engineer
Engineer
Posts: 106
Joined: 07 Aug 2007 20:39

Re: Toolbar Overlap Fix v2

Post by BigBB »

NukeBuster wrote:Did you add it to flyspray?
Why? The devs can read (and/or ignore) it here as well as flyspray.
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: Toolbar Overlap Fix v2

Post by DaleStan »

Because it's harder to ignore on FS.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
chrissicom
Route Supervisor
Route Supervisor
Posts: 415
Joined: 07 Oct 2004 10:05

Re: Toolbar Overlap Fix v2

Post by chrissicom »

I put this patch in my local build of ChrisIN and it works like a charm :) now I don't have to worry about fixing toolbar overlap fix anymore when adding new windows/buttons! So when the devs are quick the patch is in trunk before I upload the new ChrisIN :D
BigBB
Engineer
Engineer
Posts: 106
Joined: 07 Aug 2007 20:39

Re: Toolbar Overlap Fix v2

Post by BigBB »

DaleStan wrote:Because it's harder to ignore on FS.
:D Yes your right, but e.g. the signal GUI patch: there were 7 (non-ottd)-devs involved (Hackykid / lucaspiller / Sacro / Ryalla / Hazelrah / BamBam / Bilbo) but nowhere an answer. Not in the both signal GUI threads here and here as well as not in the MiniIN thread here and not at the flyspray-thread here.

The first post of Hackykid was on Apr the 28 2005, 2 and 1/2 year ago...

So nobody knows what must be changed to get into trunk or if it never will be get into trunk.

It's okay if the devs don't answer every thread, but this ...

And this is why I posted here: "The devs can read (and/or ignore) it here as well as on flyspray."


Here a patch which change the x-coordinate too. Choose the one you like.

Edit: patch removed, see first post.
Last edited by BigBB on 08 Oct 2007 14:15, edited 1 time in total.
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Toolbar Overlap Fix v2

Post by Roujin »

well, maybe it's because of the complexity. if that patch you mentioned (with 7 people involved) is such a monster, maybe none of the devs can bring themselves to looking at the whole thing - but this patch of yours seems rather small, so chances are higher that someone will look at it. If it's only a few lines, someone will have the time to check it and tell you if it's alright or what is wrong.

small patches just have the advantage that they are probably accepted much faster than huge ones...

PS: even if it sounds sad, it's still the devs' choice if they want a patch or not - here a quote from belugas i just found somewhere..
belugas wrote:[...]Now, users patch: There are a lot of users who propose us patches, for new features as well as for bug fixes. Or sometimes, simply to get over a problem they were facing. But those submitted patches are just suggestions, and not the future, bear that in mind.
One of the tasks we (devs) have to do is verify if the proposed patches would be good enough for inclusion in trunk, and eventually make suggestions to improve them. Some are, some are not.[...]
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
BigBB
Engineer
Engineer
Posts: 106
Joined: 07 Aug 2007 20:39

Re: Toolbar Overlap Fix v2

Post by BigBB »

Roujin wrote:PS: even if it sounds sad, it's still the devs' choice if they want a patch or not
Yes I know, I don't want to reproach so.. The devs do good work :).

But first I wait till the people say what version is better: 2.0 or 2.1 .
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: Toolbar Overlap Fix v2

Post by Roujin »

ok, that's reasonable.

I've tried both now, and i like version 2.1 better.

description for everyone else: 2.0 puts the window under the first one and like ~10 pixels to the right
whereas 2.1 puts the window exactly under the first one
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
Octopussy
Engineer
Engineer
Posts: 122
Joined: 01 May 2006 21:57

Re: Toolbar Overlap Fix v2

Post by Octopussy »

Your Patch is very usefull.

Thanks

8)
BigBB
Engineer
Engineer
Posts: 106
Joined: 07 Aug 2007 20:39

Re: Toolbar Overlap Fix v2

Post by BigBB »

I've started a poll to know which version is preferred.
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
User avatar
Octopussy
Engineer
Engineer
Posts: 122
Joined: 01 May 2006 21:57

Re: Toolbar Overlap Fix v2

Post by Octopussy »

I prefer the Y transformation

This patch is required and very simple. It would be fun to have it into the nightly !!

:? :? 8)
BigBB
Engineer
Engineer
Posts: 106
Joined: 07 Aug 2007 20:39

Re: Toolbar Overlap Fix v2

Post by BigBB »

A new version uploaded (v2.2). Now the patch is complete so I opened a flyspray task (see first post), too.

Have fun,
BigBB
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
User avatar
belugas
OpenTTD Developer
OpenTTD Developer
Posts: 1507
Joined: 05 Apr 2005 01:48
Location: Deep down the deepest blue
Contact:

Re: Toolbar Overlap Fix v2

Post by belugas »

And now i've closed the flyspay task because i've commited version xy in r11256.
Thanks
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
BigBB
Engineer
Engineer
Posts: 106
Joined: 07 Aug 2007 20:39

Re: Toolbar Overlap Fix v2

Post by BigBB »

Thank you belugas :).
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Re: Toolbar Overlap Fix v2

Post by richk67 »

Fantastic. Thanks for taking my patch on and reworking it BigBB.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests