Draw outline versions of the stardust and Éclats icons for the loot panel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
17a87a889a
commit
9dac9d8356
5 changed files with 19 additions and 5 deletions
|
|
@ -5,7 +5,6 @@ import { Tooltip } from "../../components/Tooltip.jsx";
|
|||
import { previewExpedition } from "./cardsApi.js";
|
||||
import { fillTemplate } from "./dailyShare.js";
|
||||
import { conditionText, coverEntry, dangerText, editionEntry, formatDecimal, formatEclats, STAT_IDS, synergyLabels } from "./expeditionFormat.js";
|
||||
import { CurrencyIcon } from "./Currency.jsx";
|
||||
import { MaskIcon, RoleLabel } from "./ExpeditionLabels.jsx";
|
||||
import { NebulaCard } from "./NebulaCard.jsx";
|
||||
|
||||
|
|
@ -17,8 +16,9 @@ const STAT_BY_PLAN = { leader: "bravoure", guardian: "endurance", seeker: "fortu
|
|||
|
||||
// Effet de la spécialité sur le butin, regroupé par sens : une flèche verte (le ou les butins favorisés) ou rouge (les autres)
|
||||
// suivie des icônes des butins concernés ; le pourcentage s'affiche dans l'infobulle de la flèche.
|
||||
// Toutes en contour monochrome (les monnaies ont leur version « outline ») pour que les icônes du butin restent homogènes.
|
||||
function LootIcon({ kind }) {
|
||||
return <span className="nebula-loot-icon">{kind === "eclats" || kind === "stardust" ? <CurrencyIcon kind={kind} /> : <MaskIcon name={kind} />}</span>;
|
||||
return <span className="nebula-loot-icon"><MaskIcon name={kind} /></span>;
|
||||
}
|
||||
|
||||
const ARROW_PATHS = { up: "M5 1 9 5.4H6.4V9H3.6V5.4H1Z", down: "M5 9 1 4.6H3.6V1H6.4V4.6H9Z" };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue