Rework item sheet

This commit is contained in:
2022-03-06 22:18:08 +01:00
parent 0ce493bc92
commit b97d626fc7
18 changed files with 323 additions and 286 deletions

View File

@@ -4,7 +4,6 @@
*/
import { PegasusUtility } from "./pegasus-utility.js";
import { PegasusItemSheet } from "./pegasus-item-sheet.js";
import { PegasusRollDialog } from "./pegasus-roll-dialog.js";
/* -------------------------------------------- */
@@ -18,7 +17,7 @@ export class PegasusActorSheet extends ActorSheet {
template: "systems/fvtt-pegasus-rpg/templates/actor-sheet.html",
width: 920,
height: 720,
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }],
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "combat" }],
dragDrop: [{ dragSelector: ".item-list .item", dropSelector: null }],
editScore: false
});

View File

@@ -14,8 +14,8 @@ export class PegasusItemSheet extends ItemSheet {
template: "systems/fvtt-pegasus-rpg/templates/item-sheet.html",
dragDrop: [{ dragSelector: null, dropSelector: null }],
width: 620,
height: 550
//tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
height: 550,
tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
});
}

View File

@@ -208,7 +208,9 @@ export class PegasusUtility {
'systems/fvtt-pegasus-rpg/templates/partial-options-equipment-types.html',
'systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html',
'systems/fvtt-pegasus-rpg/templates/partial-actor-stat-block.html',
'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html'
'systems/fvtt-pegasus-rpg/templates/partial-actor-status.html',
'systems/fvtt-pegasus-rpg/templates/partial-item-nav.html',
'systems/fvtt-pegasus-rpg/templates/partial-item-description.html',
]
return loadTemplates(templatePaths);
}