Toggle Buttons
Moderator: OpenTTD Developers
Toggle Buttons
Hey TTF,
I was wondering why this awesome game still has not implemented toggle buttons.
So if you click a button to open a screen you can close it by another click on the same button.
This would make playing even more enjoyable.
Cheers!
solar
I was wondering why this awesome game still has not implemented toggle buttons.
So if you click a button to open a screen you can close it by another click on the same button.
This would make playing even more enjoyable.
Cheers!
solar
Re: Toggle Buttons
The GUI uses a re-opening event for highlighting the selected window, which is useful for eg finding which depot window (of the 5 you have opened) belongs to which depot.
That sort of blocks your suggestion.
You can however shade/unshade a window as explained in http://wiki.openttd.org/Shade_windows Perhaps that is a useful alternative?
That sort of blocks your suggestion.
You can however shade/unshade a window as explained in http://wiki.openttd.org/Shade_windows Perhaps that is a useful alternative?
Re: Toggle Buttons
Hey again,
Thanks for your reply.
I was aiming at the upper toolbar.
Toggle buttons there would save time, instead trying to aim for the very tiny X to close a window.
Cheers![Very Happy :D](./images/smilies/icon_biggrin.gif)
Thanks for your reply.
I was aiming at the upper toolbar.
Toggle buttons there would save time, instead trying to aim for the very tiny X to close a window.
Cheers
![Very Happy :D](./images/smilies/icon_biggrin.gif)
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Toggle Buttons
The upper toolbar usually has drop-down menus (click and keep pressed) additionally to just click which opens default. Thus a toggle functionality would not work there too well either.Solarsoul wrote:Hey again,
Thanks for your reply.
I was aiming at the upper toolbar.
Toggle buttons there would save time, instead trying to aim for the very tiny X to close a window.
Cheers
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Toggle Buttons
When you use the multi-menu buttons, though, whatever you select is going to close the previous item and then open the new item. So a toggle on that button wouldn't be in conflict.planetmaker wrote:The upper toolbar usually has drop-down menus (click and keep pressed) additionally to just click which opens default. Thus a toggle functionality would not work there too well either.Solarsoul wrote:Hey again,
Thanks for your reply.
I was aiming at the upper toolbar.
Toggle buttons there would save time, instead trying to aim for the very tiny X to close a window.
Cheers
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
![Image](https://i.imgur.com/HBylNrV.png)
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
![Image](https://i.imgur.com/HBylNrV.png)
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Toggle Buttons
Sounds perfect! So whats the status on this one?kamnet wrote:When you use the multi-menu buttons, though, whatever you select is going to close the previous item and then open the new item. So a toggle on that button wouldn't be in conflict.planetmaker wrote:The upper toolbar usually has drop-down menus (click and keep pressed) additionally to just click which opens default. Thus a toggle functionality would not work there too well either.Solarsoul wrote:Hey again,
Thanks for your reply.
I was aiming at the upper toolbar.
Toggle buttons there would save time, instead trying to aim for the very tiny X to close a window.
Cheers
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Toggle Buttons
"suggestion", I guess. Or did someone magically work on it over night?
Nor is it well thought-through: consider the 'map' button:
currently a click will open the mini map.
click + hold will allow to select 'mini map', 'additional view' and 'sign list'.
Now I select the 'sign list'. Currently I can still use the main toolbar button to get the mini map. Your suggestion would modify it such that it would close the sign list. I would need to click+hold+select the mini map in order to gain access. It would cost me loads of time and require much more clicking accuracy.
Similar issues arise with every single button.
Nor is it well thought-through: consider the 'map' button:
currently a click will open the mini map.
click + hold will allow to select 'mini map', 'additional view' and 'sign list'.
Now I select the 'sign list'. Currently I can still use the main toolbar button to get the mini map. Your suggestion would modify it such that it would close the sign list. I would need to click+hold+select the mini map in order to gain access. It would cost me loads of time and require much more clicking accuracy.
Similar issues arise with every single button.
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: Toggle Buttons
Well, I am not a developer, and dont know how the code is writen. So Im just sugesting, atleast give it a serious thought.
Thanks for the reply!![Wink ;)](./images/smilies/icon_wink.gif)
ps. I mean status as in.. did you seriously consider the posibility. (thats all really)
Thanks for the reply!
![Wink ;)](./images/smilies/icon_wink.gif)
ps. I mean status as in.. did you seriously consider the posibility. (thats all really)
Who is online
Users browsing this forum: No registered users and 0 guests