prolice / starwars-silhouette Goto Github PK
View Code? Open in Web Editor NEWManage silhouette in star wars FFG system on foundry vtt
License: MIT License
Manage silhouette in star wars FFG system on foundry vtt
License: MIT License
Is your feature request related to a problem? Please describe.
The "data"
source is hardcoded when reading the content of Image Folders.
This makes it difficult to import image folders when your preferred store is in another FilePicker source
s, like "s3"
or "forgevtt"
.
Describe the solution you'd like
I'd like to request an additional dropdown field in the module's configuration, to allow you to select between "data"
, "s3"
, and "forgevtt"
, so that the module can then use that source when doing FilePicker operations like the browse
or upload
.
Describe alternatives you've considered
A text input for a source
argument could also work, though the average user may find it more difficult to use. If it is possible to list the sources the FilePicker is configured with, that would be helpful for populating a dropdown.
Additional context
I'm a mod on the Forge Discord and Forge users have an Assets Library which behaves similarly to S3 and uses the "forgevtt"
FilePicker source
. Users of this module on The Forge may run into issues since file uploads will go to the Assets Library, but the module always looks for the upload in the "data"
source
.
Other possible alternatives
Forge redirects browse
requests to the "forgevtt"
source when the browsed path doesn't exist in "data"
, but this module includes the default upload directory with the zip file, though they only seem to contain a PURPOSE
file.
If these directories are not necessary and could instead be created dynamically at import time if they don't already exist (ie. do a browse first, then a create if necessary), then the redirect to the "forgevtt"
source
can happen successfully without other changes in the module.
Another possibility is to change the default upload paths for these images to use the Persistent Storage folder which Foundry allows modules to use for updates into the module's own user data, which was first included with https://foundryvtt.com/releases/11.292, which will not only mean that subsequent updates of this module for users won't need a re-import, but Forge can also handle the persistent storage folder's contents with special logic to circumvent the issue.
Persistent Storage. Packages may now declare "persistentStorage": true in manifest JSON files, which will treat any data stored within a "storage" subfolder in the package folder as protected. Any data stored in that folder will not be deleted when the package updates. It is important to note here: uninstalling a module with persistentStorage will still remove that persistent data. This mechanism exists solely to persist data through updates.
Would it be possible to add an option to use the top view silhouette as the token by default rather than the image?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.