23 lines
695 B
JavaScript
23 lines
695 B
JavaScript
import { ArtSidebar } from "../apps/ArtSidebar.mjs";
|
|
import { registerCustomComponents } from "../apps/elements/_index.mjs";
|
|
import helpers from "../handlebarsHelpers/_index.mjs";
|
|
import { registerUserSettings } from "../settings/user.mjs";
|
|
|
|
Hooks.on(`init`, () => {
|
|
registerUserSettings();
|
|
registerCustomComponents();
|
|
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;
|
|
});
|