Skip to content

Commit

Permalink
add setting to disable HP/Damage shortcut; Cheers Nerdhaven
Browse files Browse the repository at this point in the history
  • Loading branch information
Lurkars committed Jun 11, 2024
1 parent c6421e6 commit 92ebd75
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 19 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gloomhavensecretariat",
"version": "0.99.6",
"version": "0.99.7",
"license": "AGPL3",
"description": "Gloomhaven Secretariat is a Gloomhaven/Frosthaven Companion app.",
"homepage": "https://gloomhaven-secretariat.de",
Expand Down Expand Up @@ -104,7 +104,7 @@
"@types/jasmine": "~5.1.4",
"@types/leaflet": "^1.9.12",
"@types/uuid": "^9.0.8",
"electron": "^30.1.0",
"electron": "^31.0.0",
"electron-builder": "^24.13.3",
"http-server": "^14.1.1",
"husky": "^9.0.11",
Expand Down
3 changes: 2 additions & 1 deletion src/app/game/model/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class Settings {
combineInteractiveAbilities: boolean = true;
combineSummonAction: boolean = true;
damageHP: boolean = false;
damageHPToggle: boolean = true;
debugEditWorldMap: boolean = false;
debugRightClick: boolean = false;
disableAnimations: boolean = false;
Expand Down Expand Up @@ -171,5 +172,5 @@ export class Settings {
}

export const localSettings: string[] = [
"animations", "artwork", "automaticAttackModifierFullscreen", "autoBackup", "autoBackupFinish", "autoBackupUrl", "automaticGameClock", "automaticTheme", "autoscroll", "barsize", "backupHint", "browserNavigation", "buildingEffectsVisible", "buildingInteractionsVisible", "calendarLocked", "characterAttackModifierAnimate", "characterAttackModifierDeckPermanent", "characterAttackModifierDeckPermanentActive", "characterItemsPermanent", "characterItemsPermanentActive", "characterItemsPermanentEquipped", "characterItemsPermanentSorted", "characterItemsPermanentZoom", "characterCompact", "characterSheetCompact", "characterSheetLocked", "columns", "columnsForce", "debugEditWorldMap", "debugRightClick", "disableAnimations", "disableArtwork", "disableColumns", "disableDragFigures", "disablePinchZoom", "disableWakeLock", "dragFigures", "dragValues", "errata", "fhStyle", "fontsize", "gameClock", "globalFontsize", "globalMapHighlighting", "feedbackErrors", "feedbackErrorsIgnore", "fullscreen", "hideCharacterHP", "hideCharacterLoot", "hideCharacterXP", "hints", "logServerMessages", "pinchZoom", "portraitMode", "pressDoubleClick", "serverAutoconnect", "serverCode", "serverPassword", "serverPing", "serverPort", "serverSettings", "serverUrl", "serverWss", "showAllSections", "showBossMonster", "showHiddenMonster", "showOnlyUnfinishedScenarios", "statAnimations", "theme", "tooltips", "wakeLock", "zoom"
"animations", "artwork", "automaticAttackModifierFullscreen", "autoBackup", "autoBackupFinish", "autoBackupUrl", "automaticGameClock", "automaticTheme", "autoscroll", "barsize", "backupHint", "browserNavigation", "buildingEffectsVisible", "buildingInteractionsVisible", "calendarLocked", "characterAttackModifierAnimate", "characterAttackModifierDeckPermanent", "characterAttackModifierDeckPermanentActive", "characterItemsPermanent", "characterItemsPermanentActive", "characterItemsPermanentEquipped", "characterItemsPermanentSorted", "characterItemsPermanentZoom", "characterCompact", "characterSheetCompact", "characterSheetLocked", "columns", "columnsForce", "damageHPToggle", "debugEditWorldMap", "debugRightClick", "disableAnimations", "disableArtwork", "disableColumns", "disableDragFigures", "disablePinchZoom", "disableWakeLock", "dragFigures", "dragValues", "errata", "fhStyle", "fontsize", "gameClock", "globalFontsize", "globalMapHighlighting", "feedbackErrors", "feedbackErrorsIgnore", "fullscreen", "hideCharacterHP", "hideCharacterLoot", "hideCharacterXP", "hints", "logServerMessages", "pinchZoom", "portraitMode", "pressDoubleClick", "serverAutoconnect", "serverCode", "serverPassword", "serverPing", "serverPort", "serverSettings", "serverUrl", "serverWss", "showAllSections", "showBossMonster", "showHiddenMonster", "showOnlyUnfinishedScenarios", "statAnimations", "theme", "tooltips", "wakeLock", "zoom"
];
2 changes: 1 addition & 1 deletion src/app/ui/figures/character/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export class CharacterComponent implements OnInit, OnDestroy {
toggleDamageHP() {
if (this.compact) {
this.openCharacterSheet();
} else {
} else if (settingsManager.settings.damageHPToggle) {
settingsManager.toggle('damageHP');
}
}
Expand Down
1 change: 1 addition & 0 deletions src/app/ui/header/menu/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@
</div>
<div class="line" ghs-setting-menu="characterItemsPermanentActive"
[disabled]="!settingsManager.settings.characterItems || !settingsManager.settings.characterItemsPermanent"></div>
<div class="line" ghs-setting-menu="damageHPToggle"></div>
</div>

<div class="separator"></div>
Expand Down
4 changes: 4 additions & 0 deletions src/assets/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1811,6 +1811,10 @@
".": "Schaden statt TP",
"hint": "Zeige den erleideten Schaden statt der verbleibenden Trefferpunkte an."
},
"damageHPToggle": {
".": "Schaden statt TP auf Charakterboard umschalten",
"hint": "Schalte zwischen Schaden statt TP mit Doppelklick auf TP vom Charakterboard."
},
"debug": {
".": "Debug Einstellung/Werkzeuge",
"hint": "",
Expand Down
4 changes: 4 additions & 0 deletions src/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,10 @@
".": "Damage instead of HP",
"hint": "Show damage dealed instead of hitpoints left"
},
"damageHPToggle": {
".": "Toggle Damage/HP on character board",
"hint": "Shortcut by double clicking the HP display on a character board to switch between Damage and HP."
},
"debug": {
".": "Debug Settings/Tools",
"rightClick": "Always enable Right-Click",
Expand Down

0 comments on commit 92ebd75

Please sign in to comment.