Get most of the Untyped item implemented and functioning
This commit is contained in:
parent
a383225b8c
commit
6a355e63c0
7 changed files with 180 additions and 37 deletions
|
|
@ -118,8 +118,9 @@ export class GenericActorSheet extends ActorSheet {
|
|||
};
|
||||
|
||||
async openEmbeddedSheet($event) {
|
||||
const data = $event.target.dataset;
|
||||
const data = $event.currentTarget.dataset;
|
||||
let item = await fromUuid(data.embeddedEdit);
|
||||
console.log(data)
|
||||
item?.sheet.render(true);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { localizerConfig } from "../config.mjs";
|
||||
|
||||
export function localizer(key, args = {}, depth = 0) {
|
||||
if (key instanceof Handlebars.SafeString) key = key.toString();
|
||||
|
||||
/** @type {string} */
|
||||
let localized = game.i18n.format(key, args);
|
||||
const subkeys = localized.matchAll(localizerConfig.subKeyPattern);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue