Afficher les sous menu par défaut

This commit is contained in:
Vincent Vandemeulebrouck 2020-12-21 23:41:17 +01:00
parent bdf2912274
commit 019bce8790

View File

@ -17,9 +17,9 @@ export class RdDTokenHud {
if (!token.inCombat) return;
if (!combatant) return;
const hudData = { combatant: combatant, armes: RdDTokenHud.buildListeActionsCombat(combatant) };
let armesList = RdDTokenHud.buildListeActionsCombat(combatant) ;
const hudData = { combatant: combatant, armes: armesList };
let armesList = RdDUtility.buildArmeList(combatant);
// initiative
await RdDTokenHud._configureSubMenu(html.find('.control-icon.combat'), 'systems/foundryvtt-reve-de-dragon/templates/hud-actor-init.html', hudData,
(event) => {
@ -54,6 +54,7 @@ export class RdDTokenHud {
const imgHud = hud.find('img.rdd-hud-togglebutton');
const list = hud.find('div.rdd-hud-list');
hud.toggleClass('active');
HtmlUtility._showControlWhen(list, hud.hasClass('active'));
imgHud.click(event => {