Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ironmonk88 authored Jan 23, 2021
1 parent d704b1d commit 885ca1e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion alwayshp.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AlwaysHP {
static init() {
//CONFIG.debug.hooks = true;
registerSettings();
if(game.user.isGM || !game.settings.get("always-hp", "gm-only"))
if (game.settings.get("always-hp", "show-dialog"))
AlwaysHP.app = new AlwaysHPApp().render(true);
log('rendering app');
}
Expand Down
4 changes: 2 additions & 2 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"ALWAYSHP.ResourceHint": "Most systems use attributes.hp, but if the system you use doesn't, or if you'd rather use a different property, you can set it here.",
"ALWAYSHP.DefeatedTitle": "Set defeated status on zero HP",
"ALWAYSHP.DefeatedHint": "When pressing the button(skull) to drop the HP to zero, also set the defeated status",
"ALWAYSHP.GMOnlyTitle": "Only show this for the GM",
"ALWAYSHP.GMOnlyHint": "Just in case you'd rather the players not have access to the Always HP Window"
"ALWAYSHP.ShowDialogTitle": "Show the Window",
"ALWAYSHP.ShowDialogHint": "Just in case you'd rather not see the dialog, if you're on a small display"
}
10 changes: 5 additions & 5 deletions modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export const registerSettings = function () {
config: true
});

game.settings.register(modulename, "gm-only", {
name: game.i18n.localize("ALWAYSHP.GMOnlyTitle"),
hint: game.i18n.localize("ALWAYSHP.GMOnlyHint"),
scope: "world",
default: false,
game.settings.register(modulename, "show-dialog", {
name: game.i18n.localize("ALWAYSHP.ShowDialogTitle"),
hint: game.i18n.localize("ALWAYSHP.ShowDialogHint"),
scope: "client",
default: true,
type: Boolean,
config: true
});
Expand Down

0 comments on commit 885ca1e

Please sign in to comment.