fixes default behavior for editing an image
parent
fca38ec507
commit
eef89c5a10
|
|
@ -11,7 +11,7 @@ import {CombatActionDialog} from "../dialog/combatAction.mjs";
|
||||||
import {ActionManager} from "./actions/action-manager.mjs";
|
import {ActionManager} from "./actions/action-manager.mjs";
|
||||||
import {DefenseActionDialog} from "../dialog/defenseAction.mjs";
|
import {DefenseActionDialog} from "../dialog/defenseAction.mjs";
|
||||||
|
|
||||||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||||
const {ActorSheetV2} = foundry.applications.sheets
|
const {ActorSheetV2} = foundry.applications.sheets
|
||||||
const {ContextMenu} = foundry.applications.ux
|
const {ContextMenu} = foundry.applications.ux
|
||||||
|
|
||||||
|
|
@ -35,7 +35,7 @@ class CharacterSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
rollCombatSkill: CharacterSheet.#rollCombatSkill,
|
rollCombatSkill: CharacterSheet.#rollCombatSkill,
|
||||||
rollSkill: CharacterSheet.#rollSkill,
|
rollSkill: CharacterSheet.#rollSkill,
|
||||||
roll: CharacterSheet.#dieRoll,
|
roll: CharacterSheet.#dieRoll,
|
||||||
editImage: ActorSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||||
openEmbeddedDocument: CharacterSheet.#openEmbeddedDocument,
|
openEmbeddedDocument: CharacterSheet.#openEmbeddedDocument,
|
||||||
openCultureDocument: CharacterSheet.#openCultureDocument,
|
openCultureDocument: CharacterSheet.#openCultureDocument,
|
||||||
openSpeciesDocument: CharacterSheet.#openSpeciesDocument,
|
openSpeciesDocument: CharacterSheet.#openSpeciesDocument,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||||
const {ActorSheetV2} = foundry.applications.sheets
|
const {ActorSheetV2} = foundry.applications.sheets
|
||||||
|
|
||||||
export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
|
|
@ -18,8 +18,7 @@ export class CreatureSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
removeAttack: CreatureSheet.#removeAttack,
|
removeAttack: CreatureSheet.#removeAttack,
|
||||||
addAttack: CreatureSheet.#addAttack,
|
addAttack: CreatureSheet.#addAttack,
|
||||||
roll: CreatureSheet.#dieRoll,
|
roll: CreatureSheet.#dieRoll,
|
||||||
editImage: ActorSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,7 @@ export class EquipmentSheet extends HandlebarsApplicationMixin(DocumentSheetV2)
|
||||||
resizable: true,
|
resizable: true,
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
editImage:
|
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage
|
||||||
DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||||
const {ActorSheetV2} = foundry.applications.sheets
|
const {ActorSheetV2} = foundry.applications.sheets
|
||||||
const {ContextMenu} = foundry.applications.ux
|
|
||||||
|
|
||||||
export class GroupSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
export class GroupSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
|
|
||||||
|
|
@ -22,7 +21,7 @@ export class GroupSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
roll: GroupSheet.#dieRoll,
|
roll: GroupSheet.#dieRoll,
|
||||||
editImage: ActorSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||||
openEmbeddedDocument: GroupSheet.#openEmbeddedDocument,
|
openEmbeddedDocument: GroupSheet.#openEmbeddedDocument,
|
||||||
openActorDocument: GroupSheet.#openActorDocument,
|
openActorDocument: GroupSheet.#openActorDocument,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
const {HandlebarsApplicationMixin} = foundry.applications.api
|
const {HandlebarsApplicationMixin, DocumentSheetV2} = foundry.applications.api
|
||||||
const {DocumentSheetV2, ActorSheetV2} = foundry.applications.sheets
|
const {ActorSheetV2} = foundry.applications.sheets
|
||||||
|
|
||||||
export class MerchantSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
export class MerchantSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
|
|
||||||
|
|
@ -20,7 +20,7 @@ export class MerchantSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
resizable: true,
|
resizable: true,
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
editImage: MerchantSheet.editImage,
|
editImage: DocumentSheetV2.DEFAULT_OPTIONS.actions.editImage,
|
||||||
editServiceImage: MerchantSheet.#editServiceImage,
|
editServiceImage: MerchantSheet.#editServiceImage,
|
||||||
editNewServiceImage: MerchantSheet.#editNewServiceImage,
|
editNewServiceImage: MerchantSheet.#editNewServiceImage,
|
||||||
addNewService: MerchantSheet.#addNewService,
|
addNewService: MerchantSheet.#addNewService,
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
<div class="head-data">
|
<div class="head-data">
|
||||||
|
|
||||||
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}"/>
|
<img class="profile-img" src="{{img}}" data-action="editImage" data-edit="img" title="{{name}}"/>
|
||||||
|
|
||||||
<div class="sidebar-element resource-bar">
|
<div class="sidebar-element resource-bar">
|
||||||
<label>LeP: {{this.lep}}</label><span class="resource-fill lep" style="width: {{this.lepper}}%"></span>
|
<label>LeP: {{this.lep}}</label><span class="resource-fill lep" style="width: {{this.lepper}}%"></span>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue