App employés/clients

This commit is contained in:
2026-06-03 20:13:56 +02:00
parent 6f3996d216
commit befb8e97c2
19 changed files with 48 additions and 36 deletions
+12
View File
@@ -44,6 +44,18 @@ function injectActorDirectoryMissionPackButton(app, element) {
void game.system.donjonEtCie.macros.openMissionPackDialog();
});
headerActions.append(button);
// Bouton "Employés / Clients"
const empButton = document.createElement("button");
empButton.type = "button";
empButton.className = "dnc-employes-button";
empButton.title = game.i18n.localize("DNC.Dialog.EmployeesTitle");
empButton.setAttribute("aria-label", game.i18n.localize("DNC.Dialog.EmployeesTitle"));
empButton.innerHTML = `<i class="fa-solid fa-hard-hat" inert></i><span>${game.i18n.localize("DNC.Dialog.EmployeesTitle")}</span>`;
empButton.addEventListener("click", () => {
void DonjonEtCieEmployesDialog.open();
});
headerActions.append(empButton);
}
function onChatActionClick(event) {