Working on the spells panel, which resulted in a lot of weird structural changes that aren't *really* functional yet
This commit is contained in:
parent
227029ffcd
commit
dfc51a5899
31 changed files with 499 additions and 84 deletions
|
|
@ -7,5 +7,6 @@
|
|||
* @returns {"open"|null} The HTML insertion indicating the details is expanded
|
||||
*/
|
||||
export function detailsExpanded(expanded, collapseId) {
|
||||
console.log(`.dungeon |`, collapseId, expanded)
|
||||
return expanded.has(collapseId) ? "open" : null;
|
||||
};
|
||||
|
|
@ -1 +1,10 @@
|
|||
export function schemaOptions() {};
|
||||
export function schemaOptions(document, schemaPath) {
|
||||
let splitPath = schemaPath.split(`.`);
|
||||
|
||||
let tempLocation = document.schema.fields.system;
|
||||
for (const part of splitPath) {
|
||||
tempLocation = tempLocation[part].fields
|
||||
}
|
||||
|
||||
return CONFIG.Actor.dataModels.player.schema.fields.weapon.fields.mainHand.fields.damage.options.options;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue