Opened 13 years ago

Last modified 8 years ago

#773 closed defect

[PATCH] Groups — at Version 5

Reported by: Badmadblacksad Owned by:
Priority: Nice to Have Milestone: Alpha 5
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by historic_bruno)

  • Create groups (Ctrl+number)
  • Add to group (Shift+number)
  • Select group (number or click on icons)
  • A unit can only be a member of a single group

copy this image in binaries/data/mods/public/art/textures/ui/session/icons/sheets/groups.png (created with binaries/data/mods/public/art/textures/ui/session/icons/single/group[0-9].png)

On my computer I had to replace hotkey.selection.group.[0-9] with hotkey.selection.group.Num[0-9] in the file binaries/data/config/default.cfg. I've got a french keyboard. Don't know if it will work for you.

TODO :

  • double click / double press on a key : snap
  • maybe some art related stuff ;)

Change History (6)

by Badmadblacksad, 13 years ago

Attachment: groups-v08-04-2011.diff added

comment:1 by historic_bruno, 13 years ago

Milestone: BacklogAlpha 6
Summary: Groups[PATCH] Groups

comment:2 by Kieran P, 13 years ago

Milestone: Alpha 6Alpha 5

Moving to alpha 5. If the code is finished and works well, and Philip gets time to review before release and commit it, I don't see a reason why it couldn't be in A5.

comment:3 by historic_bruno, 13 years ago

Creating and selecting a group seems to work.

I can't seem to add to a group, pressing Alt+number only brings up the original grouping for me.

Not sure how much I like the group icons being permanently shown, but others may have different opinions on that. I can see how they would be useful.

I think there should be some indication of which group a selected unit is in, perhaps showing an icon on the details panel? (although it looks like the "group" icon is already in use to show how many units are in a selection, maybe an artist will need to come up with another design :))

comment:4 by Badmadblacksad, 13 years ago

hum.. it's a mistake in the description : press Shift+number to add a unit to a group.

Alt+number do nothing right now, but it will select a group and follow it (center the camera on its first unit) if you replace

//@todo snap

with

Engine.CameraFollow(toSelect[0]);

in the file binaries/data/mods/public/gui/session/input.js, line 1103. don't think it worth a new diff :)

comment:5 by historic_bruno, 13 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.