Add Star Wars Text Page support and update journal styling
- Registered `StarWarsTextPageSheet` for handling text-type journal pages with custom settings. - Extended `journalSheets.js` to define `StarWarsTextPageSheet` with specific UI configurations. - Modified CSS to apply the Star Wars style background to `.editor-container` within the journal. - Enhanced overall journal aesthetics while maintaining the existing `StarWarsStyleJournalSheet`.
This commit is contained in:
@@ -4,17 +4,18 @@ export class StarWarsStyleJournalSheet extends JournalSheet {
|
||||
classes: [...(super.defaultOptions.classes || []), 'asc-starwars'],
|
||||
});
|
||||
}
|
||||
|
||||
// activateListeners(html) {
|
||||
// super.activateListeners(html);
|
||||
|
||||
// const sidebar = html.find('.journal-sidebar');
|
||||
// const aside = html.find('aside');
|
||||
// this.toggleSidebar()
|
||||
|
||||
// }
|
||||
async _render(force, options) {
|
||||
await super._render(force, {...options, collapsed:true});
|
||||
}
|
||||
}
|
||||
|
||||
export class StarWarsTextPageSheet extends JournalTextPageSheet {
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: [...(super.defaultOptions.classes || []), 'asc-starwars'],
|
||||
width: 600,
|
||||
height: 400,
|
||||
resizable: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user