mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Cleanup
This commit is contained in:
parent
db8c2e29c1
commit
4596efd921
3 changed files with 3 additions and 11 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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', {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue