Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to set Token Images, Portraits, and Handouts from addon assets (include copy/create token) #4192

Merged

Conversation

cwisniew
Copy link
Member

@cwisniew cwisniew commented Jul 1, 2023

Identify the Bug or Feature request

Resolves #4183

Description of the Change

Added a utility class to resolve assets from different locations and the ability to retrieve the asset key from add ons.
Modified the following macro functions to use this new resolver

  • createToken()
  • copyToken()
  • setTokenImage()
  • setTokenPortrait()
  • setTokenHandout()

Possible Drawbacks

Should be none

Documentation Notes

The following macro functions can now use lib:// URIs for assets

  • createToken()
  • copyToken()
  • setTokenImage()
  • setTokenPortrait()
  • setTokenHandout()

the URIs already work with tags so can be used in dialog, frame, chat, and macro buttons. This means they should hopefully be useable everywhere now.

Release Notes

  • Added ability to specify assets for macro functions from lib:// URIs

This change is Reviewable

@cwisniew cwisniew added the feature Adding functionality that adds value label Jul 1, 2023
@cwisniew cwisniew added this pull request to the merge queue Jul 3, 2023
Merged via the queue into RPTools:develop with commit 3334e03 Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[Feature]: Allow functions that set images to use assets directly from addons
2 participants