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

New U.I. Suggestion: Hot Select for units

25 posts, 2814 views
Post comment
Filter:    Player:  
Page of 2 (25 records)
sort
I've been using the new control scheme for a month and it's great. I can't go back to playing without it. Time from when I have an idea to it's execution is reduced. But I've run into problems expanding the scope.

I'm re-working Hot Select from the ground up where I use an expanded version of Control Groups that use a-z instead of just 1-0. Previously I was using UIkeys which runs into limitations. This solves a lot of problems:

1. Players can individually alter what units are in each group the same way Auto Control Groups works. This is the big one, so no one will have to rely upon my judgement of unit organization. You can safely take my starting point and tweak away anything you don't like.

2. Modifier key Shift can be used to combine groups

3. Potentially modifier keys can be used to filter out from groups that are currently selected, but this has seemed less important the more I've actually used the control scheme.

4. We'll still have Global Selection Hotkeys for every unit and categories as needed, they will just be supplemental.

I already have a working widget that expands the control groups to a-z and can be added to, cleared, and selected. I'll update this thread as it comes together in a useable form.
+2 / -0
Download this file and place it within your LuaUI/Widgets folder:
https://github.com/FrequentPilgrim/FrequentPilgrim-Files/blob/main/gui_letter_auto_groups.lua

Great News!

I was able to put together a fully functional widget that has all of the features I was trying to implement.

This is working much better than the previous attempt in that it's now trivially easy to adjust your groupings exactly how you want. The groups get saved to your LUAui configuration files and persist until you decide to clear the group. There is no limitation on how many groups a unit can be added to. It's a good idea to save your configurations as backup before diving into this widget, just in case.

It feels great to combine groupings now with the shift key: combining your minotaurs and cyclops groups with the press of a button; Quickly pairing your Grizzly and Scallops to a lobster within a control group without lassoing with a mouse.

The filtering is also great. If you've ever been frustrated about trying to pull your artillery out of a unit blob, ctrl + space + T after I've selected the blob now filters my selection to artillery.

Having a factory selected no longer preventes spacebar + letter from selecting units.



I have not been able to figure out how to implement controls for this widget into the menu system, despite spending many hours attempting to get it working. I would appreciate any assistance on menu integration.

Instead, the widget uses the debug text box that appears by default when you press (f8). This will inform you of all of the notifications happening with your groupings.

The controls also exists as part of the widget description, so if you forget in game you can simply hover over your widget in the alt+f11 window to get refreshed.


My recommendation is to set up all of the groups you want first in a singleplayer match against Inactive AI. Use either cheats or income multipliers to quickly produce 1 of every factory and 1 of every unit. Then save this match so that you can quickly make adjustments to your groupings by loading it.

I've been using the previous widget to make to make this grouping process streamlined by clicking my premade group buttons in the menu system and then assigning them to a letter. My groupings and letters are mostly unchanged from my most recent posting about groupings. You'll want to clear all of the spacebar selections being used for the Global Selection Hotkeys widget. I'm still using global selections for air units, but these can also be assigned to 'Spacebar + Letter' groupings as you desire.

If you're not sure how to group things, I feel like this is a really solid start that you can tweak as desired instead of having to make everything from scratch:













































Just for reference these are my Air Hotkeys that Im still using the older widget to control.



Click this spoiler to see the categories I'm currently using and how they are saved within Zero-K\LuaUI\Config ZK_data.lua
[Spoiler]

Full Widget Code: [Spoiler]
+1 / -0
While this isn't ready to release yet, I've got an extra widget that layers on functionality using the Letter Auto Groups that are now saved in your config files once you've created your first letter group.

With Letter Auto Groups, your LEFT thumb presses the spacebar and your left fingers press a letter to globally select the unit type of your choice, like glaives (W) so you can raid efficiently, or an Ettin (D) so you can shoot down that Odin you just spotted flying to your factory.

Now I'm adding a Circle Filter/Selector on Mouse 5 (Forward Button) so that your RIGHT THUMB LOCALLY selects units while your LEFT THUMB GLOBALLY selects units.

Holding Mouse 5 does two things: 1. Creates a circle of selection around your mouse like a selecting paintbrush tool 2. While the button is held down, pressing letter keys narrows the selection to the units assigned to Letter Groups.

Want to grab the glaives at your base but not disturb the raiding route you gave other glaives earlier? Simply point at the glaives you want, press the Mouse 5 button + W and they are selected. Like wise for pulling your Bomb out of your unit ball by pointing at it and pressing Mouse 5 + G without disturbing any o your other bombs lying in wait. You can press multiple keys while holding the Mouse 5 button, so if you want to grab your Ettin and Ogres together simple mash down on D and R and they will both be selected.

Within a few games, I already feel this becoming intuitive and my hands simply reaching for the unit automatically and without thought.

I've got this working last night and while it's fully functional and is feeling incredible to use so far, I want to make sure it's not buggy before I release the code. Here's a short example video:

+3 / -0

2 months ago
There are 2 dependent widgets that are adding functionality to the Letter Auto Groups Widget.

The first one talked about in the previous post: Mouse Circle Unit Filter. This widget lets you quickly select nearby units under your cursor by holding the Forward mouse button (Mouse 5).

While holding Forward mouse button (Mouse 5), press a letter key (A–Z) to filter for unit types assigned to that letter (e.g., “R” = Riots).

Filter by unit type instantly. Add multiple types by pressing more letters while holding the button.

The second one is Unit Selector By Letter.



This is the other side of Forward being a medium selecting paintbrush. Mouse Back (Mouse 4) is a fine detail selector. Used to pull out a single unit as fast as possible. It will always pull from the nearest units to your mouse cursor, and if you press it multiple times it will add as many units as button presses you made starting from the closest available unit and working outward. Really good for pulling a phantom out of your composition, dancing your kodachis around the enemy backline, or jumping your skuttle into a commander. Here's a brief video. All of these widgets are looking stable and nearly finalized, I just want to use them for a short while to confirm nothing is broken.



All feedback appreciated, I'd like to make this as accessible as possible for anyone that wants to use it.
+0 / -0


I've also got lettered icons working now as it's own widget. It simply pulls from whatever Letter Auto Groups the user has set and displays it with your units just like the options for Auto Groups. This helps a lot with not having to memorize your groups so it's instantly useful with a less steep learning curve.
+2 / -0
Page of 2 (25 records)