Skip to content

Commit

Permalink
Option to disable OMFG token rings
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed May 12, 2022
1 parent 64da413 commit 2b4e749
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"vtta-tokenizer.disable-avatar-click-user.name": "Disable avatar click (user preference)",
"vtta-tokenizer.disable-avatar-click-user.hint": "Don't open Tokenizer when avatar picture is clicked. (Shift click will still open Tokenizer).",
"vtta-tokenizer.token-only-toggle.name": "Token only default",
"vtta-tokenizer.token-only-toggle.hint": "If selected defaults to true, can be toggled in tokenizer, per player setting"
"vtta-tokenizer.token-only-toggle.hint": "If selected defaults to true, can be toggled in tokenizer, per player setting",
"vtta-tokenizer.disable-omfg-frames.name": "Disable OMFG frames"
}
8 changes: 8 additions & 0 deletions src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ export function init() {
default: false,
});

game.settings.register("vtta-tokenizer", "disable-omfg-frames", {
name: "vtta-tokenizer.disable-omfg-frames.name",
scope: "player",
config: true,
type: Boolean,
default: false,
});

game.settings.register("vtta-tokenizer", "default-color", {
name: "vtta-tokenizer.default-color.name",
hint: "vtta-tokenizer.default-color.hint",
Expand Down
1 change: 1 addition & 0 deletions src/tokenizer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import ImageBrowser from "./../libs/ImageBrowser.js";
export default class Tokenizer extends FormApplication {

getOMFGFrames() {
if (game.settings.get("vtta-tokenizer", "disable-omfg-frames")) return [];
if (this.omfgFrames.length > 0) return this.omfgFrames;

["normal", "desaturated"].forEach((version) => {
Expand Down

0 comments on commit 2b4e749

Please sign in to comment.