DIvers rework de CSS/LESS et améliorations de messages/layout

This commit is contained in:
2026-05-03 20:20:30 +02:00
parent 4f8735f86f
commit 267f992874
113 changed files with 11565 additions and 843 deletions
+14
View File
@@ -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 = {