Add a text/svg/full display-treatment selector to the menu

* card-games.el (card-games-treatment, card-games--svg-card-vars,
card-games--full-svg-vars, card-games-set-treatment): switch all games
between UNICODE, SVG cards, and the full-window SVG table by toggling the
per-game display vars together.  (card-game--cycle-treatment, card-game):
a clickable control in the chooser.
* test/card-games-tests.el: cgt-treatment-set.
* NEWS: note the treatment selector.
This commit is contained in:
Corwin Brust 2026-07-01 11:46:00 -05:00
parent e816cc0551
commit b2a8d6ad93
3 changed files with 64 additions and 1 deletions

6
NEWS
View file

@ -81,6 +81,12 @@ the mouse as well as the keyboard.
"Next hand" button and the hand fan.
- Live multiplayer 500 over TCP (~M-x cg-bid-host~ / ~M-x cg-bid-join~).
** Pick how the games are drawn
- From the ~M-x card-game~ menu (or ~M-x card-games-set-treatment~) you
can switch all the games between ~text~ (UNICODE cards), ~svg~ (drawn
cards), and ~full~ (the full-window SVG table where a game has one,
Gaps and 500).
** Adjustable computer opponents
- A new ~cg-ai-level~ (easy, normal, hard) sets how hard the computer
plays, and you can change it right from the ~M-x card-game~ menu (or