Page 1 of 1
Rebinding Ctrl+<num>
Posted: 31 Jul 2010, 13:05
by xintron
From what I've seen binding units to a group is used by doing ctrl + 0-9. This however isn't suitable for me since I'm using that keycombination in my windowmanager. I've searched to find a solution to other add a button to the combination (like ctrl + alt + 0-9) or rebinding it to ie. alt + 0-9. I have not found anything concerning this subject so I'm turning to the experts :)
Is it possible to bind this group-add to alt+0-9 using uikeys.txt or some easy way?
Re: Rebinding Ctrl+<num>
Posted: 02 Aug 2010, 16:29
by knorke
I only had a quick look but I am afraid it is not possible.
In uikeys.txt are only binds for selecting unitgroups:
Code: Select all
// bind Any+0 group0
// bind Any+1 group1
// bind Any+2 group2
// bind Any+3 group3
// bind Any+4 group4
// bind Any+5 group5
// bind Any+6 group6
// bind Any+7 group7
// bind Any+8 group8
// bind Any+9 group9
But I see no binds for defining unitgroups.
groupadd is different and does only work for the current unitgroup I think.
There are Lua widgets that can sort new build units into unitgroups (ie all planes = unitgroup 1) so in theory it should be possible to make a Lua that assigns unitgroup numbers based on selection + keys pressed...
Re: Rebinding Ctrl+<num>
Posted: 04 Aug 2010, 01:14
by CarRepairer
Yes, a widget can be created to set selected units to a group number using an action which could then be assigned in uikeys.txt.