ZeRen wrote:is here anyone who could take this shotcut:
['select_all_units_of_same_type'] = {action = 'UI_ExpandCurrentSelection', category = 'selection', order = 44,},
and change(copy+change) it to:
['select_all_units_of_same_type on screen'] = {action = 'UI_ExpandCurrentSelection', category = 'selection', order = 44,}
it would be much more usefull, please?
I wrote a simple UI mod for this function. It is standalone, but does not work correctly when other selection restricting mods are active. It does not affect them though, just gets itself bugged. You can bind the hotkey with F1 under "mods" section.
The mod is rather crude, it places the unit id of the current selection into an array, then compares every onscreen unit with the array iteratively to pick out the similar ones. I haven noticed any selection lag with it even with selecting 1000 units though. Do anything you want with the mod.