League of Extraordinary FoundryVTT Developers

LOE

League of Extraordinary FoundryVTT Developers

Join the community to ask questions about League of Extraordinary FoundryVTT Developers and get answers from other members.

Join

commissions

package-development

system-development

other-topics

workgroups

development

package-ideas

package-compatibility

pixijs-canvas-shaders

progress-reports

dev-guides-and-docs

ui-ux-sheets-forms

hooks

development-basics

manifest-plus

tools-and-workflow

active-effects

wiki

dnd5e-dev

package-stewardship

swade-dev

typescript

starfinder-dev

lancer-dev

pathfinder1e-dev

foundryvtt-v10-research

coc7-dev

a5e-dev

v10-updatathon

svnsea2e-dev

package-jam-2022

blackflag-dev

api-announcements

Tagger Code Review

Would anyone be keen to code review Tagger? I'd like to git better 😄 https://github.com/Haxxer/FoundryVTT-Tagger...

mergeObject

mergeObject is a beast of a function which lets you smash two objects together and that options argument lets you control how exactly you want to merge things. Argument 1: Source Object --> What we are merging into (this is going to be mutated by default) Argument 2: Mod Object --> What we are applying to the Source ...

custom hud element

Maybe I'm missing something simple here. I'm making my own custom hud element (NOT based on a Foundry Class) and am wondering what's the easiest way to make it draggable/movable. Any suggestions? I saw the draggable class which at least changes the cursor, but no dragging can actually happen yet (assuming I need a handler somewhere but don't want to reinvent the wheel.)

Dynamically get Object property from user input

Anyone know how I can do this? I have an Actor (myactor) and I'd like to have an input box which the user can use to refer to any of its properties, by typing in a path (i.e. @data.abilities.str.proficiency). How can I get that property within my script after they type in the box?...

Scroll Into View troubles

Anyone know why Element.scrollIntoViewIfNeeded() is working, but Element.scrollIntoView() isn't? The IfNeeded version is apparently "Non-Standard" https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoViewIfNeeded Not sure what I should do here... Could someone test which works best on your Foundry instance?...
No description

Overlay hiding stars

Hey y'all! I've run into a general CSS/design problem that I'm kinda stumped on solving. In the image the red circles are highlighting the star(s) in the constellation that are overlaid by my absolute positioned elements and therefore are uninteractable without stretching to some insane dimensions. Any suggestions? I've thought about maybe adding a margin to the image but that just makes the scrolling even worse :(...
No description

Document Timestamps

Is there a way to find the timestamp of the last edit made to a Document?

Temporary Documents

Is there a built-in way to create temporary entities? Like entities wich are not stored in the database, but remains in memory for .update etc

Actor Updating

question for ya'll, simple update issue i'm seeing that i'm sure someone understands. with my convenient effects module, i'm attempting to handle the spell Aid, which grants +5 healing and +5 max HP for the duration. i'm writing code to specifically do this, because active effects for this kind of stuff doesn't work. here's what i got ``` /** * Adds actor data changes for specific effects...

Colour stuff

here let's make a thread

Random Numbers

yeah that was basically exactly what I would suggest. Here's rough code, untested. ```js const x = ...; let allowedNumbers = Array.from(new Array(360)).map((_, i) => i + 1).filter(i => Math.abs(x - i) > 15 && Math.abs(x - i) < 100 && (i < 50 || i > 150));...