#805 closed enhancement (fixed)
[PATCH] Support double-click on unit group buttons
Reported by: | Philip Taylor | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 6 |
Component: | Core engine | Keywords: | simple |
Cc: | Patch: |
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 (2)
Change History (9)
by , 13 years ago
Attachment: | doublepress.patch added |
---|
comment:1 by , 13 years ago
Keywords: | review added |
---|
comment:2 by , 13 years ago
Keywords: | simple review → simple, review |
---|
by , 13 years ago
Attachment: | doublepress_alt_modularity.patch added |
---|
comment:3 by , 13 years ago
Summary: | Support double-click on unit group buttons → [PATCH] Support double-click on unit group buttons |
---|
comment:4 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:5 by , 13 years ago
Milestone: | Backlog → Alpha 6 |
---|
comment:6 by , 13 years ago
comment:7 by , 8 years ago
Keywords: | review removed |
---|
alternative patch with more similarities to the original code