diff --git a/.gitignore b/.gitignore index 839ed5f4..9e3b72b3 100644 --- a/.gitignore +++ b/.gitignore @@ -51,4 +51,7 @@ testem.log Thumbs.db # custom -animation.flag \ No newline at end of file +animation.flag + +# node version manager +.nvmrc diff --git a/README.md b/README.md index 1de9ebd7..c74fe190 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ You can change these shortcuts in the user settings menu. | `F6` | Toggle DND | `F7` | Opens the user settings menu | `F8` | Exits overlay +| `F9` | Restarts overlay | `Alt + Num1` | Open `https://www.poelab.com/` | `Alt + Num2` | Open `https://wraeclast.com/` | `Esc` | Close latest dialog diff --git a/src/app/layout/page/overlay/overlay.component.ts b/src/app/layout/page/overlay/overlay.component.ts index 2752bf0a..575d8875 100644 --- a/src/app/layout/page/overlay/overlay.component.ts +++ b/src/app/layout/page/overlay/overlay.component.ts @@ -182,6 +182,14 @@ export class OverlayComponent implements OnInit, OnDestroy { .add(settings.exitAppKeybinding, false, VisibleFlag.Game, VisibleFlag.Overlay) .subscribe(() => this.app.quit()) } + if (settings.restartAppUserSettingsKeybinding) { + this.shortcut + .add(settings.restartAppUserSettingsKeybinding, false, VisibleFlag.Game, VisibleFlag.Overlay) + .subscribe(() => { + this.app.relaunch() + this.app.quit() + }) + } } private getContext(settings: UserSettings): Context { diff --git a/src/app/layout/service/user-settings.service.ts b/src/app/layout/service/user-settings.service.ts index 27312397..86257e1f 100644 --- a/src/app/layout/service/user-settings.service.ts +++ b/src/app/layout/service/user-settings.service.ts @@ -34,6 +34,7 @@ export class UserSettingsService { let mergedSettings: UserSettings = { openUserSettingsKeybinding: 'F7', exitAppKeybinding: 'F8', + restartAppUserSettingsKeybinding: 'F9', language: Language.English, uiLanguage: UiLanguage.English, zoom: 100, diff --git a/src/app/layout/type/user-settings.type.ts b/src/app/layout/type/user-settings.type.ts index c4f33380..42b86b39 100644 --- a/src/app/layout/type/user-settings.type.ts +++ b/src/app/layout/type/user-settings.type.ts @@ -11,6 +11,7 @@ export interface UserSettings { language?: Language uiLanguage?: UiLanguage openUserSettingsKeybinding?: string + restartAppUserSettingsKeybinding?: string exitAppKeybinding?: string zoom?: number dialogSpawnPosition?: DialogSpawnPosition