Add the sidebar for the module
This commit is contained in:
parent
dc3224fb6a
commit
1d58317346
6 changed files with 127 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue