Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Auto Groups on other keys than [0-9]?

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
4/25/2020 12:15:49 PMUArankdahn before revert after revert
Before After
1 Hi, I'm tinkering with Auto Group widget and I want to make a support for numpad keys, but without success. It seems to me like Spring engine has [0-9] keys hardcoded somewhere for autogroups but I'm not sure where to look to and how to go around it. I've been testing the code with "[KEYSYMS. KP1] = 10" added to groupNumber table and debugging the functions to see that my new key is properly handled in widget:KeyPress and it does! In fact unit2group table is even populated with new value, but when I try to use the key to select the units nothing happens. Is there anyone who can help me with this? 1 Hi, I'm tinkering with [url=https://github. com/ZeroK-RTS/Zero-K/blob/d5a5f2fbaa98d5c339fa2299bb299031076f3ff3/LuaUI/Widgets/unit_auto_group. lua]Auto Group widget[/url] and I want to make a support for numpad keys, but without success. It seems to me like Spring engine has [0-9] keys hardcoded somewhere for autogroups but I'm not sure where to look to and how to go around it. I've been testing the code with "[KEYSYMS. KP1] = 10" added to groupNumber table and debugging the functions to see that my new key is properly handled in widget:KeyPress and it does! In fact unit2group table is even populated with new value, but when I try to use the key to select the units nothing happens. Is there anyone who can help me with this?