Add the sidebar for the module

This commit is contained in:
Oliver 2026-01-26 23:41:43 -07:00
parent dc3224fb6a
commit 1d58317346
6 changed files with 127 additions and 0 deletions

View file

@ -1,8 +1,22 @@
import { api } from "../api.mjs";
import { ArtSidebar } from "../apps/ArtSidebar.mjs";
import helpers from "../handlebarsHelpers/_index.mjs";
Hooks.on(`init`, () => {
globalThis.tb = api;
Handlebars.registerHelper(helpers);
// Art sidebar tab
CONFIG.ui.sidebar.TABS.art = {
active: false,
icon: `fa-solid fa-paintbrush`,
tooltip: `Art`,
};
CONFIG.ui.art = ArtSidebar;
// Inject the custom tab right before settings
const temp = CONFIG.ui.sidebar.TABS.settings;
delete CONFIG.ui.sidebar.TABS.settings;
CONFIG.ui.sidebar.TABS.settings = temp;
});