This plugin provides the Resource Tracker block, which can be used to track usage of limited resources (e.g., abilities, spells) in Table-Top Role-Playing Games.
Built with WDS Block Starter.
- Upload the
resource-tracker
folder to the/wp-content/plugins
directory. - Activate the Resource Tracker plugin through the 'Plugins' menu in WordPress.
- Add the 'Resource Tracker' block in a post or page.
- Set the Resource name and total uses available.
- Save and view your page or post.
- Use the Resource's checkboxes to track usage.
- Use the Reset button to reset usage back to 0.
Use this block to track fixed-usage resources, such as spells or special abilities. Click a checkbox to mark one use, until all uses are gone! Then, you can click Reset to regain full usage of the resource, e.g., after a rest.
Feel free to create an issue or PR in the Github repo here.
- Fixed: Updated webpack config and js setup to work with wp-scripts v12.
- Updated: Brought npm packages up to latest versions.
- Fixed: Removed duplicate block wrapper
div
on frontend display.
- Fixed: Changed checkbox mark color to inherit current text color for better accessibility.
- Added: Implemented permissions check callback for custom route.
- Updated: Cleaned up code, comments to be more in line with similar blocks (e.g., Initiative Tracker).
- Updated: Changed checkbox wrapper tag from
p
todiv
. - Fixed: Changed block ID to update only at creation to avoid false-positive post "changes."
- Fixed: Added key prop to checkboxes to address React warnings.
Added: Create Resource Tracker block.