Ctrl-Drag Bridge: instantly build fastest available
Moderator: OpenTTD Developers
-
- Transport Coordinator
- Posts: 340
- Joined: 06 Feb 2006 23:58
Ctrl-Drag Bridge: instantly build fastest available
Some useful spinoff from copy&paste:
This patch allows to hold Ctrl while dragging a bridge,
which instantly builds the fastest available bridge,
without showing the bridge selection window.
I thought this may be useful because most players build the fastest available bridge anyway.
Please comment, or include
Greetings,
Frostregen
This patch allows to hold Ctrl while dragging a bridge,
which instantly builds the fastest available bridge,
without showing the bridge selection window.
I thought this may be useful because most players build the fastest available bridge anyway.
Please comment, or include
Greetings,
Frostregen
- Attachments
-
- fastest_bridge_v1.diff
- patch for SVN r12558
- (2.1 KiB) Downloaded 211 times
Re: Ctrl-Drag Bridge: instantly build fastest available
Sweet! Hope this goes into trunk!
..: Trond :.. because you deserve it!
The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell
MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
The whole problem with the world is that fools and fanatics are always so certain of themselves,
and wiser people so full of doubts.
Bertrand Russell
MyGRFs: Norwegian Funny Town Names 4 | LOTR & WoW Town Names 2 | Islandic Town Names 1 | Random Norwegian Town Names
Favorites: GRFCrawler | ISR | WIKI | Now Playing: OpenTTD 1.3.2 w/YAPP 3.0-RC3.9ish
Re: Ctrl-Drag Bridge: instantly build fastest available
Very good idea!
I hate to scroll down the bridge menu to find the fastest.
I hate to scroll down the bridge menu to find the fastest.
Have a N.I.C.E. day!
Indiana
Indiana
Re: Ctrl-Drag Bridge: instantly build fastest available
Nice idea.
Also possible to make something like "use the last used" bridge?
Greets
Ammler
Also possible to make something like "use the last used" bridge?
Greets
Ammler
Town Names: Portuguese Belarusian French Swiss · Temperate Lumber Mill
Still work in progress: OpenGFX or/and OpenSFX - Please help!
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Ctrl-Drag Bridge: instantly build fastest available
Yeah, very nice idea and even better, if Ammler's suggestion could be implemented as well (maybe with Alt or something).Ammler wrote: Also possible to make something like "use the last used" bridge?
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: Ctrl-Drag Bridge: instantly build fastest available
Alt+(left)Drag is commonly used by window-managers to move windows. (and right-drag to resize them)planetmaker wrote:Yeah, very nice idea and even better, if Ammler's suggestion could be implemented as well (maybe with Alt or something).Ammler wrote: Also possible to make something like "use the last used" bridge?
But we could have either Alt or Super (windows key). Will not suit all either since Super is possible used by some windows-alike WMs such as gnome/kde. Maybe someone have a better idea?
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Ctrl-Drag Bridge: instantly build fastest available
Is there a programmable difference between right and left ctrl?
Re: Ctrl-Drag Bridge: instantly build fastest available
Yes, but OTTD generalize the modifiers as just one 'key' of each type. At least if you look at the mod-bits. I don't remember if the CTRL-key exist also as a usual keycode where there could exist two keycodes one for left and one for right. But the OTTD standard way to read if a modifier is pressed is to look at the mod-bits.
(at least 1/2 a year ago, when I last worked on configurable hotkeys)
(at least 1/2 a year ago, when I last worked on configurable hotkeys)
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Ctrl-Drag Bridge: instantly build fastest available
Excellent, thanks
Nintendo DS OpenTTD ---- Latest YAPP Patch ---- OpenTTD Wiki ---- ---- Transport Tycoon PSX
Australia Scenario V1.0 ---- Luukland's Tasmania Scenario ---- Italy Scenario 0.35 --- Build A Town Patch
Australia Scenario V1.0 ---- Luukland's Tasmania Scenario ---- Italy Scenario 0.35 --- Build A Town Patch
Re: Ctrl-Drag Bridge: instantly build fastest available
Thanks!
This indeed is a really useful feature. I usually build the fastest bridge, only perhaps sometimes I prefer the "golden" tubular over the "silver" one...
This indeed is a really useful feature. I usually build the fastest bridge, only perhaps sometimes I prefer the "golden" tubular over the "silver" one...
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Ctrl-Drag Bridge: instantly build fastest available
updated to trunk (r13058)
- Attachments
-
- fastest_bridge_v1_r13058.diff
- fastest bridge via Ctrl-Drag, updated to r13058
- (2.09 KiB) Downloaded 142 times
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
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Ctrl-Drag Bridge: instantly build fastest available
any chance for an updated? I currently fail to updated it properly :S
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: Ctrl-Drag Bridge: instantly build fastest available
yes
(edited: replaced attached patch file with new one with code/style changes as requested by Frostregen below)
(edited: replaced attached patch file with new one with code/style changes as requested by Frostregen below)
- Attachments
-
- fastest_bridge_v1_r13418.patch
- fastest bridge patch, with code changes as requested
- (2.13 KiB) Downloaded 151 times
Last edited by Alberth on 08 Jun 2008 16:35, edited 2 times in total.
-
- Transport Coordinator
- Posts: 340
- Joined: 06 Feb 2006 23:58
Re: Ctrl-Drag Bridge: instantly build fastest available
If someone updates it again, consider using this version
http://bugs.openttd.org/?getfile=2853
as a base.
There were some coding/style changes, which should not be lost.
Thx,
Frostregen
http://bugs.openttd.org/?getfile=2853
as a base.
There were some coding/style changes, which should not be lost.
Thx,
Frostregen
Re: Ctrl-Drag Bridge: instantly build fastest available
done (by manually patching the patch-file). Compiles and runs against current trunk (13418)
For new version see my previous post (removed previous version of the attachement as it is not useful any more anyway).
Albert
For new version see my previous post (removed previous version of the attachement as it is not useful any more anyway).
Albert
Re: Ctrl-Drag Bridge: instantly build fastest available
Well, you are now able to sort bridges by speed in trunk. So I think this patch is not needed so urgently anymore...
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: Ctrl-Drag Bridge: instantly build fastest available
True. But you still save one mouse click. Speed rulezRoujin wrote:Well, you are now able to sort bridges by speed in trunk. So I think this patch is not needed so urgently anymore...
Frostregen & Albert: Thanks for the update.
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 14 guests