Init settings before sheets
Eviter que le chargement d'acteurs ait lieu avant le chargement des settings
This commit is contained in:
@ -8,7 +8,7 @@ const OPTIONS_AVANCEES = [
|
||||
]
|
||||
|
||||
export class OptionsAvancees extends FormApplication {
|
||||
static init() {
|
||||
static initSettings() {
|
||||
for (const regle of OPTIONS_AVANCEES) {
|
||||
const name = regle.name
|
||||
const id = OptionsAvancees._getId(name)
|
||||
|
@ -46,7 +46,7 @@ const listeReglesOptionnelles = [
|
||||
const uniquementJoueur = listeReglesOptionnelles.filter(it => it.uniquementJoueur).map(it=>it.name);
|
||||
|
||||
export class ReglesOptionnelles extends FormApplication {
|
||||
static init() {
|
||||
static initSettings() {
|
||||
for (const regle of listeReglesOptionnelles) {
|
||||
const name = regle.name;
|
||||
const id = ReglesOptionnelles._getIdRegle(name);
|
||||
|
@ -25,7 +25,7 @@ const CONFIGURABLE_COMPENDIUMS = {
|
||||
* ======= Gestion des accès aux compendiums systèmes (ou surchargés) =======
|
||||
*/
|
||||
export class SystemCompendiums extends FormApplication {
|
||||
static init() {
|
||||
static initSettings() {
|
||||
Object.keys(CONFIGURABLE_COMPENDIUMS).forEach(compendium => {
|
||||
const definition = CONFIGURABLE_COMPENDIUMS[compendium];
|
||||
foundry.utils.mergeObject(definition, {
|
||||
|
Reference in New Issue
Block a user