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

52 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 9238
// Function ID: 9239
2026-07-20 16:05:17 +00:00
// Name: getOpenCriticTierText
2026-08-06 08:05:19 +00:00
// Dependencies: [9239, 1236, 9240, 9241, 9242, 9243, 2]
2026-07-20 16:05:17 +00:00
// Exports: getOpenCriticCircleRatingColor, getOpenCriticTierImage, getOpenCriticTierText
2026-08-06 08:05:19 +00:00
// Module 9238 (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-06 08:05:19 +00:00
if (require(9239) /* 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-06 08:05:19 +00:00
} else if (tmp(9239).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-06 08:05:19 +00:00
} else if (tmp(9239).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-06 08:05:19 +00:00
} else if (tmp(9239).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-06 08:05:19 +00:00
if (require(9239) /* OpenCriticTier */.OpenCriticTier.MIGHTY === tier) {
return importDefault(9240);
} else if (tmp(9239).OpenCriticTier.STRONG === tier) {
return importDefault(9241);
} else if (tmp(9239).OpenCriticTier.FAIR === tier) {
return importDefault(9242);
} else if (tmp(9239).OpenCriticTier.WEAK === tier) {
return importDefault(9243);
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-06 08:05:19 +00:00
if (require(9239) /* OpenCriticTier */.OpenCriticTier.MIGHTY !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "#9e00b4";
2026-08-06 08:05:19 +00:00
if (tmp(9239).OpenCriticTier.STRONG !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "#4aa1ce";
2026-08-06 08:05:19 +00:00
if (tmp(9239).OpenCriticTier.FAIR !== tier) {
2026-07-29 08:29:29 +00:00
foregroundColor = "";
2026-08-06 08:05:19 +00:00
if (tmp(9239).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
};