Rename PlayerSheetV2 containing file
This commit is contained in:
parent
3981e95ff0
commit
d100af3198
2 changed files with 9 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ import { PetSheet } from "./sheets/Items/PetSheet.mjs";
|
|||
|
||||
// Actor Sheets
|
||||
import { BasicSyncSheet } from "./sheets/SyncVariations/BasicSyncSheet.mjs";
|
||||
import { PlayerSheetv2 } from "./sheets/Actors/PC/Improved.mjs";
|
||||
import { PlayerSheetv2 } from "./sheets/Actors/PC/PlayerSheetV2.mjs";
|
||||
import { MVPPCSheet } from "./sheets/MVPPCSheet.mjs";
|
||||
import { MobSheet } from "./sheets/MobSheet.mjs";
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ export class PlayerSheetv2 extends GenericActorSheet {
|
|||
group: `page`,
|
||||
navSelector: `nav.page`,
|
||||
contentSelector: `.page-content`,
|
||||
initial: `inventory`,
|
||||
initial: `avatar`,
|
||||
},
|
||||
{
|
||||
group: `inventory`,
|
||||
|
|
@ -35,6 +35,13 @@ export class PlayerSheetv2 extends GenericActorSheet {
|
|||
if (this.document.isEmbedded) return;
|
||||
if (!this.isEditable) return;
|
||||
console.debug(`.dungeon | Adding event listeners for Actor: ${this.id}`);
|
||||
|
||||
html.find(`.create-ae`).on(`click`, async ($e) => {
|
||||
console.debug(`Creating an ActiveEffect?`);
|
||||
ActiveEffect.implementation.create({
|
||||
name: "Default AE",
|
||||
}, { parent: this.actor, renderSheet: true });
|
||||
});
|
||||
};
|
||||
|
||||
async getData() {
|
||||
Loading…
Add table
Add a link
Reference in a new issue