Ticket #805 (closed enhancement: fixed)
[PATCH] Support double-click on unit group buttons
| Reported by: | Philip | Owned by: | |
|---|---|---|---|
| Priority: | Should Have | Milestone: | Alpha 6 |
| Component: | Core engine | Keywords: | simple, review |
| Cc: |
Description
When you assign unit groups (with ctrl+1 etc) it shows a little numbered button at the side of the screen. Double-clicking the button should have the same effect as double-pressing the digit key (i.e. move the camera to the units).
This probably needs some changes to the GUI engine, particularly IGUIButtonBehavior::HandleMessage to detect double-clicks and send a different message type (GUIM_DOUBLE_PRESSED, script event doublepress or something, probably in addition to the standard press event (since some other buttons want to treat it like two separate presses)), then updateGroups in mods/public/gui/session/session.js should set button.ondoublepress appropriately.
Attachments
Change History
Changed 2 years ago by merolum
- Attachment doublepress_alt_modularity.patch added
alternative patch with more similarities to the original code
comment:3 Changed 2 years ago by feneur
- Summary changed from Support double-click on unit group buttons to [PATCH] Support double-click on unit group buttons
