Reduce Action Selection click number & Style Action Type Dialog

This commit is contained in:
Dapoolp 2025-07-25 13:49:12 +02:00
parent 0632a8c6bb
commit 549140d861
7 changed files with 133 additions and 34 deletions

View file

@ -168,9 +168,13 @@ export function ActionMixin(Base) {
({ type } =
(await foundry.applications.api.DialogV2.input({
window: { title: 'Select Action Type' },
classes: ['daggerheart', 'dh-style'],
content: await foundry.applications.handlebars.renderTemplate(
'systems/daggerheart/templates/actionTypes/actionType.hbs',
{ types: CONFIG.DH.ACTIONS.actionTypes }
{
types: CONFIG.DH.ACTIONS.actionTypes,
itemName: parent.parent?.name
}
),
ok: {
label: game.i18n.format('DOCUMENT.Create', {