Rebinding Ctrl+<num>

Rebinding Ctrl+<num>

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
xintron
Posts: 1
Joined: 31 Jul 2010, 12:41

Rebinding Ctrl+<num>

Post 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?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Rebinding Ctrl+<num>

Post 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...
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Rebinding Ctrl+<num>

Post 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.
Post Reply

Return to “General Discussion”