Create the initial version of the TableManager class for configuring settings

This commit is contained in:
Oliver-Akins 2025-05-11 17:24:09 -06:00
parent 4bfce858ef
commit 8a2d946b63
21 changed files with 718 additions and 115 deletions

View file

@ -15,6 +15,7 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
},
actions: {
openStats: this.#openStats,
manageTables: this.#manageTables,
createTable: this.#createTable,
},
};
@ -39,7 +40,7 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
const controls = {
openStats: { label: `View Stats`, action: `openStats` },
createTable: { label: `Create New Table`, action: `createTable` },
manageTables: { label: `Manage Tables`, action: `` },
manageTables: { label: `Manage Tables`, action: `manageTables` },
manageData: { label: `Manage Data`, action: `` },
};
@ -65,6 +66,12 @@ export class StatSidebar extends HandlebarsApplicationMixin(AbstractSidebarTab)
app.render({ force: true });
};
/** @this {StatSidebar} */
static async #manageTables() {
const app = new CONFIG.stats.manager;
app.render({ force: true });
};
/** @this {StatSidebar} */
static async #createTable() {
const app = new CONFIG.stats.creator;