Toolbar Overlap Fix v2 - in trunk since r11256
Moderator: OpenTTD Developers
Toolbar Overlap Fix v2 - in trunk since r11256
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
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
-
- Route Supervisor
- Posts: 415
- Joined: 07 Oct 2004 10:05
Re: Toolbar Overlap Fix v2
That sounds very promising
I'll test this with the signal gui, copy & paste gui etc.
And a happy welcome to the forums!
always great to see new patch authors! One liners are the best hehe 

And a happy welcome to the forums!


- NukeBuster
- Traffic Manager
- Posts: 222
- Joined: 04 Jan 2006 18:16
- Location: Alphen aan den Rijn, The Netherlands
- Contact:
Re: Toolbar Overlap Fix v2
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
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
Re: Toolbar Overlap Fix v2
Why? The devs can read (and/or ignore) it here as well as flyspray.NukeBuster wrote:Did you add it to flyspray?
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
Re: Toolbar Overlap Fix v2
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
-
- Route Supervisor
- Posts: 415
- Joined: 07 Oct 2004 10:05
Re: Toolbar Overlap Fix v2
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 


Re: Toolbar Overlap Fix v2
DaleStan wrote:Because it's harder to ignore on FS.

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
Re: Toolbar Overlap Fix v2
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..
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.[...]
Re: Toolbar Overlap Fix v2
Yes I know, I don't want to reproach so.. The devs do good workRoujin wrote:PS: even if it sounds sad, it's still the devs' choice if they want a patch or not

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
Re: Toolbar Overlap Fix v2
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
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
Re: Toolbar Overlap Fix v2
Your Patch is very usefull.
Thanks

Thanks

Re: Toolbar Overlap Fix v2
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
Re: Toolbar Overlap Fix v2
I prefer the Y transformation
This patch is required and very simple. It would be fun to have it into the nightly !!

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



Re: Toolbar Overlap Fix v2
A new version uploaded (v2.2). Now the patch is complete so I opened a flyspray task (see first post), too.
Have fun,
BigBB
Have fun,
BigBB
OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
- belugas
- OpenTTD Developer
- Posts: 1507
- Joined: 05 Apr 2005 01:48
- Location: Deep down the deepest blue
- Contact:
Re: Toolbar Overlap Fix v2
And now i've closed the flyspay task because i've commited version xy in r11256.
Thanks
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
OpenTTD and Realism? Well... Here are a few thoughs on the matter.
He he he he
------------------------------------------------------------
Music from the Bloody Time Zones
Re: Toolbar Overlap Fix v2
Thank you belugas
.

OpenTTD-patch(es) in development: missing shores (new version of: completely shore), road lamps for each position
Re: Toolbar Overlap Fix v2
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
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Who is online
Users browsing this forum: No registered users and 14 guests