Cockatrice/cockatrice/src/game
DawnFire42 fc453c68a7
Add card selection counter (#6685)
* feat(game): add drag selection counter overlay
   Display count of selected cards inside the lasso during drag selection.
   Count appears near cursor, repositioning to stay within selection bounds.

   Includes SelectionRubberBand subclass to allow label to appear above band.
   QRubberBand calls raise() in showEvent/changeEvent to stay on top - this
   subclass suppresses that behavior so dragCountLabel can be visible.

   Adds user setting to enable/disable the drag count overlay.

* feat(game): add persistent selection counter overlay.
Display total count of selected cards in bottom-right corner when multiple cards are selected.
Updates on selection changes and window resize.
The counter connects to QGraphicsScene::selectionChanged to stay up-to-date without requiring manual refresh.
Adds user setting to enable/disable the total count overlay.

---------

Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com>
2026-03-16 23:44:29 +01:00
..
board Refactor zone names (#6686) 2026-03-12 00:34:05 +01:00
deckview refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
dialogs [LayoutSettings] Move over layout settings in global.ini (#6587) 2026-02-07 19:51:12 -08:00
log Refactor zone names (#6686) 2026-03-12 00:34:05 +01:00
player [Game] Fix not using zone-specific card menu for opponent's cards (#6695) 2026-03-14 11:41:38 +01:00
zones Add card selection counter (#6685) 2026-03-16 23:44:29 +01:00
abstract_game.cpp Player refactor (#6112) 2025-09-10 18:49:33 -04:00
abstract_game.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
card_dimensions.h refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
game.cpp [Move refactor] Move tabs to interface/widgets (#6235) 2025-10-09 14:51:47 +02:00
game.h [Documentation] Sort *every* file into a doxygen group. (#6198) 2025-09-30 12:13:32 +02:00
game_event_handler.cpp [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
game_event_handler.h Fix names in qtlogging.ini (#6265) 2025-11-03 18:55:32 +01:00
game_meta_info.cpp Removed unused fields in GameMetaInfo and GameState (#6142) 2025-09-15 10:22:11 +02:00
game_meta_info.h Turn Card, Deck_List, Protocol, RNG, Network (Client, Server), Settings and Utility into libraries and remove cockatrice_common. (#6212) 2025-10-09 07:36:12 +02:00
game_scene.cpp Add card selection counter (#6685) 2026-03-16 23:44:29 +01:00
game_scene.h Add card selection counter (#6685) 2026-03-16 23:44:29 +01:00
game_state.cpp [Game] Fix game timer starting twice, not stopping and not resetting correctly. (#6177) 2025-09-26 19:28:07 +02:00
game_state.h [Cleanup] Unused #includes (#6367) 2025-11-29 18:53:11 +01:00
game_view.cpp Add card selection counter (#6685) 2026-03-16 23:44:29 +01:00
game_view.h Add card selection counter (#6685) 2026-03-16 23:44:29 +01:00
hand_counter.cpp Player refactor (#6112) 2025-09-10 18:49:33 -04:00
hand_counter.h [Refactor] Move AbstractGraphicsItem and GraphicsItemType to game_graphics/board (#6342) 2025-11-20 12:52:14 +01:00
phase.cpp add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
phase.h add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
phases_toolbar.cpp Refactor zone names (#6686) 2026-03-12 00:34:05 +01:00
phases_toolbar.h [Refactor] Move AbstractGraphicsItem and GraphicsItemType to game_graphics/board (#6342) 2025-11-20 12:52:14 +01:00
replay.cpp [Move refactor] Move tabs to interface/widgets (#6235) 2025-10-09 14:51:47 +02:00
replay.h [Documentation] Sort *every* file into a doxygen group. (#6198) 2025-09-30 12:13:32 +02:00
z_value_layer_manager.h refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00
z_values.h refactor: extract CARD_HEIGHT to shared CardDimensions header (#6668) 2026-03-05 19:13:58 -08:00