1.0 KiB
1.0 KiB
title, status
| title | status |
|---|---|
| Robust Artwork Fetching | Completed |
Objectives
- Improve
CardComponentlogic to find the "Art Crop" URL more reliably. - Handle standard cards and double-faced cards (using the first face's art crop).
- Ensure "Cutout Mode" in Battlefield consistently renders the Art Crop instead of the full card.
Implementation Details
- CardComponent Update:
- Refactored the
imageSrcresolution logic. - Explicitly checks
card.definition.image_uris.art_crop. - Fallback checks
card.definition.card_faces[0].image_uris.art_crop. - Final fallback remains
card.imageUrl(full card).
- Refactored the
Verification
- Verified against the logic used in
DeckBuilderView(which relies on anormalimage but logic is similar). - This ensures consistency with the user's request to match the "deck building ui" behavior where crop works.
Outcome
Battlefield cards should now reliably display the zoomed-in art crop, matching the square aspect ratio container perfectly without showing text borders.