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

Move roll labels into a handlebars helper #62

Open
orffen opened this issue Jul 26, 2023 · 0 comments
Open

Move roll labels into a handlebars helper #62

orffen opened this issue Jul 26, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@orffen
Copy link
Owner

orffen commented Jul 26, 2023

Pass data from the item/actor into the handlebars helper function to return a formatted roll label.

For example:

Handlebars.registerHelper('localizeRollLabel', function(data) {
  return `${game.i18n.localize('BASICFANTASYRPG.Roll')}: ${game.i18n.localize('TYPES.Item.' + item.type)} - ${item.name}`;
});
@orffen orffen added the enhancement New feature or request label Jul 26, 2023
@orffen orffen added this to the rX milestone Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant