by nine2 » 14 Apr 2015, 03:06
I can make this work. However I can't do your hold-key type method Mozart, just because I can't detect key up events so don't know when the key has been released. I only get a key down. Also hotbuild takes up many keys already ...
What we could do is you drag select something as usual. Then you can filter that selection by pressing a hotkey (ctrl-a = air) (ctrl-r = ranged) (ctrl-2 = tech2). Once again we run into spare-key issues since in my case all of these keys are bound.
It would be nice if you had a way of quickly going back to the original selection as well because often you would want to order other unit types as well (eg arty here tanks here).
Do you remember before hotbuild there was that special keyboard mode for build? You would hit 'b' and then all of the hotkeys did different things (placing buildings). Maybe we could do something like that ... so you drag select then hit <space> to enter keyboard-selection-filter-mode. After that all of the hotkeys ignore their key bindings and do selection filtering. So you hit 2-r and that would filter by tech2 then by ranged (so it would select MML and rangebots), give an order and then press space again which would restore the original selection and then d (d = direct fire = selects tanks) and give another order. Then press escape to exit special keyboard mode.
So we can get it to work but need to sort out
a) how the ui mechanism will work
b) what the different filters will be (eg: ranged)