feat : able to rotate img for mat card
This commit is contained in:
@@ -235,6 +235,7 @@ function GuideOverview({
|
||||
artworkOffsetX={guide.posterArtOffsetX}
|
||||
artworkOffsetY={guide.posterArtOffsetY}
|
||||
artworkScale={guide.posterArtScale}
|
||||
artworkRotation={guide.posterArtRotation}
|
||||
topColors={guide.posterTopColors}
|
||||
bottomColors={guide.posterBottomColors}
|
||||
bleeding={guide.posterBleeding}
|
||||
@@ -256,6 +257,7 @@ function GuideOverview({
|
||||
artworkOffsetX={guide.posterArtOffsetX}
|
||||
artworkOffsetY={guide.posterArtOffsetY}
|
||||
artworkScale={guide.posterArtScale}
|
||||
artworkRotation={guide.posterArtRotation}
|
||||
topColors={guide.posterTopColors}
|
||||
bottomColors={guide.posterBottomColors}
|
||||
bleeding={guide.posterBleeding}
|
||||
@@ -1000,12 +1002,12 @@ const thaiStats: Record<string, string> = {
|
||||
DEF: "พลังป้องกัน",
|
||||
EM: "ความชำนาญธาตุ",
|
||||
ER: "ฟื้นฟูพลังงาน",
|
||||
"CRIT RATE": "อัตราคริ",
|
||||
"CRIT DAMAGE": "ความแรงคริ",
|
||||
"CRIT RATE": "คริเรท",
|
||||
"CRIT DAMAGE": "คริดาเมท",
|
||||
"ATK%": "พลังโจมตี%",
|
||||
"HP%": "พลังชีวิต%",
|
||||
"DEF%": "พลังป้องกัน%",
|
||||
"CRIT Rate/CRIT DMG": "อัตราคริ/ความแรงคริ",
|
||||
"CRIT Rate/CRIT DMG": "คริเรท/คริดาเมท",
|
||||
"Pyro DMG%": "โบนัสความเสียหายธาตุไฟ",
|
||||
"Hydro DMG%": "โบนัสความเสียหายธาตุน้ำ",
|
||||
"Cryo DMG%": "โบนัสความเสียหายธาตุน้ำแข็ง",
|
||||
@@ -1028,12 +1030,19 @@ const englishStats: Record<string, string> = {
|
||||
"CRIT Rate/CRIT DMG": "CRIT Rate / CRIT DMG",
|
||||
};
|
||||
|
||||
const statLabelAliases: Record<string, string> = {
|
||||
"CRIT Rate%": "CRIT RATE",
|
||||
"CRIT DMG%": "CRIT DAMAGE",
|
||||
"CRIT Rate%/CRIT DMG%": "CRIT Rate/CRIT DMG",
|
||||
};
|
||||
|
||||
function statLabel(value: string, exporting = false): ReactNode {
|
||||
if (!exporting) return thaiStats[value] ?? value;
|
||||
const labelKey = statLabelAliases[value] ?? value;
|
||||
if (!exporting) return thaiStats[labelKey] ?? value;
|
||||
return (
|
||||
<ExportText
|
||||
th={thaiStats[value] ?? value}
|
||||
en={englishStats[value] ?? value}
|
||||
th={thaiStats[labelKey] ?? value}
|
||||
en={englishStats[labelKey] ?? value}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user