ilthid stop drag

Actually, would it be possible to modify the core function that allows people to click and drag tokens in the first place?
BM
Big Man773d ago
Oh, thanks. I didn't think about using that functionality. Avoids clogging the channel nicely.
UU
Unknown User773d ago
BM
Big Man773d ago
Thanks a lot for the links, I'll save that somewhere. One of the reasons why I'm asking these random questions is because I can't really look into it right now, so I'm just asking around, hoping that more veteran devs will just know off the top of their heads. I didn't even know it was called monkey-patching, so I thought that was another module, haha! But yes, that's what I had in mind.
UU
Unknown User773d ago
BM
Big Man773d ago
I already looked it up since you mentioned it, thanks! I'll have to figure out how to use it properly. Randomly sharing my thoughts, but I might be using the Hook "preupdatetoken" to check if the token was only moved one square. Now that I think about it the "drag and drop" method wasn't the issue as much as making sure that it moves one square at a time to remove the proper amount of "movement points".
UU
Unknown User773d ago
Want results from more Discord servers?
Add your server
More Posts
1.6.x mid-milestone update@dnd5e - **No Action Required** Milestone 1.6.0 is 69% Complete (_nice_) <https://gitlab.com/foundPlugin ContributorsI'm very proud to be the maintainer of a module (Export Sheet to PDF) that is getting many, many conmore-hooks-itemroll-hooksFor those of you interested in such things, I have hacked together a way to inject hooks into the mipreHooks5eJSON.stringify jankI discovered that the problem is JSON.stringify, not parselayersTIL about CSS Layers. https://developer.mozilla.org/en-US/docs/Web/CSS/@layer ```css @layer utilitiHitDice hooks MRI just added my first merge request 😄 <https://gitlab.com/foundrynet/dnd5e/-/merge_requests/495>advantage shennaneginsdevmode extension brainstormhttps://github.com/mdn/webextensions-examples/tree/master/devtools-panelsSaving Functions as module settings@wasp I remember you asked about saving functions as settings (which quickly turned into stringifyinnew consumable typesTried adding localization strings for some new consumable types, but keep getting this ("`DND5E.Consspell-compendium-5e alpha1Overriding onDropItem & onSortItemYou'd override them in your sheet class.getter & setter wrapper for settingsI'm trying to use a getter & setter pair as an interface for `game.settings.get` and `game.settings.scrollable tab contentsIt is possible, and you're firmly in the css and DOM structure side of development with this line ofJr devI'm cleaning out my bookmarks and accidentally came back to this article. Potentially useful startinHTCPackage: `hero-creation-tool`System Specific CSSI'm not 100% about this, but it is worth watching out that your solution doesn't actually end up beiadvancement-wipCommander register apitalking about permissions, im working on the registering api for the Commander, and I wanted to ask