mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add dodi folder
This commit is contained in:
parent
7f09a7796f
commit
7c9c27801f
3 changed files with 51 additions and 35 deletions
|
@ -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"],
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ export const contentSidebarTitle = style({
|
|||
display: "flex",
|
||||
alignItems: "center",
|
||||
backgroundColor: vars.color.background,
|
||||
justifyContent: "space-between",
|
||||
});
|
||||
|
||||
export const requirementButtonContainer = style({
|
||||
|
|
|
@ -49,6 +49,14 @@ export function Sidebar() {
|
|||
/> */}
|
||||
|
||||
{achievements.length > 0 && (
|
||||
<>
|
||||
<div
|
||||
className={styles.contentSidebarTitle}
|
||||
style={{ border: "none" }}
|
||||
>
|
||||
<h3>{t("achievements")}</h3>
|
||||
<span>{achievements.length}</span>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
|
@ -75,7 +83,9 @@ export function Sidebar() {
|
|||
filter: achievement.unlocked ? "none" : "grayscale(100%)",
|
||||
}}
|
||||
src={
|
||||
achievement.unlocked ? achievement.icon : achievement.icongray
|
||||
achievement.unlocked
|
||||
? achievement.icon
|
||||
: achievement.icongray
|
||||
}
|
||||
alt={achievement.displayName}
|
||||
loading="lazy"
|
||||
|
@ -87,6 +97,7 @@ export function Sidebar() {
|
|||
</div>
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
{stats && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue