DIvers rework de CSS/LESS et améliorations de messages/layout
This commit is contained in:
@@ -6,8 +6,22 @@ import { LesOubliesRolls } from "./les-oublies-rolls.js"
|
||||
import * as models from "./models/index.mjs"
|
||||
import * as sheets from "./applications/sheets/_module.mjs"
|
||||
|
||||
function ensureSystemStyles() {
|
||||
const href = `systems/${game.system.id}/css/les-oublies.css`
|
||||
const existingLink = document.querySelector(`link[href$="${href}"]`)
|
||||
if (existingLink) return
|
||||
|
||||
const link = document.createElement("link")
|
||||
link.rel = "stylesheet"
|
||||
link.type = "text/css"
|
||||
link.href = href
|
||||
link.dataset.systemStyle = game.system.id
|
||||
document.head.append(link)
|
||||
}
|
||||
|
||||
Hooks.once("init", function () {
|
||||
console.info("Les Oubliés | Initialisation du système")
|
||||
ensureSystemStyles()
|
||||
|
||||
CONFIG.Actor.documentClass = LesOubliesActor
|
||||
CONFIG.Actor.dataModels = {
|
||||
|
||||
Reference in New Issue
Block a user