Preserve the editable face-up token preview when creating face down

Consolidate #7737 on current master and address maintainer review 4439182056. Keep the visible token draft independent of outgoing face-down color and P/T normalization; remove unused control object names requested in 4438752178. Retain the original submission as a parent.

Native Cockatrice/game target build and three focused token command tests pass. Actual offscreen dialog receiving verifies draft toggles, selected token, filtering and typed alias/default P/T.
This commit is contained in:
Bryce! 2026-11-03 20:09:57 -05:00
commit 866743d4e1
7 changed files with 234 additions and 29 deletions

View file

@ -951,7 +951,7 @@ void PlayerActions::actCreateToken(TokenInfo tokenToCreate)
lastTokenInfo.name = correctedCard.getName();
int tableRow = lastTokenInfo.faceDown ? 2 : correctedCard.getInfo().getUiAttributes().tableRow;
lastTokenTableRow = TableZoneLogic::tableRowToGridY(tableRow);
if (lastTokenInfo.pt.isEmpty()) {
if (!lastTokenInfo.faceDown && lastTokenInfo.pt.isEmpty()) {
lastTokenInfo.pt = correctedCard.getInfo().getPowTough();
}
}