Skip to content

Commit

Permalink
Merge pull request #3 from vtt-lair/lib
Browse files Browse the repository at this point in the history
Lib
  • Loading branch information
vtt-lair authored Oct 18, 2022
2 parents 52e64f3 + 8374c94 commit 35462f3
Show file tree
Hide file tree
Showing 16 changed files with 278 additions and 805 deletions.
13 changes: 11 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"/scripts/creature-aide.js"
],
"styles": [
"/styles/creature-aide.css",
"/styles/action-dialog-app.css"
"/styles/creature-aide.css"
],
"includes": [
"module.json"
Expand Down Expand Up @@ -55,6 +54,7 @@
"url": "https://github.com/vtt-lair/simbuls-creature-aide",
"manifest": "https://github.com/vtt-lair/simbuls-creature-aide/releases/latest/download/module.json",
"download": "https://github.com/vtt-lair/simbuls-creature-aide/releases/download/v1.0.0/simbuls-creature-aide-v1.0.0.zip",
"changelog": "https://github.com/vtt-lair/simbuls-creature-aide/blob/main/CONTRIBUTORS.md",
"relationships": {
"systems": [
{
Expand All @@ -65,6 +65,15 @@
"verified": "2.0.2"
}
}
],
"requires": [
{
"id": "simbuls-athenaeum",
"type": "module",
"compatibility": {
"verified": "1.0.0"
}
}
]
},
"compatibility": {
Expand Down
166 changes: 0 additions & 166 deletions scripts/apps/action-dialog.js

This file was deleted.

13 changes: 7 additions & 6 deletions scripts/apps/config-app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { MODULE } from "../module.js";
import { logger } from "../logger.js";
import { HELPER } from "../../../simbuls-athenaeum/scripts/helper.js";
import { logger } from "../../../simbuls-athenaeum/scripts/logger.js";

/**
* HelpersSettingConfig extends {SettingsConfig}
Expand Down Expand Up @@ -37,9 +38,9 @@ export class HelpersSettingsConfig extends SettingsConfig {
/**@override */
static get defaultOptions(){
return mergeObject(super.defaultOptions, {
title : MODULE.localize("Helpers"),
title : HELPER.localize("Helpers"),
id : "creature-aide-client-settings",
template : `${MODULE.data.path}/templates/ModularSettings.html`,
template : `${MODULE.data.athenaeum}/templates/ModularSettings.html`,
width : 600,
height : "auto",
tabs : [
Expand Down Expand Up @@ -88,7 +89,7 @@ export class HelpersSettingsConfig extends SettingsConfig {
const canConfigure = game.user.can("SETTING_MODIFY");
const settings = Array.from(game.settings.settings);

options.title = MODULE.format('SCA.ConfigApp.title');
options.title = HELPER.format('SCA.ConfigApp.title');
let data = {
tabs: duplicate(options.groupLabels),
hasParent: !!options.subMenuId,
Expand Down Expand Up @@ -133,7 +134,7 @@ export class HelpersSettingsConfig extends SettingsConfig {
isCheckbox : setting.type === Boolean,
isSelect : setting.choices !== undefined,
isRange : setting.type === Number && setting.range,
value : MODULE.setting(setting.key),
value : HELPER.setting(MODULE.data.name, setting.key),
path: `${setting.namespace}.${setting.key}`
});
}
Expand All @@ -154,7 +155,7 @@ export class HelpersSettingsConfig extends SettingsConfig {
return acc;
}, {})

logger.debug("GET DATA | DATA | ", data);
logger.debug(MODULE.data.name, "GET DATA | DATA | ", data);

return {
user : game.user, canConfigure, systemTitle : game.system.title, data
Expand Down
2 changes: 0 additions & 2 deletions scripts/creature-aide.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Main Module Organizational Tools
*/
import { MODULE } from './module.js';
import { logger } from './logger.js';

/**
* Sub Modules
Expand All @@ -15,7 +14,6 @@ import { UndeadFortitude } from './modules/UndeadFortitude.js';

const SUB_MODULES = {
MODULE,
logger,
AbilityRecharge,
LegendaryActionManagement,
LairActionManagement,
Expand Down
37 changes: 0 additions & 37 deletions scripts/logger.js

This file was deleted.

Loading

0 comments on commit 35462f3

Please sign in to comment.