Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#602 closed enhancement (fixed)

Ability to add units to or remove from an already selected group of units

Reported by: Kieran P Owned by: Kieran P
Priority: Nice to Have Milestone: Alpha 2
Component: Core engine Keywords: hotkey, function, units, grouping
Cc: Patch:

Description

The game needs a way to select units to add to a group of already selected units.

All of the following happen when holding the SHIFT key:

  • Clicking a single unselected unit should add them to the group of already selected units
  • Clicking a single selected unit should remove them from the group of already selected units
  • Dragging over a group units where any/all of them in the dragzone are unselected should select the unselected ones, while keeping the selected ones selected
  • Dragging over a group of units where all of them in the dragzone are selected should remove them all from the group.

The latter two options should show the dragging zone as normal, and use the unit selection rings to indicate what will happen. e.g. for the last one, unselecting a group of units should remove the unit selection ring as you dragzone over them.

Attachments (1)

shift_add_units.patch (943 bytes ) - added by Kieran P 14 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Andrew, 14 years ago

Owner: set to Kieran P

by Kieran P, 14 years ago

Attachment: shift_add_units.patch added

comment:2 by Kieran P, 14 years ago

I've attached a patch to get SHIFT+Click and SHIFT+Drag adding units to an existing group of selected units.

After a bit of thought, I decided only to implement points 1 and 3 in the original ticket. Having SHIFT+Drag unselect units in certain cases would be inconsistant.

comment:3 by fcxSanya, 14 years ago

Keywords: review added

Patch waits for a review, right?

comment:4 by brian, 14 years ago

Resolution: fixed
Status: newclosed

(In [8332]) Made EntityGroups more efficient

"Ability to add units to or remove from an already selected group of units" based on patch by k776 (modified to avoid going over the max selection size) (Fixes #602)

comment:5 by brian, 14 years ago

Keywords: review removed

reviewed

Note: See TracTickets for help on using tickets.