feat: add dodi folder

This commit is contained in:
Zamitto 2024-10-07 11:52:25 -03:00
parent 7f09a7796f
commit 7c9c27801f
3 changed files with 51 additions and 35 deletions

View File

@ -86,6 +86,10 @@ const getPathFromCracker = (cracker: Cracker) => {
folderPath: path.join(programData, "Steam", "Player"),
fileLocation: ["stats", "achievements.ini"],
},
{
folderPath: path.join(programData, "Steam", "dodi"),
fileLocation: ["stats", "achievements.ini"],
},
];
}

View File

@ -24,6 +24,7 @@ export const contentSidebarTitle = style({
display: "flex",
alignItems: "center",
backgroundColor: vars.color.background,
justifyContent: "space-between",
});
export const requirementButtonContainer = style({

View File

@ -49,44 +49,55 @@ export function Sidebar() {
/> */}
{achievements.length > 0 && (
<div
style={{
display: "flex",
flexDirection: "column",
gap: `${SPACING_UNIT}px`,
padding: `${SPACING_UNIT}px`,
}}
>
{achievements.map((achievement, index) => (
<div
key={index}
style={{
display: "flex",
flexDirection: "row",
alignItems: "center",
gap: `${SPACING_UNIT}px`,
}}
title={achievement.description}
>
<img
<>
<div
className={styles.contentSidebarTitle}
style={{ border: "none" }}
>
<h3>{t("achievements")}</h3>
<span>{achievements.length}</span>
</div>
<div
style={{
display: "flex",
flexDirection: "column",
gap: `${SPACING_UNIT}px`,
padding: `${SPACING_UNIT}px`,
}}
>
{achievements.map((achievement, index) => (
<div
key={index}
style={{
height: "72px",
width: "72px",
filter: achievement.unlocked ? "none" : "grayscale(100%)",
display: "flex",
flexDirection: "row",
alignItems: "center",
gap: `${SPACING_UNIT}px`,
}}
src={
achievement.unlocked ? achievement.icon : achievement.icongray
}
alt={achievement.displayName}
loading="lazy"
/>
<div>
<p>{achievement.displayName}</p>
{achievement.unlockTime && format(achievement.unlockTime)}
title={achievement.description}
>
<img
style={{
height: "72px",
width: "72px",
filter: achievement.unlocked ? "none" : "grayscale(100%)",
}}
src={
achievement.unlocked
? achievement.icon
: achievement.icongray
}
alt={achievement.displayName}
loading="lazy"
/>
<div>
<p>{achievement.displayName}</p>
{achievement.unlockTime && format(achievement.unlockTime)}
</div>
</div>
</div>
))}
</div>
))}
</div>
</>
)}
{stats && (