FS#1310 - toolbar overlap fix

Attached to Project: OpenTTD
Opened by BigBB (BigBB) - Monday, 08 October 2007, 14:20 GMT
Type Patch
Category Interface
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


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 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).

Have fun,

link for patch-file:
current version: 2.2

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
This task depends upon

Closed by  Jean-Francois Claeys (Belugas)
Sunday, 14 October 2007, 00:27 GMT
Reason for closing:  Implemented
Additional comments about closing:  Thanks
Commited in r11256
Nice touch, commenting the function ;)