Skip to content

Commit

Permalink
version 0.9.11
Browse files Browse the repository at this point in the history
  • Loading branch information
p4535992 committed Jul 18, 2023
1 parent 371a178 commit e82b795
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 19 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### 0.9.11

- Try to fix: https://github.com/sdenec/tidy5e-sheet/issues/775


### 0.9.10

- Add module settings "enablePermanentUnlockOnVehicleIfYouAreGM" and "enablePermanentUnlockOnNPCIfYouAreGM"" for fix https://github.com/sdenec/tidy5e-sheet/issues/764
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tidy5e-sheet",
"title": "Tidy5e Sheet",
"description": "Replaces the default D&D 5e character and NPC sheet with an alternate layout focused on a cleaner UI",
"version": "0.9.10",
"version": "0.9.11",
"main": "module.js",
"license": "SEE LICENSE IN LICENSE",
"private": true,
Expand Down
20 changes: 10 additions & 10 deletions src/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Hooks.once("init", async () => {
});

Hooks.once("ready", async (app, html, data) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
debug(`module | ready | start`);
if (!game.modules.get("colorsettings")?.active && game.user?.isGM) {
let word = "install and activate";
Expand All @@ -55,7 +55,7 @@ Hooks.once("ready", async (app, html, data) => {

/** perform some necessary operations on character sheet **/
Hooks.on("renderActorSheet", (app, html, data) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
debug(`module | renderActorSheet | start`);
// Temporary Patch for module incompatibility with https://github.com/misthero/dnd5e-custom-skills
// Issue https://github.com/sdenec/tidy5e-sheet/issues/662
Expand All @@ -81,43 +81,43 @@ Hooks.on("renderActorSheet", (app, html, data) => {
// Hooks.on("updateActor", function (actorEntity, update, options, userId) {});

Hooks.on(`dnd5e.restCompleted`, (actorEntity, data) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eExhaustionDnd5eRestCompleted(actorEntity, data);
});

Hooks.on("applyActiveEffect", (actor, effect, options) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eSheetApplyActiveEffect(actor, effect, options);
});

Hooks.on(`createActiveEffect`, (activeEffect, _config, options) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eSheetCreateActiveEffect(activeEffect, _config, options);
Tidy5eExhaustionCreateActiveEffect(activeEffect, _config, options);
});

Hooks.on("updateActiveEffect", (activeEffect, _config, options) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eSheetUpdateActiveEffect(activeEffect, _config, options);
});

Hooks.on(`deleteActiveEffect`, (activeEffect, _config, options) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eSheetDeleteActiveEffect(activeEffect, _config, options);
Tidy5eExhaustionDeleteActiveEffect(activeEffect, _config, options);
});

Hooks.on("renderTidy5eUserSettings", () => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eSettingsGmOnlySetup();
});

Hooks.on("dnd5e.preItemUsageConsumption", (item, config, options) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eHBUpcastFreeSpellsDnd5ePreItemUsageConsumption(item, config, options);
});

Hooks.on("renderAbilityUseDialog", (app, html, options) => {
// Tidy5eUserSettings.init();
Tidy5eUserSettings.init(); // TODO why i need this... https://github.com/sdenec/tidy5e-sheet/issues/775
Tidy5eSheetRenderAbilityUseDialog(app, html, options);
});
6 changes: 3 additions & 3 deletions src/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "tidy5e-sheet",
"title": "Tidy5e Sheet",
"description": "Replaces the default D&D 5e character and NPC sheet with an alternate layout focused on a cleaner UI",
"version": "0.9.10",
"version": "0.9.11",
"authors": [
{
"name": "sednec#3813"
Expand Down Expand Up @@ -85,8 +85,8 @@
},
"manifestPlusVersion": "1.2.1",
"url": "https://github.com/sdenec/tidy5e-sheet",
"manifest": "https://github.com/sdenec/tidy5e-sheet/releases/download/0.9.10/module.json",
"download": "https://github.com/sdenec/tidy5e-sheet/releases/download/0.9.10/module.zip",
"manifest": "https://github.com/sdenec/tidy5e-sheet/releases/download/0.9.11/module.json",
"download": "https://github.com/sdenec/tidy5e-sheet/releases/download/0.9.11/module.zip",
"readme": "https://github.com/sdenec/tidy5e-sheet/blob/master/README.md",
"changelog": "https://github.com/sdenec/tidy5e-sheet/blob/master/changelog.md",
"bugs": "https://github.com/sdenec/tidy5e-sheet/issues",
Expand Down
10 changes: 5 additions & 5 deletions src/scripts/app/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { settingsList } from "./settingsList.js";
import { debug } from "./tidy5e-logger-util.js";

export class Tidy5eUserSettings extends FormApplication {
// static isInitialized = false;
static isInitialized = false;

static init() {
// if(!Tidy5eUserSettings.isInitialized){
settingsList();
// Tidy5eUserSettings.isInitialized = true;
// }
if (!Tidy5eUserSettings.isInitialized) {
settingsList();
Tidy5eUserSettings.isInitialized = true;
}
}

// settings template
Expand Down

0 comments on commit e82b795

Please sign in to comment.