FS#2902 - Type in how many clones to make of a vehicle

Attached to Project: OpenTTD
Opened by Erik (cykro) - Thursday, 14 May 2009, 20:34 GMT
Last edited by Remko Bijker (Rubidium) - Wednesday, 09 September 2009, 21:09 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


Ok, my first contrib ever to one of these things, so dont go off flaming if I messed up, just point me in the right direction and I'll fix it ;)

Started playing this clone a few days ago, and absolutely love it.
However, I found it rather tedious to clone a vehicle numerous times in current version (I sure love those trucks), so I added a popup window that asks how many clones that should be produced.
It only pops up if Alt key is pressed. (added a global _alt_pressed that is similar to _shift_pressed)
If Ctrl is pressed, it will create shared orders for all clones and the "clonee". (u know, the vehicle that was cloned...)

Added a language string STR_DEPOT_CLONE_VEHICLE_CAPTION, but have only added translations for swedish and both english. Not sure how u work with the languages...

I personally can't live without this one, but not sure if you'll appreciate it as much :)

Let me know how I did
This task depends upon

Closed by  Remko Bijker (Rubidium)
Wednesday, 09 September 2009, 21:09 GMT
Reason for closing:  Duplicate
Additional comments about closing:  Of  FS#2402 
Comment by Erik (cykro) - Thursday, 14 May 2009, 21:12 GMT
Reported Version should be 0.7.0!
Comment by Zdeněk Sojka (SmatZ) - Thursday, 14 May 2009, 22:16 GMT
Thanks for your patch.
In my opinion, clicking mouse button 10 times is faster than typing in a number...
A problem is not all targets have the "Alt" key. (you are patching only win32)
Comment by Erik (cykro) - Thursday, 14 May 2009, 23:07 GMT
well, you gotta click "clone and then the vehicle" 10 times afaik. was too tedious for me anyway ;)

and perhaps another key should be more suitable then...
Comment by W_neun (W_neun) - Wednesday, 20 May 2009, 05:29 GMT
No, you don't have to - there is a 'clone this vehicle' button in the vehile window, which replaces the 'go to depot' button when the vehicle is in a depot. If you want to clone a vehicle that is not in a depot, just clone it once with the 'clone vehicle' button in the depot window, the newly built vehicle's window pops up, and you can build additional copies of it in no time by clicking on that aforementioned button.
Comment by Erik (cykro) - Monday, 25 May 2009, 07:10 GMT
ahh ok. then it's not crucial.
so only 20 clicks if you want 20 copies. an improvement, but as for me, I'm still more lazy than that ;)