Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d26f5aacb1
|
|||
|
4423aaaa1b
|
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"id": "asc-starwars-style-journal",
|
"id": "asc-starwars-style-journal",
|
||||||
"title": "Star Wars Style Journal",
|
"title": "Star Wars Style Journal",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"download": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/v0.2.0/module.zip",
|
"download": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/v0.2.1/module.zip",
|
||||||
"manifest": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/latest/module.json",
|
"manifest": "https://gitea.ascorrea.com/asc/asc-starwars-style-journal/releases/download/latest/module.json",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "12",
|
"minimum": "12",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {StarWarsStyleJournalSheet} from "./journalSheets.js"
|
import {StarWarsStyleJournalSheet, StarWarsTextPageSheet} from "./journalSheets.js"
|
||||||
// ui.notifications.info
|
// ui.notifications.info
|
||||||
// Register the custom journal sheet
|
// Register the custom journal sheet
|
||||||
|
|
||||||
@@ -8,6 +8,11 @@ Hooks.once('ready', () => {
|
|||||||
label: 'Star Wars Style Journal',
|
label: 'Star Wars Style Journal',
|
||||||
makeDefault: false // Set to true if you want this as the default
|
makeDefault: false // Set to true if you want this as the default
|
||||||
});
|
});
|
||||||
|
DocumentSheetConfig.registerSheet(JournalEntryPage, "asc-starwars-style-journal", StarWarsTextPageSheet, {
|
||||||
|
types: ['text'],
|
||||||
|
label: 'Star Wars Text Page',
|
||||||
|
makeDefault: false, // Not globally default—used conditionally by the journal sheet
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
Hooks.on("renderChatMessage", (message, html, data) => {
|
Hooks.on("renderChatMessage", (message, html, data) => {
|
||||||
|
|||||||
@@ -4,17 +4,18 @@ export class StarWarsStyleJournalSheet extends JournalSheet {
|
|||||||
classes: [...(super.defaultOptions.classes || []), 'asc-starwars'],
|
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) {
|
async _render(force, options) {
|
||||||
await super._render(force, {...options, collapsed:true});
|
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,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
src: url("../fonts/SWCrawlBody.ttf");
|
src: url("../fonts/SWCrawlBody.ttf");
|
||||||
}
|
}
|
||||||
|
|
||||||
.asc-starwars .journal-entry-content, .editor-container, .chat-message.asc-starwars .message-content {
|
.asc-starwars .journal-entry-content, .asc-starwars .editor-container, .chat-message.asc-starwars .message-content {
|
||||||
background-image:url(../artwork/stars.png) !important;
|
background-image:url(../artwork/stars.png) !important;
|
||||||
background-repeat:repeat !important;
|
background-repeat:repeat !important;
|
||||||
background-position:center top !important;
|
background-position:center top !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user