Refactor Star Wars Journal module structure and styles
- Replaced `main.js` with `asc-starwars.js` and modularized journal sheet logic into `journalSheets.js`. - Updated `module.json` to use ES modules and adjusted script/style references accordingly. - Consolidated and enhanced CSS styles into `asc-starwars-journal.css` and added `asc-ffg-starwars.css`. - Removed deprecated `starwars-journal.css` and outdated journal sheet registration logic.
This commit is contained in:
11
src/scripts/asc-starwars.js
Normal file
11
src/scripts/asc-starwars.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import {StarWarsStyleJournalSheet} from "./journalSheets.js"
|
||||
// ui.notifications.info
|
||||
// Register the custom journal sheet
|
||||
|
||||
Hooks.once('ready', () => {
|
||||
console.log('ASC Star Wars Style Journal | Registering custom sheet...');
|
||||
Journal.registerSheet('asc-starwars-style-journal', StarWarsStyleJournalSheet, {
|
||||
label: 'Star Wars Style Journal',
|
||||
makeDefault: false // Set to true if you want this as the default
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user