Comments (2)
Sample use case: adding feats with the Actor's image:
Hooks.on('tidy5e-sheet.preCreateItem', (owner, createData) => {
if (createData.type !== 'feat') {
return;
}
const defaultImg = CONFIG.DND5E.defaultArtwork.Item.feat;
const isGoingToUseDefaultImg = (createData.img ?? defaultImg) === defaultImg;
if (isGoingToUseDefaultImg) {
createData.img = owner.img;
}
});
from foundry-vtt-tidy-5e-sheets.
Added Active Effect hook also.
Use case, adding AE with author's img:
Hooks.on('tidy5e-sheet.preCreateActiveEffect', (owner, createData) => {
createData.icon = owner.img;
})
from foundry-vtt-tidy-5e-sheets.
Related Issues (20)
- Show Players a Token image by Right Clicking on NPC portrait and "Show Token" broken when is the Token is using wildcards in path. HOT 7
- bug: Loot weight tag in expandable item description is showing [object Object] instead of weight HOT 1
- feat: Context Menu Options for Assigning To Section / Action Section, and Use Default Section / Action Section HOT 1
- [Suggestion] sharable/linkable group containers. HOT 3
- feat: Create Tidy Sheet for Tasha's Cauldron Magical Tattoos HOT 4
- [BUG] Variant Encumberance + Midi item edit issue
- bug: Unable to simplify formula due to an error | t2.evaluateSync is not a function HOT 4
- compat: Walled Templates
- bug: Some Containers won't open HOT 1
- [BUG] Monk's Sound Enhancements button missing from Tidy sheet. HOT 1
- dnd5e: 3.3.0 Compatibility: Diagnose and Resolve Errors HOT 2
- Can't enable module HOT 3
- `calculateDeterministicBonus` doesn't always handle non-deterministic tokens correctly. HOT 3
- dnd5e 3.3.x: Charge/Uncharge Context Menu Options
- dnd5e 3.3.x: Migration Needed - Bonds, Ideals, Flaws for all creatures
- dnd5e 3.3.x: Migration Needed - Spell Source
- feat: Inline Container Capacity on Table Row
- dnd5e 3.3.x: NPC Rest, fully on system now
- dnd5e 3.3.x: Review Spellbook Calculations HOT 1
- feat: Tidy Tool - Bulk Assign Source Classes for Actor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foundry-vtt-tidy-5e-sheets.