forked from public/foundryvtt-reve-de-dragon
Mode de saisie d'archétype
This commit is contained in:
@ -33,7 +33,8 @@ export class RdDActorSheet extends RdDBaseActorSheet {
|
||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "carac" }],
|
||||
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: undefined }],
|
||||
showCompNiveauBase: false,
|
||||
vueDetaillee: false
|
||||
vueDetaillee: false,
|
||||
vueArchetype: false,
|
||||
});
|
||||
}
|
||||
|
||||
@ -353,6 +354,10 @@ export class RdDActorSheet extends RdDBaseActorSheet {
|
||||
let compName = event.currentTarget.attributes.compname.value;
|
||||
this.actor.updateCompetenceXPSort(compName, parseInt(event.target.value));
|
||||
});
|
||||
this.html.find('.toggle-archetype').click(async event => {
|
||||
this.options.vueArchetype = !this.options.vueArchetype;
|
||||
this.render(true);
|
||||
});
|
||||
// On competence archetype change
|
||||
this.html.find('.competence-archetype').change(async event => {
|
||||
let compName = event.currentTarget.attributes.compname.value;
|
||||
|
Reference in New Issue
Block a user