Cockatrice/cockatrice
Basile Clément cb423dbfbc
feat: Configurable colors for card counter
This patch adds support for:

 - User-defined colors for card counters;
 - 3 additional types of card counters.

The colors used for counters is stored locally and not shared with other
users. This is intentional as the feature is likely to be used for
improved accessibility.

In order to preserve backwards-compatibility, and because I don't have a
better idea, counters keep their existing color-based names (Red, Green,
Yellow) in menus and in the message log. For consistency, the new
counters also get assigned color-based names (Cyan, Purple, Magenta).

This choice is a compromise, as allowing user-defined names for counters
raises many additional (UI/UX) questions that I don't know how to
answer. A good long-term solution would be to include counter names as
part of a game definition system and hence would be in scope for #1740.

The choice of adding 3 additional types of counters and the Cyan, Purple
and Magenta names are not random. The existing code for determining
counter colors goes: Red, Green, Yellow, Cyan, Purple, Magenta, Black
(unreadable) and thus 6 is the maximum number of counters that existing
versions of Cockatrice are able to support. This way, released clients
get a degraded experience (cannot interact with the new counters,
messages in the server log say "Player X places 1 on Card (now 1)"
without specifying 1 of what), but do see the counters properly.

Fixes #2020
2025-05-01 13:00:59 +02:00
..
resources Add logging to LocalClient (#5827) 2025-04-15 01:25:17 +00:00
sounds Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
src feat: Configurable colors for card counter 2025-05-01 13:00:59 +02:00
themes Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
translations Updates for project Cockatrice and language it (#5876) 2025-04-24 22:39:35 -04:00
.qdevelop icon_draw and icon_untap added, icon_general and icon_messages modified 2009-07-31 13:37:16 +02:00
CMakeLists.txt feat: Configurable colors for card counter 2025-05-01 13:00:59 +02:00
cockatrice.desktop Updated Spanish translation 2011-07-16 11:38:57 +02:00
cockatrice.qrc Generic mana symbols. (#5685) 2025-03-03 13:12:09 -05:00
cockatrice.rc Included uninstaller for Windows version 2010-09-17 15:26:07 +02:00
cockatrice_en@source.ts Update translation source strings (#5781) 2025-04-03 00:17:25 -04:00