mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 11:33:25 -08:00
* Preview token edits live and preserve custom drafts * Restore the upstream reveal-random-hand-cards action The rebase onto upstream/master took the PR side of player_actions.cpp and dropped PlayerActions::actRevealRandomHandCards, which upstream added after the PR merge base. Re-apply the face-down P/T fix on the current file so the branch keeps both changes. * Draw the token preview P/T as the hover-panel pill The preview painted the name and P/T unconditionally: the name duplicated the artwork, and the raw P/T text was drawn even when it matched the printed value, which looked wrong at non-default dialog sizes. - Suppress the card name over a token picture via a small AbstractCardItem hook; cards without art still show it. - Draw only a P/T that differs from the printed getPowTough() as the #7700 hover-panel pill: dark rounded scrim, bold white text, anchored on the printed P/T box and clamped inside the card. - Use designated CardRef initializers in the new code. The face-up draft still previews while face-down creation is selected. --------- Co-authored-by: Lukas Brübach <44814898+BruebachL@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| abstract_card_drag_item.cpp | ||
| abstract_card_drag_item.h | ||
| abstract_card_item.cpp | ||
| abstract_card_item.h | ||
| abstract_counter.cpp | ||
| abstract_counter.h | ||
| abstract_graphics_item.cpp | ||
| abstract_graphics_item.h | ||
| arrow_item.cpp | ||
| arrow_item.h | ||
| arrow_registry.cpp | ||
| arrow_registry.h | ||
| arrow_target.cpp | ||
| arrow_target.h | ||
| card_drag_item.cpp | ||
| card_drag_item.h | ||
| card_item.cpp | ||
| card_item.h | ||
| counter_general.cpp | ||
| counter_general.h | ||
| graphics_item_type.h | ||
| translate_counter_name.cpp | ||
| translate_counter_name.h | ||