decord/source/modules/game_profile/hooks/useGameProfileOpenCritic.tsx

52 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 9209
// Function ID: 9210
2026-07-20 16:05:17 +00:00
// Name: getOpenCriticTierText
2026-08-05 07:35:12 +00:00
// Dependencies: [9210, 1236, 9211, 9212, 9213, 9214, 2]
2026-07-20 16:05:17 +00:00
// Exports: getOpenCriticCircleRatingColor, getOpenCriticTierImage, getOpenCriticTierText
2026-08-05 07:35:12 +00:00
// Module 9209 (getOpenCriticTierText)
2026-07-23 10:11:24 +00:00
const result = require("metadata").fileFinishedImporting("modules/game_profile/hooks/useGameProfileOpenCritic.tsx");
2026-07-20 16:05:17 +00:00
export const getOpenCriticTierText = function getOpenCriticTierText(tier) {
2026-08-05 07:35:12 +00:00
if (require(9210) /* OpenCriticTier */.OpenCriticTier.MIGHTY === tier) {
2026-07-29 08:29:29 +00:00
const intl4 = tmp(1236).intl;
return intl4.string(tmp(1236).t.aZej2g);
2026-08-05 07:35:12 +00:00
} else if (tmp(9210).OpenCriticTier.STRONG === tier) {
2026-07-29 08:29:29 +00:00
const intl3 = tmp(1236).intl;
return intl3.string(tmp(1236).t.MLxnSg);
2026-08-05 07:35:12 +00:00
} else if (tmp(9210).OpenCriticTier.FAIR === tier) {
2026-07-29 08:29:29 +00:00
const intl2 = tmp(1236).intl;
return intl2.string(tmp(1236).t["3f19KA"]);
2026-08-05 07:35:12 +00:00
} else if (tmp(9210).OpenCriticTier.WEAK === tier) {
2026-07-29 08:29:29 +00:00
const intl = tmp(1236).intl;
return intl.string(tmp(1236).t.jtVgSh);
2026-07-20 16:05:17 +00:00
}
};
export const getOpenCriticTierImage = function getOpenCriticTierImage(tier) {
2026-08-05 07:35:12 +00:00
if (require(9210) /* OpenCriticTier */.OpenCriticTier.MIGHTY === tier) {
return importDefault(9211);
} else if (tmp(9210).OpenCriticTier.STRONG === tier) {
return importDefault(9212);
} else if (tmp(9210).OpenCriticTier.FAIR === tier) {
return importDefault(9213);
} else if (tmp(9210).OpenCriticTier.WEAK === tier) {
return importDefault(9214);
2026-07-20 16:05:17 +00:00
}
};
export const getOpenCriticCircleRatingColor = function getOpenCriticCircleRatingColor(tier) {
2026-07-29 08:29:29 +00:00
let foregroundColor = "#fc430a";
2026-08-05 07:35:12 +00:00
if (require(9210) /* OpenCriticTier */.OpenCriticTier.MIGHTY !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "#9e00b4";
2026-08-05 07:35:12 +00:00
if (tmp(9210).OpenCriticTier.STRONG !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "#4aa1ce";
2026-08-05 07:35:12 +00:00
if (tmp(9210).OpenCriticTier.FAIR !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "";
2026-08-05 07:35:12 +00:00
if (tmp(9210).OpenCriticTier.WEAK === tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "#80b06a";
2026-07-20 16:05:17 +00:00
}
}
}
}
2026-07-29 08:29:29 +00:00
return { foregroundColor, backgroundColor: "#2e2e2e" };
2026-07-20 16:05:17 +00:00
};