mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-22 10:23:56 +00:00
Merge branch 'main' of github.com:hydralauncher/hydra
This commit is contained in:
@@ -263,6 +263,16 @@ export type GameAchievementFiles = {
|
||||
[id: string]: AchievementFile[];
|
||||
};
|
||||
|
||||
export interface AchievementNotificationInfo {
|
||||
title: string;
|
||||
description?: string;
|
||||
iconUrl: string;
|
||||
isHidden: boolean;
|
||||
isRare: boolean;
|
||||
isPlatinum: boolean;
|
||||
points?: number;
|
||||
}
|
||||
|
||||
export interface GameArtifact {
|
||||
id: string;
|
||||
artifactLengthInBytes: number;
|
||||
@@ -334,6 +344,23 @@ export type LibraryGame = Game &
|
||||
download: Download | null;
|
||||
};
|
||||
|
||||
export type UserGameDetails = ShopAssets & {
|
||||
id: string;
|
||||
playTimeInSeconds: number;
|
||||
unlockedAchievementCount: number;
|
||||
achievementsPointsEarnedSum: number;
|
||||
lastTimePlayed: Date | null;
|
||||
isDeleted: boolean;
|
||||
isFavorite: boolean;
|
||||
friendsWhoPlayed: {
|
||||
id: string;
|
||||
displayName: string;
|
||||
profileImageUrl: string | null;
|
||||
lastTimePlayed: Date | null;
|
||||
playTimeInSeconds: number;
|
||||
}[];
|
||||
};
|
||||
|
||||
export * from "./game.types";
|
||||
export * from "./steam.types";
|
||||
export * from "./download.types";
|
||||
|
||||
@@ -34,6 +34,7 @@ export interface Game {
|
||||
title: string;
|
||||
iconUrl: string | null;
|
||||
playTimeInMilliseconds: number;
|
||||
unsyncedDeltaPlayTimeInMilliseconds?: number;
|
||||
lastTimePlayed: Date | null;
|
||||
objectId: string;
|
||||
shop: GameShop;
|
||||
@@ -70,6 +71,14 @@ export interface GameAchievement {
|
||||
cacheExpiresTimestamp: number | undefined;
|
||||
}
|
||||
|
||||
export type AchievementCustomNotificationPosition =
|
||||
| "top-left"
|
||||
| "top-center"
|
||||
| "top-right"
|
||||
| "bottom-left"
|
||||
| "bottom-center"
|
||||
| "bottom-right";
|
||||
|
||||
export interface UserPreferences {
|
||||
downloadsPath?: string | null;
|
||||
language?: string;
|
||||
@@ -86,7 +95,10 @@ export interface UserPreferences {
|
||||
downloadNotificationsEnabled?: boolean;
|
||||
repackUpdatesNotificationsEnabled?: boolean;
|
||||
achievementNotificationsEnabled?: boolean;
|
||||
achievementCustomNotificationsEnabled?: boolean;
|
||||
achievementCustomNotificationPosition?: AchievementCustomNotificationPosition;
|
||||
friendRequestNotificationsEnabled?: boolean;
|
||||
friendStartGameNotificationsEnabled?: boolean;
|
||||
showDownloadSpeedInMegabytes?: boolean;
|
||||
extractFilesByDefault?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user