Skip to content

Commit

Permalink
add settings for text scale
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 7, 2023
1 parent d2c33a0 commit 2c47f4b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,18 @@ Hooks.on("init", () => {
type: Number,
});

game.settings.register("pf2e-rpg-numbers", "number-scale-type", {
name: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.name"),
hint: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.hint"),
scope: "world",
config: true,
default: "percentMaxHealth",
type: String,
string: {
["percentRemainingHealth"]: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.choices.percent-remaining-health"),
["percentMaxHealth"]: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.choices.percent-max-health"),
["none"]: game.i18n.localize("pf2e-rpg-numbers.module-settings.number-scale-type.choices.none"),
},
});

});

0 comments on commit 2c47f4b

Please sign in to comment.