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?
Rebinding Ctrl+<num>
Moderator: Moderators
Re: Rebinding Ctrl+<num>
I only had a quick look but I am afraid it is not possible.
In uikeys.txt are only binds for selecting unitgroups:
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...
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
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...
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Rebinding Ctrl+<num>
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.