This commit is contained in:
WBHarry 2026-01-02 04:52:53 +01:00
parent db8c2e29c1
commit 4596efd921
3 changed files with 3 additions and 11 deletions

View file

@ -1016,14 +1016,6 @@
"spell": "Spell",
"grimoire": "Grimoire"
},
"EnvironmentIcons": {
"city": "City",
"dungeon": "Dungeon",
"mountain": "Mountain",
"social": "Social",
"tree": "Tree",
"water": "Water"
},
"EnvironmentType": {
"exploration": {
"label": "Exploration",

View file

@ -96,11 +96,11 @@ export default class DHContextMenu extends foundry.applications.ux.ContextMenu {
* Trigger a context menu event in response to a normal click on a additional options button.
* @param {PointerEvent} event
*/
static triggerContextMenu(event, elementSelector) {
static triggerContextMenu(event) {
event.preventDefault();
event.stopPropagation();
const { clientX, clientY } = event;
const selector = elementSelector ?? '[data-item-uuid]';
const selector = '[data-item-uuid]';
const target = event.target.closest(selector) ?? event.currentTarget.closest(selector);
target?.dispatchEvent(
new PointerEvent('contextmenu', {

View file

@ -1,6 +1,6 @@
import ForeignDocumentUUIDArrayField from '../fields/foreignDocumentUUIDArrayField.mjs';
/* Foundry does not add any system data for subtyped Scenes. The data model is therefore mainly for reference until this changes.
/* Foundry does not add any system data for subtyped Scenes. The data model is therefore used by instantiating a new instance of it for sceneConfigSettings.mjs.
Needed dataprep and lifetime hooks are handled in documents/scene.
*/
export default class DHScene extends foundry.abstract.DataModel {