Hi,
I´m currently playing in multiplayer server, which is running latest Openttd version 1.8.0.
Currently i´m learning to use different hotkeys in order to make building much faster, some of which are customizable either in hotkeys.cfg file or throught openttd settings interface + some are written in openttd wiki.
I was wondering, is there possibility for me to modify or add new hotkey to hotkeys.cfg file (or through some other method) for train order "Refit at station -> Available cargo" option?
Hotkey for refit :?:
Moderator: OpenTTD Developers
Re: Hotkey for refit :?:
adding hotkeys not found in hotkeys.cfg probably requires editing the source code
Re: Hotkey for refit :?:
Seems so yes.
Did some more digging and found that all possible shortcut combinations are defined by order_gui.cpp on source code level (https://docs.openttd.org/order__gui_8cpp.html).
For now gotta still use that drop down menu to select needed refit option for trains.
Looking through order_gui.cpp code, it will need some additional coding, but is probably doable.
For now can only hope, that maybe in some future openttd release on someday, developers will add "refit to available cargo" to possible hotkey combinations.
Did some more digging and found that all possible shortcut combinations are defined by order_gui.cpp on source code level (https://docs.openttd.org/order__gui_8cpp.html).
For now gotta still use that drop down menu to select needed refit option for trains.
Looking through order_gui.cpp code, it will need some additional coding, but is probably doable.
For now can only hope, that maybe in some future openttd release on someday, developers will add "refit to available cargo" to possible hotkey combinations.
Re: Hotkey for refit :?:
Make a patch, submit it to the devs for review. Even if it is just adding some new hotkeys.Trumsi wrote:Seems so yes.
Did some more digging and found that all possible shortcut combinations are defined by order_gui.cpp on source code level (https://docs.openttd.org/order__gui_8cpp.html).
For now gotta still use that drop down menu to select needed refit option for trains.
Looking through order_gui.cpp code, it will need some additional coding, but is probably doable.
For now can only hope, that maybe in some future openttd release on someday, developers will add "refit to available cargo" to possible hotkey combinations.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
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
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
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Hotkey for refit :?:
That's how I started with OpenTTD workkamnet wrote:Make a patch, submit it to the devs for review. Even if it is just adding some new hotkeys.Trumsi wrote:Seems so yes.
Did some more digging and found that all possible shortcut combinations are defined by order_gui.cpp on source code level (https://docs.openttd.org/order__gui_8cpp.html).
For now gotta still use that drop down menu to select needed refit option for trains.
Looking through order_gui.cpp code, it will need some additional coding, but is probably doable.
For now can only hope, that maybe in some future openttd release on someday, developers will add "refit to available cargo" to possible hotkey combinations.
(svn r13481) -Codechange: add 'B' keyboard shortcut to build aqueduct (planetmaker)
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
Who is online
Users browsing this forum: No registered users and 26 guests