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

52 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 9366
// Function ID: 9367
2026-07-20 16:05:17 +00:00
// Name: getOpenCriticTierText
2026-08-12 06:57:52 +00:00
// Dependencies: [9367, 1236, 9368, 9369, 9370, 9371, 2]
2026-07-20 16:05:17 +00:00
// Exports: getOpenCriticCircleRatingColor, getOpenCriticTierImage, getOpenCriticTierText
2026-08-12 06:57:52 +00:00
// Module 9366 (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-12 06:57:52 +00:00
if (require(9367) /* 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-12 06:57:52 +00:00
} else if (tmp(9367).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-12 06:57:52 +00:00
} else if (tmp(9367).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-12 06:57:52 +00:00
} else if (tmp(9367).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-12 06:57:52 +00:00
if (require(9367) /* OpenCriticTier */.OpenCriticTier.MIGHTY === tier) {
return importDefault(9368);
} else if (tmp(9367).OpenCriticTier.STRONG === tier) {
return importDefault(9369);
} else if (tmp(9367).OpenCriticTier.FAIR === tier) {
return importDefault(9370);
} else if (tmp(9367).OpenCriticTier.WEAK === tier) {
return importDefault(9371);
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-12 06:57:52 +00:00
if (require(9367) /* OpenCriticTier */.OpenCriticTier.MIGHTY !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "#9e00b4";
2026-08-12 06:57:52 +00:00
if (tmp(9367).OpenCriticTier.STRONG !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "#4aa1ce";
2026-08-12 06:57:52 +00:00
if (tmp(9367).OpenCriticTier.FAIR !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "";
2026-08-12 06:57:52 +00:00
if (tmp(9367).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
};