Files
discord-decomp/modules/guild_onboarding/LandingAssetUtils.tsx
T
2026-11-01 12:12:55 +02:00

16 lines
629 B
TypeScript

// Metro module 5118 (f5119).
export default function replaceFlagIconAndFlagColor(a0, a1, c14655_1) {
let c14655_2;
let c14655_0 = a0;
a0.assets[0].p = a1;
const r10 = a0.layers.findIndex((layer) => layer.nm === "flag");
c14655_2 = r10;
a0.layers[r10].shapes[0].it.forEach((a0, index) => {
const layers = c14655_0.layers;
if (layers[c14655_2].shapes[0].it[index].ty === "gr" && c14655_0.layers[c14655_2].shapes[0].it[index].it.findIndex((item) => item.ty === "fl") >= 0) {
c14655_0.layers[c14655_2].shapes[0].it[index].it[1].c.k = [...c14655_1.map((item) => item / 256), 1];
}
});
return a0;
};