Skip to content

Commit

Permalink
Merge pull request #13 from Larkinabout/1.1.0
Browse files Browse the repository at this point in the history
1.1.0
  • Loading branch information
Larkinabout authored Jan 31, 2023
2 parents 653f491 + bff6f03 commit 56c7885
Show file tree
Hide file tree
Showing 10 changed files with 342 additions and 323 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ jobs:
manifest: https://github.com/${{github.repository}}/releases/latest/download/module.json
download: https://github.com/${{github.repository}}/releases/download/${{github.event.release.tag_name}}/module.zip

# Run build
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run build

# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip module.json readme.md LICENSE languages/ scripts/constants.js scripts/defaults.js scripts/token-action-hud-dnd5e.min.js
- run: zip -r ./module.zip module.json readme.md LICENSE languages/ scripts/token-action-hud-dnd5e.min.js

# Create a release for this specific version
- name: Update Release with Files
Expand Down
13 changes: 8 additions & 5 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@
],
"url": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e",
"flags": {},
"version": "1.0.0",
"version": "1.1.0",
"compatibility": {
"minimum": "10",
"verified": "10.291"
},
"esmodules": [
"./scripts/token-action-hud-dnd5e.min.js"
],
"scripts": [
],
"styles": [
Expand Down Expand Up @@ -97,9 +100,9 @@
"type": "module",
"compatibility": [
{
"minimum": "1.0.1",
"maximum": "1.0",
"verified": "1.0.1"
"minimum": "1.1.0",
"maximum": "1.1",
"verified": "1.1.0"
}
]
}
Expand All @@ -110,7 +113,7 @@
}
},
"socket": false,
"manifest": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e/releases/download/1.0.0/module.zip",
"manifest": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e/releases/download/1.1.0/module.zip",
"download": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e/releases/latest/download/module.zip",
"readme": "https://github.com/Larkinabout/fvtt-token-action-hud-dnd5e#readme",
"protected": false,
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Token Action HUD is a repositionable HUD of actions for a selected token.

# Features
- Make rolls directly from the HUD instead of opening your character sheet.
- Use items from the HUD or right-click an item to opens its sheet.
- Use items from the HUD or right-click an item to open its sheet.
- Move the HUD and choose to expand the menus up or down.
- Unlock the HUD to customise categories and subcategories per user, and actions per actor.
- Add your own macros and Journal Entry and Roll Table compendiums.
Expand Down
2 changes: 0 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export default [
'scripts/*/*.js'
],
exclude: [
'scripts/constants.js',
'scripts/defaults.js',
'scripts/token-action-hud-dnd5e.min.js']
},
output: {
Expand Down
2 changes: 1 addition & 1 deletion scripts/action-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ export class ActionHandler extends CoreActionHandler {
cssClass = `toggle${active}`
}
const encodedValue = [actionType, this.actorId, this.tokenId, id].join(this.delimiter)
const img = this.getImage(entity)
const img = CoreUtils.getImage(entity)
const icon1 = this._getActivationTypeIcon(entity?.system?.activation?.type)
let icon2 = null
let info = null
Expand Down
6 changes: 1 addition & 5 deletions scripts/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ export const MODULE = {
/**
* Core module version required by the system module
*/
export const REQUIRED_CORE_MODULE_VERSION = {
full: '1.0.(0+)',
major: '1',
minor: '0'
}
export const REQUIRED_CORE_MODULE_VERSION = '1.1'

/**
* Activation type icons
Expand Down
Loading

0 comments on commit 56c7885

Please sign in to comment.