93 Commits

Author SHA1 Message Date
Cristian Deenen
631fdbcccb v1.4.12 2022-09-07 04:55:51 +02:00
Cristian Deenen
9a7088a310 v1.4.11 2022-09-05 01:42:15 +02:00
Material Foundry
033a7351e4 Merge pull request #97 from kyamsil/update_pf2e_3.8.2
Updating pf2e again
2022-09-01 03:14:07 +02:00
kyamsil
be7f837f7d Updating pf2e again 2022-06-12 20:24:30 +01:00
Cristian Deenen
79cfc5769a v1.4.10 2022-05-30 02:06:57 +02:00
Cristian Deenen
fc7dcff3b0 version check hotfix 2022-05-29 16:09:14 +02:00
Cristian Deenen
abb883c8b8 Starfinder conditions fix 2022-04-19 12:31:45 +02:00
Cristian Deenen
8cf974455a v1.4.9 2022-04-16 04:29:57 +02:00
Material Foundry
e7e9b84227 Merge pull request #95 from kyamsil/update_pf2e_3.8.2
Fixed rolls and conditions to work with latest pf2e version
2022-04-16 00:13:00 +02:00
kyamsil
108c955ac2 Revamped Spellbook handling and clicking for all types 2022-04-11 02:31:35 +01:00
kyamsil
4d320a5f6c Added color ring based on proficiency levels for skills and saves (pf2e and dnd5e) 2022-04-08 20:26:33 +01:00
kyamsil
ccacd3e26e Changed initiative rolling so it adds to combat without dialog 2022-04-07 23:03:48 +01:00
kyamsil
d3c2c6465d Some clean up and checks for special types of actors 2022-04-07 03:00:51 +01:00
kyamsil
bc0804bc08 Fixed rolls and conditions to work with latest pf2e version 2022-04-06 21:36:48 +01:00
CDeenen
49bc188dde v1.4.8 2021-12-22 23:04:06 +01:00
CDeenen
dce419d7c3 v1.4.7 2021-12-20 03:41:38 +01:00
Material Foundry
4566b8ef53 Merge pull request #91 from ElfFriend-DnD/Master
chore: update gm screen api call
2021-12-17 02:03:59 +01:00
Material Foundry
1f55b324c5 Merge pull request #85 from InnerGI/patch-1
Fixing undefined device when looping over buttonContext.
2021-12-17 02:03:39 +01:00
Material Foundry
a6a6cd170e Merge pull request #84 from JackDCondon/Master
Forbidden Lands System
2021-12-17 02:03:10 +01:00
Andrew Krigline
cc8588bf4d chore: update gm screen api call 2021-11-23 09:57:34 -05:00
Logan Marin
117a1fb59d Fixing undefined device when looping over buttonContext. 2021-10-23 21:48:13 -05:00
Jack Condon
888a2971fb Support for monster attack and raw item quantity. 2021-10-19 01:21:04 +11:00
Jack Condon
c74d27610a Push Finished Forbidden Lands,
All stats have been added into the rolling
2021-10-19 00:48:01 +11:00
Jack Condon
f4d02cf296 Added System doc
System doc added and it loads
2021-10-17 00:16:34 +11:00
CDeenen
874d9c8fb6 v1.4.6 2021-09-07 22:49:16 +02:00
Material Foundry
66b8406615 Merge pull request #81 from kyamsil/pf2e_refresh
Pf2e refresh
2021-09-07 22:24:44 +02:00
kyamsil
e6c54a2b13 Fix FlatFooted condition handling 2021-09-06 03:53:22 +01:00
kyamsil
c01f9ec566 Added support for Lore Skills, Perception and Initiative. Additional skill and saves icons 2021-08-25 23:10:39 +01:00
kyamsil
7bd06d7797 Cleanup 2021-08-03 00:51:51 +01:00
kyamsil
2fd5f81891 Adding management of actions and strikes 2021-08-03 00:42:26 +01:00
kyamsil
e8df118ce1 Defaulting to rollItemMacro. Fixes for spell and spell uses 2021-08-02 01:42:55 +01:00
kyamsil
6e22fef160 Merge branch 'Master' into pf2e_refresh 2021-08-01 22:57:28 +01:00
kyamsil
3a52ed28b4 Change the way conditions with values are handled 2021-08-01 22:48:08 +01:00
CDeenen
6c840cbf59 v1.4.5 2021-07-30 00:07:58 +01:00
CDeenen
e58d9ca757 v1.4.5 2021-07-27 21:56:50 +02:00
CDeenen
ce28b2da97 Merge branch 'Master' of https://github.com/CDeenen/MaterialDeck into Master 2021-07-20 02:03:34 +02:00
Material Foundry
9c1f549791 Merge pull request #79 from lhayhurst/feature/wfrp4
WFRP4e implementation
2021-07-20 01:57:37 +02:00
CDeenen
28212f03e2 readme update 2021-07-14 02:02:05 +02:00
Lyle hayhurst
22debde812 Merge remote-tracking branch 'CDeenen/Master' into feature/wfrp4 2021-06-20 00:05:01 -05:00
Lyle hayhurst
26afbae66b Final bits.
with @solo
2021-06-20 00:03:44 -05:00
Lyle hayhurst
a5655f46dd getting skill bonuses showing 2021-06-07 19:44:36 -05:00
Lyle hayhurst
b4fe337824 Added characteristics
with @cdeendan and @echobold
2021-06-07 15:21:35 -05:00
Material Foundry
69442aec39 Merge pull request #78 from lhayhurst/feature/roll-item-refactoring
Added rollItem() family of methods
2021-06-07 14:46:19 +02:00
Lyle hayhurst
9e12b7cd84 fix item roll 2021-06-06 11:18:35 -05:00
Lyle hayhurst
5c6a4a4223 add impl of rollitem 2021-06-06 11:14:25 -05:00
Lyle hayhurst
57812d0863 Merge branch 'feature/roll-item-refactoring' into feature/wfrp4 2021-06-06 11:12:16 -05:00
Lyle hayhurst
560c3a573f Added rollItem() family of methods 2021-06-06 09:23:47 -05:00
Lyle hayhurst
cffa2318f7 better return type. 2021-06-06 08:54:47 -05:00
Lyle hayhurst
ec207fa658 added item display, item rolling 2021-06-04 09:02:52 -05:00
Lyle hayhurst
9ffa796eeb added item types 2021-06-04 08:14:28 -05:00
Lyle hayhurst
2dcbfbe096 added basics of getItems() 2021-06-03 08:42:08 -05:00
Lyle hayhurst
87a031ae44 added support for fate and wounds. 2021-06-02 23:50:12 -05:00
Lyle hayhurst
63bda666b5 renamed to wfrp4e 2021-06-02 08:15:04 -05:00
Material Foundry
6b8ca86fe2 Merge pull request #74 from BrotherSharper/Master
ja.json update
2021-06-02 03:12:21 +02:00
Lyle hayhurst
efbbdf7760 WIP comit
with @solo
2021-06-01 19:57:44 -05:00
CDeenen
3b30f7d439 Update issue templates 2021-06-02 02:00:31 +02:00
Material Foundry
318c16d013 Create FUNDING.yml 2021-06-02 01:46:07 +02:00
BrotherSharper
1dcdcd9c0b Merge branch and update ja.json 2021-06-01 21:03:10 +09:00
BrotherSharper
cf95255a47 ja.json update 2021-06-01 21:01:11 +09:00
CDeenen
ebdc1b5e5c v1.4.4 2021-05-26 02:02:47 +02:00
Material Foundry
07a3bdd837 Merge pull request #70 from BrotherSharper/Master
add japanese localisaton
2021-05-23 17:40:26 +02:00
BrotherSharper
08fdde939a add japanese localisaton 2021-05-19 10:35:54 +09:00
CDeenen
484b7a0b7f v1.4.3 2021-05-05 01:00:18 +02:00
CDeenen
bf8c5c0076 v1.4.2 2021-04-23 02:13:09 +02:00
CDeenen
e229abc3ee v1.4.1 2021-04-21 23:32:05 +02:00
CDeenen
51119f42ea v1.4.0 2021-04-21 18:27:03 +02:00
CDeenen
42e4f8f0d8 merge fix 2021-04-21 18:26:10 +02:00
CDeenen
c3ee0a76aa v1.4.0 2021-04-21 18:23:02 +02:00
Material Foundry
2264d018c2 Update changelog.md 2021-04-18 21:55:15 +02:00
CDeenen
8fa32838d8 v1.3.3 2021-04-13 02:30:25 +02:00
CDeenen
1552ae6fe8 v1.3.3 2021-04-13 02:30:10 +02:00
CDeenen
cc9bcf4770 v1.3.2 2021-03-11 02:28:26 +01:00
CDeenen
7d4fd1e8b1 readme fix 2021-02-27 05:14:56 +01:00
CDeenen
780e06d581 Merge branch 'Master' of https://github.com/CDeenen/MaterialDeck into Master 2021-02-27 05:09:23 +01:00
CDeenen
64983ca0cb v1.3.1 2021-02-27 05:07:47 +01:00
CDeenen
dd534488da Update settings.js 2021-02-25 07:54:20 +01:00
CDeenen
7e2796316e Merge branch 'Master' of https://github.com/CDeenen/MaterialDeck into Master 2021-02-25 06:49:29 +01:00
CDeenen
7fa5352459 v1.3.0 2021-02-25 06:48:27 +01:00
CDeenen
c31cea4c64 Update README.md 2021-02-08 16:46:52 +01:00
CDeenen
f994e64fc7 v1.2.3 2021-02-04 05:03:34 +01:00
CDeenen
f0c1b0e1e0 v1.2.2 2021-02-02 05:32:08 +01:00
CDeenen
cc5dc9ab63 v1.2.1 2021-01-07 05:40:07 +01:00
CDeenen
64fd6cb132 Merge branch 'Master' of https://github.com/CDeenen/MaterialDeck into Master 2021-01-07 05:39:02 +01:00
CDeenen
888b089e7b v1.2.1 2021-01-07 05:38:16 +01:00
CDeenen
959b9c9e4e Add files via upload 2021-01-02 05:19:06 +01:00
CDeenen
afaf1c9799 Delete Black.png 2021-01-02 05:18:50 +01:00
CDeenen
2947c54eb8 v1.2.0 2020-12-28 05:31:59 +01:00
CDeenen
561e3f4bd0 Update README.md 2020-12-19 08:01:28 +01:00
CDeenen
33f27047b1 changelog fix 2020-12-12 19:32:07 +01:00
CDeenen
7c532f5155 v1.1.1 2020-12-12 19:17:34 +01:00
CDeenen
e62e82795b v1.1.1 2020-12-12 19:16:07 +01:00
CDeenen
91e07e79c5 changelog fix 2020-12-09 03:32:32 +01:00
CDeenen
fc471ce400 v1.1.0 2020-12-09 03:22:22 +01:00
249 changed files with 10611 additions and 2556 deletions

12
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: MaterialFoundry
open_collective: # Replace with a single Open Collective username
ko_fi: materialfoundry
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

28
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''
---
**Setup**
- OS: [e.g. windows]
- Browser: [e.g. chrome, safari, Foundry app]
- Module version: [e.g. 1.2.5]
- Foundry version: [e.g. 0.8.6]
- Gaming system & version: [e.g. dnd5e 1.3.3]
- Any other modules enabled: [yes/no]
**Describe the bug**
A clear and concise description of what the bug is.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Console Log**
Please check the console (F12) to see if there are any errors and also include them.
**Additional context**
Add any other context about the problem here.

View File

@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEATURE]"
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

10
.github/ISSUE_TEMPLATE/other-issues.md vendored Normal file
View File

@@ -0,0 +1,10 @@
---
name: Other issues
about: For any other issues
title: ''
labels: ''
assignees: ''
---

45
.github/workflows/main.yml vendored Normal file
View File

@@ -0,0 +1,45 @@
name: Release Creation
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# get part of the tag after the `v`
- name: Extract tag version number
id: get_version
uses: battila7/get-version-action@v2
# Substitute the Manifest and Download URLs in the module.json
- name: Substitute Manifest and Download Links For Versioned Ones
id: sub_manifest_link_version
uses: microsoft/variable-substitution@v1
with:
files: 'module.json'
env:
version: ${{steps.get_version.outputs.version-without-v}}
url: https://github.com/${{github.repository}}
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
# Create a zip file with all files required by the module to add to the release
- run: zip -r ./module.zip MaterialDeck.js module.json README.md DEVGUIDE.md changelog.md css/ wiki/ img/ lang/ src/ templates/
# Create a release for this specific version
- name: Update Release with Files
id: create_version_release
uses: ncipollo/release-action@v1
with:
allowUpdates: true # Set this to false if you want to prevent updating existing releases
name: ${{ github.event.release.name }}
draft: ${{ github.event.release.unpublished }}
prerelease: ${{ github.event.release.prerelease }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: './module.json, ./module.zip'
tag: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body }}

40
DEVGUIDE.md Normal file
View File

@@ -0,0 +1,40 @@
# Dev Guide
In addition to this repo, you will also need to check out the [MaterialDeck_SD github repo](https://github.com/CDeenen/MaterialDeck_SD).
## Module Development
### Make a new system.js file
In the [src/systems](src/systems) directory, create a new system file by copying and pasting a similar system to it, or use template.js; for example, `cp demonlord.js wfrp4.js`
You then need to go through all the functions in there and make sure that the correct data is set.
### Update TokenHelper
In [src/systems/TokenHelper.js](src/systems/TokenHelper.js), you need to add an `import {}` for your new system.
In the same file, in the setSystem() function, you need to wire in your system to the if/else block.
## Debugging
It's possible to debug on the Stream Deck, so you can do `console.log`. Just follow the instructions [from elgato here](https://developer.elgato.com/documentation/stream-deck/sdk/create-your-own-plugin/). After editing the code for the plugin, you need to either refresh by refreshing the debug window, or by deselecting the current button, and selecting it again.
When you go to the debugging page, there should be multiple options. With the property inspector open, you should connect to the one with property inspector in its name. If you go to to propertyinspector/js/common.js, near the top there's the debugEn variable. Set it to true, and you should get tons of messages, especially if you change any settings.
In the module, in MaterialDeck.js, at line 60, there's //console.log("Received",data);. If you uncomment that, it'll log everything that's send from the SD to the module. Might be helpful for debugging.
## Streamdeck
To enable logging on the streamdeck, [follow these instructions](https://developer.elgato.com/documentation/stream-deck/sdk/create-your-own-plugin/) from Elgato.
The plugin in Windows is located at (Windows) `AppData/Roaming/Elgato/StreamDeck/Plugins/com.cdeenen.materialdeck.sdPlugin`
In `propertyinspector/js/common.js::getStats()` there are various functions that are used to get the relevant options to show up in the SD plugin. Each array element has a value and a name, you should keep the value the same, but the name can be whatever you like. I think you'll be able to figure out how to add stuff for wfrp by looking at the others.
## Property discovery
In a Foundry client browser instance, if you go to the dev console, you can browser your tokens via the `canvas.tokens` path, for example `canvas.tokens.children[0].children[0].actor.data`.
## Module Deployment
If you make changes to files in this project, you'll need to copy the changed files to your Foundry install folder, probably found here: `C:\Users\$USER\AppData\Local\FoundryVTT\Data\modules\MaterialDeck`.
If you change the `MaterialDeck_SD` code (for example, `propertyinspector\js\common.js`), you will need to copy that file to the Elgato streamdeck plugins directory, probably found here: `C:\Users\$USER\AppData\Roaming\Elgato\StreamDeck\Plugins\com.cdeenen.materialdeck.sdPlugin`.

View File

@@ -1,26 +1,39 @@
import {registerSettings} from "./src/settings.js";
import {StreamDeck} from "./src/streamDeck.js";
import {TokenControl} from "./src/token.js";
import {Move} from "./src/move.js";
import {MacroControl} from "./src/macro.js";
import {CombatTracker} from "./src/combattracker.js";
import {PlaylistControl} from "./src/playlist.js";
import {SoundboardControl} from "./src/soundboard.js";
import {OtherControls} from "./src/othercontrols.js";
import { registerSettings } from "./src/settings.js";
import { StreamDeck } from "./src/streamDeck.js";
import { TokenControl } from "./src/actions/token.js";
import { MacroControl } from "./src/actions/macro.js";
import { CombatTracker } from "./src/actions/combattracker.js";
import { PlaylistControl } from "./src/actions/playlist.js";
import { SoundboardControl } from "./src/actions/soundboard.js";
import { OtherControls } from "./src/actions/othercontrols.js";
import { ExternalModules } from "./src/actions/external.js";
import { SceneControl } from "./src/actions/scene.js";
import { downloadUtility, compareVersions, compatibleCore } from "./src/misc.js";
import { TokenHelper } from "./src/systems/tokenHelper.js";
export const minimumSDversion = "1.4.11";
export const minimumMSversion = "1.0.2";
export var streamDeck;
export var tokenControl;
var move;
export var macroControl;
export var combatTracker;
export var playlistControl;
export var soundboard;
export var otherControls;
export var externalModules;
export var sceneControl;
export var tokenHelper;
export const moduleName = "MaterialDeck";
export var selectedTokenId;
export let gamingSystem = "dnd5e";
export let hotbarUses = false;
export let calculateHotbarUses;
export let sdVersion;
export let msVersion;
let ready = false;
let activeSounds = [];
let controlTokenTimer;
let updateDialog;
//CONFIG.debug.hooks = true;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -36,6 +49,8 @@ let wsOpen = false; //Bool for checking if websocket has ever been o
let wsInterval; //Interval timer to detect disconnections
let WSconnected = false;
//let furnace = game.modules.get("furnace");
/*
* Analyzes the message received
*
@@ -47,63 +62,152 @@ async function analyzeWSmessage(msg){
//console.log("Received",data);
if (data.type == "connected" && data.data == "SD"){
console.log("streamdeck connected to server");
const msg = {
target: "SD",
type: "init",
system: getGamingSystem(),
coreVersion: game.version.split('.')[0]
}
ws.send(JSON.stringify(msg));
if (data.MSversion) msVersion = data.MSversion;
if (data.SDversion) sdVersion = data.SDversion;
console.log("streamdeck connected to server", msVersion);
streamDeck.resetImageBuffer();
}
if (data.type == "version" && data.source == "SD") {
sdVersion = data.version;
const sdCompatible = compareVersions(minimumSDversion,sdVersion);
const msCompatible = compareVersions(minimumMSversion,msVersion);
if ((!sdCompatible || !msCompatible) && updateDialog == undefined) {
let content = "";
if (!sdCompatible && !msCompatible)
content = game.i18n.localize("MaterialDeck.SdMsUpdateRequired")
else if (!sdCompatible)
content = game.i18n.localize("MaterialDeck.SdUpdateRequired")
else
content = game.i18n.localize("MaterialDeck.MsUpdateRequired")
const sd = sdCompatible ? 'display:none' : ''
const ms = msCompatible ? 'display:none' : ''
content += `
<table>
<tr>
<th style='width:40%'>
<th style='width:30%'>${game.i18n.localize("MaterialDeck.DownloadUtility.Current")}</th>
<th style='width:30%'>${game.i18n.localize("MaterialDeck.DownloadUtility.Minimum")}</th>
</tr>
<tr style="${sd}">
<td>Stream Deck Plugin</td>
<td><center>${sdVersion}</center></td>
<td><center>${minimumSDversion}</center></td>
</tr>
<tr style="${ms}">
<td>Material Server</th>
<td><center>${msVersion}</center></td>
<td><center>${minimumMSversion}</center></td>
<tr>
</table>
`
//else if (!sdCompatible) contents += `The Stream Deck plugin version you're using is v${data.version}, which is incompatible with this version of the module.<br>Update to v${minimumSDversion} or newer.`;
updateDialog = new Dialog({
title: "Material Deck: Update Needed",
content,
buttons: {
download: {
icon: '<i class="fas fa-download"></i>',
label: "Download Utility",
callback: () => new downloadUtility()
},
ignore: {
icon: '<i class="fas fa-times"></i>',
label: "Ignore"
}
},
default: "download"
});
updateDialog.render(true);
}
}
if (data.type == 'newDevice') {
streamDeck.newDevice(data.iteration,data.device);
return;
}
if (data == undefined || data.payload == undefined) return;
const action = data.action;
const event = data.event;
const context = data.context;
const coordinates = data.payload.coordinates;
if (coordinates == undefined) coordinates = 0;
const settings = data.payload.settings;
const device = data.device;
const name = data.deviceName;
const type = data.deviceType;
if (data.data == 'init'){
}
if (event == 'willAppear' || event == 'didReceiveSettings'){
if (coordinates == undefined) return;
streamDeck.setScreen(action);
streamDeck.setContext(action,context,coordinates,settings);
await streamDeck.setContext(device,data.size,data.deviceIteration,action,context,coordinates,settings,name,type);
if (game.settings.get(moduleName, 'devices')?.[device]?.enable == false) return;
if (action == 'token'){
tokenControl.active = true;
tokenControl.update(selectedTokenId);
tokenControl.pushData(canvas.tokens.controlled[0]?.id,settings,context,device);
}
else if (action == 'macro')
macroControl.update(settings,context);
macroControl.update(settings,context,device);
else if (action == 'combattracker')
combatTracker.update(settings,context);
combatTracker.update(settings,context,device);
else if (action == 'playlist')
playlistControl.update(settings,context);
playlistControl.update(settings,context,device);
else if (action == 'soundboard')
soundboard.update(settings,context);
soundboard.update(settings,context,device);
else if (action == 'other')
otherControls.update(settings,context);
otherControls.update(settings,context,device);
else if (action == 'external')
externalModules.update(settings,context,device);
else if (action == 'scene')
sceneControl.update(settings,context,device);
}
else if (event == 'willDisappear'){
streamDeck.clearContext(action,coordinates);
if (coordinates == undefined) return;
streamDeck.clearContext(device,action,coordinates,context);
}
else if (event == 'keyDown'){
if (game.settings.get(moduleName, 'devices')?.[device]?.enable == false) return;
if (action == 'token')
tokenControl.keyPress(settings);
else if (action == 'move')
move.keyPress(settings);
else if (action == 'macro')
macroControl.keyPress(settings);
else if (action == 'combattracker')
combatTracker.keyPress(settings,context);
combatTracker.keyPress(settings,context,device);
else if (action == 'playlist')
playlistControl.keyPress(settings,context);
playlistControl.keyPress(settings,context,device);
else if (action == 'soundboard')
soundboard.keyPressDown(settings);
else if (action == 'other')
otherControls.keyPress(settings);
otherControls.keyPress(settings,context,device);
else if (action == 'external')
externalModules.keyPress(settings,context,device);
else if (action == 'scene')
sceneControl.keyPress(settings);
}
else if (event == 'keyUp'){
if (game.settings.get(moduleName, 'devices')?.[device]?.enable == false) return;
if (action == 'soundboard'){
soundboard.keyPressUp(settings);
}
@@ -118,7 +222,10 @@ async function analyzeWSmessage(msg){
*/
function startWebsocket() {
const address = game.settings.get(moduleName,'address');
ws = new WebSocket('ws://'+address+'/');
const url = address.startsWith('wss://') ? address : ('ws://'+address+'/');
ws = new WebSocket(url);
ws.onmessage = function(msg){
//console.log(msg);
@@ -128,6 +235,7 @@ function startWebsocket() {
}
ws.onopen = function() {
messageCount = 0;
WSconnected = true;
ui.notifications.info("Material Deck "+game.i18n.localize("MaterialDeck.Notifications.Connected") +": "+address);
wsOpen = true;
@@ -138,7 +246,9 @@ function startWebsocket() {
ws.send(JSON.stringify(msg));
const msg2 = {
target: "SD",
type: "init"
type: "init",
system: getGamingSystem(),
coreVersion: game.version.split('.')[0]
}
ws.send(JSON.stringify(msg2));
clearInterval(wsInterval);
@@ -148,15 +258,28 @@ function startWebsocket() {
clearInterval(wsInterval);
wsInterval = setInterval(resetWS, 10000);
}
let messageCount = 0;
/**
* Try to reset the websocket if a connection is lost
*/
function resetWS(){
if (wsOpen) ui.notifications.warn("Material Deck: "+game.i18n.localize("MaterialDeck.Notifications.Disconnected"));
else ui.notifications.warn("Material Deck: "+game.i18n.localize("MaterialDeck.Notifications.ConnectFail"));
WSconnected = false;
startWebsocket();
const maxMessages = game.settings.get(moduleName, 'nrOfConnMessages');
if (wsOpen) {
ui.notifications.warn("Material Deck: "+game.i18n.localize("MaterialDeck.Notifications.Disconnected"));
wsOpen = false;
messageCount = 0;
WSconnected = false;
startWebsocket();
}
else if (ws.readyState == 3){
if (maxMessages == 0 || maxMessages > messageCount) {
messageCount++;
const countString = maxMessages == 0 ? "" : " (" + messageCount + "/" + maxMessages + ")";
ui.notifications.warn("Material Deck: "+game.i18n.localize("MaterialDeck.Notifications.ConnectFail") + countString);
}
WSconnected = false;
startWebsocket();
}
}
export function sendWS(txt){
@@ -164,6 +287,27 @@ export function sendWS(txt){
ws.send(txt);
}
export function isEmpty(obj) {
for(var key in obj) {
if(obj.hasOwnProperty(key))
return false;
}
return true;
}
export function getPermission(action,func) {
const role = game.user.role-1;
const settings = game.settings.get(moduleName,'userPermission');
if (action == 'ENABLE') return settings.enable[role];
else return settings.permissions?.[action]?.[func]?.[role];
}
function getGamingSystem() {
const systemOverride = game.settings.get(moduleName,'systemOverride');
gamingSystem = (systemOverride == undefined || systemOverride == null || systemOverride == '') ? game.system.id : systemOverride;
return gamingSystem;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Hooks
@@ -174,52 +318,87 @@ export function sendWS(txt){
* Ready hook
* Attempt to open the websocket
*/
Hooks.once('ready', ()=>{
enableModule = (game.settings.get(moduleName,'Enable')) ? true : false;
game.socket.on(`module.MaterialDeck`, (payload) =>{
//console.log(payload);
if (payload.msgType != "playSound") return;
playTrack(payload.trackNr,payload.src,payload.play,payload.repeat,payload.volume);
});
Hooks.once('ready', async()=>{
await registerSettings();
enableModule = (game.settings.get(moduleName,'Enable')) ? true : false;
for (let i=0; i<64; i++)
activeSounds[i] = false;
getGamingSystem();
if (enableModule == false) return;
if (game.user.isGM == false) {
ready = true;
return;
}
startWebsocket();
soundboard = new SoundboardControl();
streamDeck = new StreamDeck();
tokenControl = new TokenControl();
move = new Move();
macroControl = new MacroControl();
combatTracker = new CombatTracker();
playlistControl = new PlaylistControl();
otherControls = new OtherControls();
externalModules = new ExternalModules();
sceneControl = new SceneControl();
tokenHelper = new TokenHelper();
game.socket.on(`module.MaterialDeck`, async(payload) =>{
//console.log(payload);
if (payload.msgType == "playSound") soundboard.playSound(payload.trackNr,payload.src,payload.play,payload.repeat,payload.volume);
else if (game.user.isGM && payload.msgType == "playPlaylist") {
const playlist = playlistControl.getPlaylist(payload.playlistNr);
playlistControl.playPlaylist(playlist,payload.playlistNr);
}
else if (game.user.isGM && payload.msgType == "playTrack") {
const playlist = playlistControl.getPlaylist(payload.playlistNr);
const sounds = playlist.data.sounds;
for (let track of sounds)
if (track._id == payload.trackId)
playlistControl.playTrack(track,playlist,payload.playlistNr)
}
else if (game.user.isGM && payload.msgType == "stopAllPlaylists")
playlistControl.stopAll(payload.force);
else if (game.user.isGM && payload.msgType == "soundboardUpdate") {
await game.settings.set(moduleName,'soundboardSettings',payload.settings);
const payloadNew = {
"msgType": "soundboardRefresh"
};
game.socket.emit(`module.MaterialDeck`, payloadNew);
}
else if (game.user.isGM == false && payload.msgType == "soundboardRefresh" && enableModule)
soundboard.updateAll();
else if (game.user.isGM && payload.msgType == "macroboardUpdate") {
await game.settings.set(moduleName,'macroSettings',payload.settings);
const payloadNew = {
"msgType": "macroboardRefresh"
};
game.socket.emit(`module.MaterialDeck`, payloadNew);
}
else if (game.user.isGM == false && payload.msgType == "macroboardRefresh" && enableModule)
macroControl.updateAll();
else if (game.user.isGM && payload.msgType == "playlistUpdate") {
await game.settings.set(moduleName,'playlists',payload.settings);
const payloadNew = {
"msgType": "playlistRefresh"
};
game.socket.emit(`module.MaterialDeck`, payloadNew);
}
else if (game.user.isGM == false && payload.msgType == "playlistRefresh" && enableModule)
playlistControl.updateAll();
});
let soundBoardSettings = game.settings.get(moduleName,'soundboardSettings');
let macroSettings = game.settings.get(moduleName, 'macroSettings');
let array = [];
for (let i=0; i<64; i++) array[i] = "";
let arrayVolume = [];
for (let i=0; i<64; i++) arrayVolume[i] = "50";
let arrayZero = [];
for (let i=0; i<64; i++) arrayZero[i] = "0";
if (macroSettings.color == undefined){
game.settings.set(moduleName,'macroSettings',{
macros: array,
color: arrayZero
});
}
if (soundBoardSettings.colorOff == undefined){
game.settings.set(moduleName,'soundboardSettings',{
if (game.user.isGM) {
let soundBoardSettings = game.settings.get(moduleName,'soundboardSettings');
let macroSettings = game.settings.get(moduleName, 'macroSettings');
let array = [];
for (let i=0; i<64; i++) array[i] = "";
let arrayVolume = [];
for (let i=0; i<64; i++) arrayVolume[i] = "50";
let arrayZero = [];
for (let i=0; i<64; i++) arrayZero[i] = "0";
if (macroSettings.color == undefined){
game.settings.set(moduleName,'macroSettings',{
macros: array,
color: arrayZero
});
}
const settings = {
playlist: "",
sounds: array,
colorOn: arrayZero,
@@ -227,76 +406,104 @@ Hooks.once('ready', ()=>{
mode: arrayZero,
toggle: arrayZero,
volume: arrayVolume
});
};
if (soundBoardSettings.colorOff == undefined){
game.settings.set(moduleName,'soundboardSettings',settings);
}
}
if (enableModule == false) return;
if (getPermission('ENABLE') == false) {
ready = true;
return;
}
startWebsocket();
const hotbarUsesTemp = game.modules.get("illandril-hotbar-uses");
if (hotbarUsesTemp != undefined) hotbarUses = true;
});
export function playTrack(soundNr,src,play,repeat,volume){
if (play){
volume *= game.settings.get("core", "globalInterfaceVolume");
let howl = new Howl({src, volume, loop: repeat, onend: (id)=>{
if (repeat == false){
activeSounds[soundNr] = false;
}
},
onstop: (id)=>{
activeSounds[soundNr] = false;
}});
howl.play();
activeSounds[soundNr] = howl;
}
else {
activeSounds[soundNr].stop();
activeSounds[soundNr] = false;
}
function updateActor(id) {
const token = tokenHelper.getTokenFromActorId(id)
tokenControl.update(token.id);
}
Hooks.on('updateToken',(scene,token)=>{
if (enableModule == false || ready == false) return;
let tokenId = token._id;
if (tokenId == selectedTokenId)
tokenControl.update(selectedTokenId);
if (tokenId == canvas.tokens.controlled[0]?.id) tokenControl.update(canvas.tokens.controlled[0]?.id);
if (macroControl != undefined) macroControl.updateAll();
});
Hooks.on('updateActor',(scene,actor)=>{
Hooks.on('updateActor',(actor)=>{
if (enableModule == false || ready == false) return;
let children = canvas.tokens.children[0].children;
for (let i=0; i<children.length; i++){
if (children[i].actor.id == actor._id){
let tokenId = children[i].id;
if (tokenId == selectedTokenId)
tokenControl.update(selectedTokenId);
}
}
updateActor(actor.id);
if (macroControl != undefined) macroControl.updateAll();
});
Hooks.on('createActiveEffect',(data)=>{
if (enableModule == false || ready == false) return;
updateActor(data.parent.id);
return;
});
Hooks.on('deleteActiveEffect',(data)=>{
if (enableModule == false || ready == false) return;
updateActor(data.parent.id);
return;
});
Hooks.on('onActorSetCondition',(data)=>{
if (enableModule == false || ready == false) return;
updateActor(data.actor.id);
return;
});
Hooks.on('controlToken',(token,controlled)=>{
if (enableModule == false || ready == false) return;
if (controlled) {
selectedTokenId = token.data._id;
tokenControl.update(compatibleCore('10.0') ? token.id : token.data._id);
if (controlTokenTimer != undefined) {
clearTimeout(controlTokenTimer);
controlTokenTimer = undefined;
}
}
else {
selectedTokenId = undefined;
controlTokenTimer = setTimeout(function(){tokenControl.update(canvas.tokens.controlled[0]?.id);},10)
}
tokenControl.update(selectedTokenId);
if (macroControl != undefined) macroControl.updateAll();
});
Hooks.on('updateOwnedItem',()=>{
if (macroControl != undefined) macroControl.updateAll();
})
Hooks.on('renderHotbar', (hotbar)=>{
if (enableModule == false || ready == false) return;
macroControl.hotbar(hotbar.macros);
if (macroControl != undefined) macroControl.hotbar(hotbar.macros);
});
Hooks.on('render', (app)=>{
if (enableModule == false || ready == false) return;
if (app.id == "hotbar" && macroControl != undefined) macroControl.hotbar(app.macros);
});
Hooks.on('renderCombatTracker',()=>{
if (enableModule == false || ready == false) return;
combatTracker.updateAll();
tokenControl.update(selectedTokenId);
if (combatTracker != undefined) combatTracker.updateAll();
if (tokenControl != undefined) tokenControl.update(canvas.tokens.controlled[0]?.id);
});
Hooks.on('renderActorSheet',()=>{
if (enableModule == false || ready == false) return;
if (tokenControl != undefined) tokenControl.update();
});
Hooks.on('renderPlaylistDirectory', (playlistDirectory)=>{
if (enableModule == false || ready == false) return;
playlistControl.updateAll();
if (playlistControl != undefined) playlistControl.updateAll();
});
Hooks.on('closeplaylistConfigForm', (form)=>{
@@ -305,29 +512,59 @@ Hooks.on('closeplaylistConfigForm', (form)=>{
playlistControl.updateAll();
});
Hooks.on('lightingRefresh',()=>{
if (enableModule == false || ready == false) return;
if (tokenControl != undefined) tokenControl.update();
});
Hooks.on('pauseGame',()=>{
if (enableModule == false || ready == false) return;
otherControls.updateAll();
});
Hooks.on('renderSidebarTab',()=>{
Hooks.on('renderSidebarTab',(app)=>{
const options = {
sidebarTab: app.tabName,
renderPopout: app.popOut
}
if (enableModule == false || ready == false) return;
otherControls.updateAll();
if (otherControls != undefined) otherControls.updateAll(options);
if (sceneControl != undefined) sceneControl.updateAll();
if (document.getElementsByClassName("roll-type-select")[0] != undefined)
document.getElementsByClassName("roll-type-select")[0].addEventListener('change',function(){
if (otherControls != undefined) otherControls.updateAll(options);
})
});
Hooks.on('closeSidebarTab',(app)=>{
const options = {
sidebarTab: app.tabName,
renderPopout: false
}
if (otherControls != undefined) otherControls.updateAll(options);
});
Hooks.on('changeSidebarTab',()=>{
if (enableModule == false || ready == false) return;
if (otherControls != undefined) otherControls.updateAll();
});
Hooks.on('updateScene',()=>{
if (enableModule == false || ready == false) return;
sceneControl.updateAll();
externalModules.updateAll();
otherControls.updateAll();
});
Hooks.on('renderSceneControls',()=>{
if (enableModule == false || ready == false) return;
if (enableModule == false || ready == false || otherControls == undefined) return;
otherControls.updateAll();
externalModules.updateAll();
});
Hooks.on('targetToken',(user,token,targeted)=>{
if (enableModule == false || ready == false) return;
if (token.id == selectedTokenId) tokenControl.update(selectedTokenId);
if (token.id == canvas.tokens.controlled[0]?.id) tokenControl.update(canvas.tokens.controlled[0]?.id);
});
Hooks.on('sidebarCollapse',()=>{
@@ -345,21 +582,72 @@ Hooks.on('closeCompendium',()=>{
otherControls.updateAll();
});
Hooks.on('renderJournalSheet',()=>{
Hooks.on('renderCompendiumBrowser',()=>{
if (enableModule == false || ready == false) return;
otherControls.updateAll();
otherControls.updateAll({renderCompendiumBrowser:true});
});
Hooks.on('closeJournalSheet',()=>{
Hooks.on('closeCompendiumBrowser',()=>{
if (enableModule == false || ready == false) return;
otherControls.updateAll();
otherControls.updateAll({renderCompendiumBrowser:false});
});
Hooks.on('renderJournalSheet',(sheet)=>{
if (enableModule == false || ready == false) return;
otherControls.updateAll({
hook:'renderJournalSheet',
sheet:sheet
});
});
Hooks.on('closeJournalSheet',(sheet)=>{
if (enableModule == false || ready == false) return;
otherControls.updateAll({
hook:'closeJournalSheet',
sheet:sheet
});
});
Hooks.on('gmScreenOpenClose',(html,isOpen)=>{
if (enableModule == false || ready == false) return;
externalModules.updateAll({gmScreen:isOpen});
});
Hooks.on('ShareVision', ()=>{
if (enableModule == false || ready == false) return;
externalModules.updateAll();
})
Hooks.on('NotYourTurn', ()=>{
if (enableModule == false || ready == false) return;
externalModules.updateAll();
})
Hooks.on('pseudoclockSet', ()=>{
if (enableModule == false || ready == false) return;
externalModules.updateAll();
})
Hooks.on('about-time.clockRunningStatus', ()=>{
if (enableModule == false || ready == false) return;
externalModules.updateAll();
})
Hooks.on('updateTile',()=>{
if (enableModule == false || ready == false) return;
externalModules.updateAll();
});
Hooks.once('init', ()=>{
//CONFIG.debug.hooks = true;
registerSettings(); //in ./src/settings.js
//registerSettings(); //in ./src/settings.js
});
Hooks.once('canvasReady',()=>{
ready = true;
});
});
Hooks.on("soundscape", (data) => {
externalModules.newSoundscapeData(data);
});

View File

@@ -31,11 +31,6 @@ The functions are categorized into actions. Here is a list of the available acti
<li>Toggle token visibility, combat state, conditions</li>
</ul>
<li>Move Action: Move selected token or the canvas</li>
<ul>
<li>Move token (in a specified direction)</li>
<li>Move canvas (in a specified direction)</li>
<li>Zoom canvas in/out</li>
</ul>
<li>Macro Actions: Execute macros</li>
<ul>
<li>Execute macro from hotbar</li>
@@ -71,9 +66,12 @@ Instructions and more info can be found in the <a href="https://github.com/CDeen
Module manifest: https://raw.githubusercontent.com/CDeenen/MaterialDeck/Master/module.json
## Software Versions & Module Incompatibilities
<b>Foundry VTT:</b> Tested on 0.7.7<br>
<b>Foundry VTT:</b> Tested on 0.7.9 - 0.8.5<br>
<b>Module Incompatibilities:</b> None known.<br>
## Developer Guide
See the [developer guide](./DEVGUIDE.md) for a guide on how to add new systems to `MaterialDeck`.
## Feedback
If you have any suggestions or bugs to report, feel free to create an issue, contact me on Discord (Cris#6864), or send me an email: cdeenen@outlook.com.
@@ -81,6 +79,9 @@ If you have any suggestions or bugs to report, feel free to create an issue, con
<b>Author:</b> Cristian Deenen (Cris#6864 on Discord)<br>
<br>
Special thanks to Asmodeus#7588 who made this module possible by generously donating a Stream Deck XL
<br>
Please consider supporting me on <a href="https://www.patreon.com/materialfoundry">Patreon</a>, and feel free to join the Material Foundry <a href="https://discord.gg/3hd4G6TkmA">Discord</a> server.
## Abandonment
Abandoned modules are a (potential) problem for Foundry, because users and/or other modules might rely on abandoned modules, which might break in future Foundry updates.<br>

View File

@@ -1,8 +1,474 @@
# Changelog Material Deck Module
### v1.4.12 - 07-09-2022
Fixes:
<ul>
<li>Some settings did not have a default value, which caused errors for new users in v10</li>
</ul>
### v1.4.11 - 05-09-2022
Fixes:
<ul>
<li>Fixed system autodetection bug, where it would not always correctly detect the system</li>
<li>Token Action => Stats/On Click: Pf2e intimidation did not work</li>
<li>Playlist Action => Fix unrestricted playback and 'play playlist'</li>
<li>User Config: Fix settings saving issue</li>
</ul>
Additions:
<ul>
<li>Token Action => Inventory: Added roll options to roll for to hit and damage (dnd5e only)</li>
<li>Token Action => Inventory/Features/Spellbook: Select by name or id</li>
<li>Token Action => Features: Added option to filter active and passive abilities (dnd5e only)</li>
<li>Token Action => Items/Spells/Features: Add offset options</li>
<li>Token Action => OnClick => SetVision: Added checkboxes to configure what settings should be changed</li>
<li>Combat Tracker => Function: Added option to roll initiative for combatants</li>
<li>Combat Tracker => OnClick: Added target and untarget token option</li>
<li>Other Actions => Darkness Control: Added 'Transition to Day' and 'Transition to Night' options</li>
<li>Other Actions => Darkness Control: Added animation time option for darkness changes</li>
</ul>
Other:
<ul>
<li>Made compatible with Foundry v10 (see notes below), dropped compatibility with Foundry v8</li>
<li>Token Action => On Click => Call Macro: Removed macro target, since I can't get it to work properly</li>
<li>Token Action => On Click => Movement: Tokens now snap to the grid when moved</li>
<li>Token Action => OnClick => SetVision: update configuration to v9/v10 standards</li>
<li>Token Action => Handle Conditions: Removed the increase/decrease option for all systems but pf2e (it only works in pf2e)</li>
<li>System Override: Changed to a dropdown menu with all supported systems, instead of a string field</li>
<li>All ui elements and classes have been given unique identifiers to prevent module incompatibilities</li>
</ul>
V10 Compatibility Notes:
<ul>
<li>The following systems have been tested in v10: dnd5e, pf1e, forbidden lands, wfrp4. Other systems have not been updated to v10 yet at the time of this update</li>
<li>Changing the token vision mode through MD does not work properly, appears to be a bug in Foundry</li>
<li>Wildcard images currently don't seem to work in v10, so they have not been tested</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2+ (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.4.11 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.4.10 - 30-05-2022
Fixes:
<ul>
<li>Stream Deck plugin v1.4.10 was not properly recognized as compatible</li>
</ul>
Additions:
<ul>
<li>Material Server version is now displayed in the Download Utility (MS v1.1.0+)</li>
</ul>
### v1.4.9 - 16-04-2022
Fixes:
<ul>
<li>PF2e: Fixed rolls and conditions for compatibility with latest pf2e version. Thanks to Kyamsil</li>
<li>Token Action => Set Vison: Setting light is working again</li>
<li>Other Actions => Roll Dice: Roll result would show as 'NaN' in Foundry v9, this is fixed</li>
</ul>
Additions:
<ul>
<li>Added support for the Starfinder system</li>
<li>External Modules => Added support for 'Monks Active Tile Triggers'</li>
<li>Added 'System Override' module setting. If your system is not supported, MD defaults to 5e. Here you can choose a supported system that is most similar to yours and have Material Deck use that system instead.</li>
<li>Token Action => Displayed Stats: A colored border is drawn around certain skills, saves, etc to indicate proficiency (compatible systems: dnd5e, pf2e). Thanks to Kyamsil</li>
</ul>
### v1.4.8 - 22-12-2021
Fixes:
<ul>
<li>'Device Configuration' would not save its settings properly</li>
</ul>
### v1.4.7 - 20-12-2021
Fixes:
<ul>
<li>External Modules => GM Screen: Changed to new api (thanks to akrigline)</li>
<li>Fixed an issue where SDs would not iterate properly, causing errors (thanks to InnerGI)</li>
<li>Fixed support for FXMaster. Requires FXMaster v2.0.0 or later (not officially released yet)</li>
</ul>
Additions:
<ul>
<li>Added compatibility for Foundry V0.9</li>
<li>Added Forbidden Lands system (thanks to JackDCondon)</li>
<li>Other Controls => Control Buttons: Added offset for 'Displayed Controls' and 'Displayed Tools'</li>
<li>Added 'Device Configuration' to the module settings. You can use this to configure specific SD devices to not connect to a client</li>
<li>Playlist Action => Added option to play next or previous track</li>
</ul>
### v1.4.6 - 07-09-2021
Fixes:
<ul>
<li>Token Action => Move token: If the user is not the GM, tokens can no longer move if game is paused, and they can no longer move through walls</li>
<li>Modifications made in the Property Inspector now immediately get saved, instead of when user deselects the setting (changed 'onchange' to 'oninput' event)</li>
</ul>
Additions:
<ul>
<li>Playlist Action: Added a 'Pause All' option</li>
</ul>
Other:
<ul>
<li>PF2E compatibility updated (thanks @kyamsil)</li>
</ul>
### v1.4.5 - 27-07-2021
Fixes:
<ul>
<li>Combat Tracker Action => Turn Display: If only 'Display Round' was enabled, the vertical alignment would be off. This has been fixed.</li>
<li>WebSocket client no longer creates duplicate connections</li>
<li>Token Action => If 'Display Uses/Quantity' is enabled for an item that has no maximum uses/quantity, the uses/quantity border is now consistently black.</li>
<li>Update dialog that appears if the SD plugin needs to be updated now only appears once</li>
</ul>
Additions:
<ul>
<li>External Modules: Added support for the Soundscape module. Requires Soundscape v1.0.3</li>
<li>Macro Action => Advanced Macros is now supported for calling macros with arguments</li>
<li>Combat Tracker Action => Function: Added option to select the combatant after changing the turn</li>
<li>Other Actions => Added 'Set Roll Mode' which sets the roll mode for all rolls to public, private gm, blind gm or self roll</li>
<li>Added support for wfrp4e (thanks to sozin#8622 & eccobold#3541)</li>
<li>Added DEVGUIDE.md to help developers add support for new systems (thanks to sozin#8622 & eccobold#3541)</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.4.5 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.4.4 - 26-05-2021
Fixes:
<ul>
<li>Some small fixes to make the module compatible with Foundry 0.8.5</li>
</ul>
Additions:
<ul>
<li>Token Action => Added 'Page-Wide Token' option. All buttons on the current page (where the page is the collection of buttons that are shown) that have this enabled will use the same token</li>
<li>Token Action => On Click: Added 'Set Page-Wide Token' option, so you can configure buttons to set the page-wide token by pressing a button</li>
<li>Token Action: Added a 'Mode' select box. Setting it to 'Token' is the same as pre v1.4.4. New are the inventory, features and spellbook options that can be used to auto-populate buttons with items, features and spells.</li>
<li>Added a 'Clear Page' and 'Clear All' button to the soundboard and macroboard configuration</li>
<li>Added import and export buttons to the soundboard and macroboard configuration (only imports/exports metadata, not the actual audio files or the macros)</li>
<li>The number of connection error messages you will get is now configurable in the module settings</li>
<li>Added a download utility to the module settings, so you can easily version-check with the SD plugin and Material Server, download them and download profiles</li>
<li>Added Japanese localization (thanks BrotherSharper and Asami). All of the new features have not yet been translated</li>
</ul>
Other:
<ul>
<li><b>(Breaking)</b> The Move Action has been removed. Moving tokens is not in the Token Action (it's an on click setting) and moving the canvas is in the Other Actions.</li>
<li>Major change to the soundboard and macroboard configuration. It is now displayed as pages of 16 sounds or 32 macros each, you can browse through the pages using the arrow keys at the top.</li>
<li>There is no longer a limit to the amount of sounds/macros you can assign to the soundboard/macroboard, but please note that at some point you might experience performance issues if there's too many sounds/macros.</li>
<li>Removed the 'Stream Deck Model' module setting, since it's not that useful</li>
<li>Token Action has been revamped to make it clearer and easier to implement new game systems</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.4.4 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.4.3 - 05-05-2021
Fixes:
<ul>
<li>Fixed issue where the module would break if multiple Stream Decks were configured in the Stream Deck application, but not all of them had MD actions assigned to them</li>
<li>In the User Permission Configuration, the Scene Directory hint wasn't displayed properly</li>
<li>Got rid of warnings that popped up on initialization when using MD as a player</li>
<li>Fixed issue where the soundboard and macro board could not be configured by players, if it hadn't first been configured by a GM</li>
</ul>
Other
<ul>
<li>Added compatibility for Foundry 0.8.2. Some functions no longer work in 0.8.1 (they still do in 0.7.9)</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.4.2 (unchanged): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.4.2 - 23-04-2021
Fixes:
<ul>
<li>Last update I fixed the combat tracker, but this broke something in the Token Action (if you had a token selected, it would sometimes assumed you didn't have it selected), both should now work</li>
<li>Token Action: Plugin wouldn't save text boxes (such as 'Prepend Title' or 'Custom') if they were empty</li>
<li>Token Action: Improved performance, especially when 'Token' is set to 'Selected Token', and you're selecting a new token while you had another token selected<li>
<li>Token Action => Stats => Skill Modifier: (dnd5e) Would only display the modifier, now it displays the total value (so with proficiency, if applicable)</li>
<li>Combat Tracker => Mode: Function => Function: Would not always properly load the 'Turn Display' options</li>
<li>Playlist Action: Background color would not show, and 'Off Color' wouldn't work for 'Offset'</li>
<li>Macro Action => Macro Board => Offset: Background color would not show</li>
<li>Scene Action => Offset: Background color would not show</li>
</ul>
Additions:
<ul>
<li>Token Action: Changed the way how you can select what icon will be displayed. Instead of a true/false, there is now a selection box where you can select between 'None', 'Token Icon', 'Actor Icon' and 'Default', where the last one will display the default icon, for example the selected stat to display, the condition, etc</li>
<li>Token Action => Stats & On Click => Custom: Textbox now automatically resizes to fit the content</li>
<li>Token Action => On Click => Dice Roll: Added 'Roll Mode' option, where you can set to roll as 'default' (displays dialog), 'normal', 'advantage' or 'disadvantage'. All options, except for 'default', will ignore the previously added 'Token Roll Options' in 'Other Actions'</li>
</ul>
Other:
<ul>
<li>Big code cleanup of the SD plugin</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.4.2 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.4.1 - 21-04-2021
Fixes:
<ul>
<li>Previous update broke the combat tracker, should now be fixed</li>
</ul>
### v1.4.0 - 21-04-2021
Additions:
<ul>
<li>Support for connecting multiple Stream Decks at the same time. Please note that performance decreases with each extra Stream Deck</li>
<li>Other Actions: Added 'Token Roll Options'. This can toggle token rolls between showing a dialog and skipping the dialog and rolling normally or with advantage or disadvantage</li>
<li>If the SD plugin version you're using is outdated, you now get a pop-up to notify you of this and direct you to the download page</li>
<li>Added a module setting to set how dark the default white images should be. Can be lowered for improved readability of the text</li>
<li>Token Action => Stats: Added option to prepend text to the title, so you can set the stat to, for example, strength, and put 'STR: ' in the prepend textbox to display, for example, 'STR: +2'</li>
</ul>
Fixes:
<ul>
<li>Token Action => Skill Roll: Setting wasn't saved in SD app</li>
<li>Token Action => Roll Ability: Rolling ability checks was broken for some systems</li>
<li>Token Action => Stats => Display HP: Read overlay indicating HP in the heart icon was also drawn when 'Display Token Icon' was enabled</li>
<li>Token Action => Stats: Added default images for all dnd5e abilities, saves and skills</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.4.0 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.3.3 - 12-04-2021
Additions:
<ul>
<li>Other Actions => Open Sidebar Tab: Action now indicates which sidebar tab is open (only works on Foundry 0.8.x)</li>
<li>Other Actions => Open Sidebar Tab: Added option to create an pop-out (doesn't work for the chat)</li>
<li>Other Actions: Added option to open the pf2e compendium browser</li>
<li>Macro Action: Can now call macros by name</li>
<li>Token Action => On Click: Added option to call a macro. Currently the macro will be applied to the selected token</li>
<li>Token Action => Display Stats: Added saving throws and skill modifiers for most systems</li>
<li>Token Action => OnClick: Added 'Dice Roll' option, which allows you to roll ability checks, saving throws and other things (depending on game system)</li>
<li>Token Action => Stats => Display HP: Made the heart icon dynamic, so the amount that the heart is filled with red depends on the relative amount of hit points of the token. 25% hp means the lower 25% of the heart is red, 50% hp means the lower 50% of the heart is red, etc</li>
<li>Token Action => Stats => Added a '+' before all modifier stats that are bigger than 0</li>
<li>Token Action => Custom OnClick: Added support for calling macros. For instructions, please refer to the documentation: https://github.com/CDeenen/MaterialDeck/wiki/Token-Action#custom-on-click-function</li>
</ul>
Fixes:
<ul>
<li>Other Actions => Pause Game: Pause is now transmitted to all connected clients</li>
<li>Token Action => Display Stats: Fixed movement speed for pf2e</li>
</ul>
Other:
<ul>
<li>Should be compatible with Foundry 0.8.1. Only tested on DnD5e. Please note that any functions that rely on other modules do not work if the other modules are not compatible with 0.8.1</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.3.4 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.3.2 - 11-03-2021
Additions:
<ul>
<li>Added support for the Multi Action provided by the SD app</li>
<li>External Modules Action => Added support for About Time</li>
<li>Token Action => Stats: Added 'Ability Scores', 'Ability Score Modifiers', 'Ability Score Saves' (dnd5e only) and 'Proficiency Bonus'</li>
<li>Token Action => Stats: Added 'HP (box)' option that displays a box with color that changes depending on the HP</li>
<li>Move Action: You can now choose what token should be moved, similar to the Token Action</li>
</ul>
Fixes:
<ul>
<li>Playlist Action => Relative Offset: Fixed issue with displaying the target playlist name</li>
<li>Macro Action: Fixed Hotbar Uses for Shadow of the Demonlord</li>
</ul>
Other:
<ul>
<li>Macro Action: Improved the way Hotbar Uses are displayed, it is now displayed in a box similar to how the module looks in Foundry</li>
<li>Made the way images are generated more flexible to make future additions easier</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.3.2 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.3.1 - 27-02-2021
Additions:
<ul>
<li>Token Action: You can now choose what token should be targeted with the action using: 'Selected Token', 'Token Name', 'Actor Name', 'Token Id' or 'Actor Id'. Added relevant user permissions to the permission configuration</li>
<li>Token Action => On Click: Added options 'Select Token' and 'Center on Token and Select Token'</li>
<li>Playlist Action: Added relative offset mode, with the option to display the offset target name for playlists</li>
<li>Playlist Action => Stop All: Added option to display the name of the playlist at the current offset</li>
</ul>
Fixes:
<ul>
<li>Default user permissions would not be loaded if no previously saved permissions were present, resulting in MD assuming nobody has any permissions</li>
<li>Other Actions => Control Buttons => Lighting Controls: Would create a button for ambient sound instead of lighting</li>
<li>Token Action => Display Token Icon: It used to show the icon, even if unchecked, if no stat with default icon was selected</li>
</ul>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.3.1 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.3.0 - 25-02-2021
Additions:
<ul>
<li>Material Deck can now be used by players. A 'User Permission Configuration' screen has been added to the module settings where the GM can deside what Material Deck functions are available to users</li>
<li>Macro Action: Added support for Illandril's Hotbar Uses (only requires the module to be installed, does not have to be active)</li>
<li>Token Action => OnClick: Added support for CUB conditions</li>
<li>External Modules => Added support for the 'Trigger Happy' module</li>
<li>External Modules => Added support for the 'MookAI' module</li>
<li>External Modules => Added support for the 'Shared Vision' module</li>
<li>External Modules => Added support for the 'Lock View' module</li>
<li>External Modules => Added support for the 'Not Your Turn' module</li>
</ul>
Fixes:
<ul>
<li>Token Action => OnClick: Fixed conditions for pf1e and dnd3.5e</li>
</ul>
Other Changes:
<ul>
<li>Token and Combat Tracker Actions now autodetect the game system</li>
<li>Game-system related settings in the SD app unified and improved</li>
<li>Image Cache setting is no longer considered experimental</li>
</ul>
<b>Note 1: </b>Because the module can now be used by players, some settings have been moved from 'world' settings to 'client' settings. This means that previous settings have been deleted, and they have to be set up again in the module settings.<br>
<b>Note 2: </b>You can give users access to the playlists, macro board and soundboard. Currently, everyone has to share the same configuration, so be careful with giving players permission to configure one of them.<br>
<b>Note 3: </b>Because of the new game system autodetection, some settings for non dnd5e systems might be deleted. You'll have to reconfigure them.<br>
<br>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.3.0 (<b>must be updated!</b>): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.2.3 - 03-02-2021
Fixes:
<ul>
<li>Fixed some issues for the Shadow of the Demon Lord system</li>
</ul>
Other Changes:
<ul>
<li>Improved performance of the 'Playlist Configuration', 'Macro Configuration' and 'Soundboard Configuration' screens</li>
<li>Minor code clean-up</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.2.2 (unchanged): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.2.2 - 02-02-2021
Additions:
<ul>
<li>Added a help button in the module configuration</li>
<li>Token Action: Added support for easy token wildcard image changes</li>
<li>Token Action: Added a comprehensive custom onClick function that can modify token and actor data, with support for basic mathematical expressions</li>
</ul>
Other Changes:
<ul>
<li>Improved GM screen compatibility</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.2.2: https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.2.1 - 07-01-2021
<b>Note:</b> Due to a change in how scene control is handled (moved from 'Other Controls' to its own 'Scene Action'), any actions related to scenes no longer work. You will have to set them up again using the new Scene Action.<br>
<br>
Additions:
<ul>
<li>EXPERIMENTAL: Added an image buffer to prevent resending of images that have already been sent, giving a slight performance boost. Buffer size can be set in the module settings</li>
<li>Token Action => Display Stats: Added option to select a data path for an attribute</li>
<li>External Modules => GM Screen: Open and close the GM screen. Link to module: https://foundryvtt.com/packages/gm-screen/</li>
<li>Other Actions => Roll dice: Roll dice in foundry and select between public roll, private roll, or displaying result on the SD</li>
<li>Scene Action: Added way to create scene selection screen similar to soundboard/macro board. New functions to do this: 'Scene Directory' and 'Scene Offset'</li>
<li>Scene Action: Added 'Active Scene' function</li>
<li>Move Action => Selected Token: Added rotate to and rotate by functions</li>
<li>Token Action => On Click: Added 'Set Vision' option to set the token's vision and light emission</li>
<li>Other Actions => Send Chat Message: Send a message to the Foundry chat</li>
</ul>
Other Changes:
<ul>
<li>Plugin: Scene Action created that replaces Other Actions => Scene Selection</li>
<li>Plugin: Scene Action: Changed 'Any Scene' to 'Scene by Name'</li>
<li>Plugin: Actions are now ordered alphabetically</li>
<li>Plugin: Replaced color strings with color pickers</li>
<li>Various minor bug fixes</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.2.1: https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.2.0 - 28-12-2020
Fixes
<ul>
<li>Incorrect link to some black backgrounds fixed</li>
<li>Token Action: Movement speed wouldn't be displayed for DnD5e 1.2.0</li>
<li>Macro Action => Hotbar: 10th macro would not trigger and display correctly</li>
<li>Combat Tracker Action => Function: Default value would not properly initialize</li>
<li>Other Actions => Darkness Control => Display would not function correctly</li>
<li>Fixed some issues in the SD plugin where correct settings would not be displayed</li>
</ul>
Additions:
<ul>
<li>Added new 'External Modules Action', which will contain all module integrations that don't fit anywhere else</li>
<li>Added support for the Custom Hotbar module in 'Macro Action' => Mode: 'Custom Hotbar'. Link to module: https://foundryvtt.com/packages/custom-hotbar/</li>
<li>Added support for the FxMaster module in 'External Modules Action' => Mode: 'Fx Master'. Link to module: https://foundryvtt.com/packages/fxmaster/</li>
</ul>
### v1.1.1 - 12-12-2020
Fixes
<ul>
<li>Fixed issue where deleting a playlist would cause an error preventing the Soundboard Configuration to show up</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.1.0 (unchanged): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v1.1.0 - 09-12-2020
Fixes
<ul>
<li>Settings would not show for Combat Tracker action</li>
<li>Macro Action => Macro Board default settings fixed</li>
<li>API has been improved, making integration with other hardware/software easier, and making future changes/additions easier</li>
</ul>
Additions:
<ul>
<li>Added support for Pathfinder 1e and Shadow of the Demon Lord</li>
<li>All dialogs that are openable using the SD can now be closed by pressing the button while the dialog is open</li>
<li>Playlist Action & Soundboard Action => Stop All now indicates if there are tracks/playlists/sounds playing</li>
<li>Confirmed Foundry 0.7.8 compatibility</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases <br>
SD plugin v1.1.0: https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### V1.0.1 - 26-11-2020
<ul>
<li>Fixed issue where macro from macroboard wouldn't execute if furnace arguments were not defined</li>
<li>Fixed issue where soundboard wouldn't save if no previous data existed for that sound</li>
<li>Fixed issue where macro from macroboard wouldn't execute if furnace arguments were not defined</li>
<li>Fixed issue where soundboard wouldn't save if no previous data existed for that sound</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
@@ -12,7 +478,7 @@ SD plugin v1.0.0 (unchanged): https://github.com/CDeenen/MaterialDeck_SD/release
### v1.0.0 - 24-11-2020
Release
<ul>
<li>Fixed issue where the last column in 'Soundboard Configuration' would not work properly</li>
<li>Fixed issue where the last column in 'Soundboard Configuration' would not work properly</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
@@ -21,17 +487,17 @@ SD plugin v1.0.0: https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v0.9.2 - 24-11-2020
<ul>
<li>Removed unnecessary errors when module is not fully configured</li>
<li>Solved issue that soundboard config couldn't be saved on a world that hadn't run Material Deck previously</li>
<li>Removed unnecessary errors when module is not fully configured</li>
<li>Solved issue that soundboard config couldn't be saved on a world that hadn't run Material Deck previously</li>
</ul>
### v0.9.1 - 23-11-2020
<ul>
<li>Fixed 'Playlist' action issue where 'TrackNr' wouldn't show</li>
<li>Fixed 'Soundboard Configuration' issue where changing the playlist would reset everything you've changed since last save</li>
<li>'Soundboard Configuration', 'Macro Configuration' and 'Playlist Configuration' now save after each change, and update the SD instantly</li>
<li>Save button has been removed from configuration screens, since it is now redundant</li>
<li>Added support for DnD3.5e and Pathfinder 2e</li>
<li>Fixed 'Playlist' action issue where 'TrackNr' wouldn't show</li>
<li>Fixed 'Soundboard Configuration' issue where changing the playlist would reset everything you've changed since last save</li>
<li>'Soundboard Configuration', 'Macro Configuration' and 'Playlist Configuration' now save after each change, and update the SD instantly</li>
<li>Save button has been removed from configuration screens, since it is now redundant</li>
<li>Added support for DnD3.5e and Pathfinder 2e</li>
</ul>
<b>Note1:</b> In 'Macro Configuration', previously saved Furnace arguments have to be filled in again.<br>
@@ -43,12 +509,12 @@ SD plugin v0.9.1: https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v0.9.0 - 19-11-2020
<ul>
<li>Added support for more playlists</li>
<li>Added playmode setting for each playlist, which overrides the default playmode</li>
<li>Added option to use the file picker to select Soundboard sounds, including support for wildcard names</li>
<li>Fixed issue where macro config screen would not close if the module was disabled</li>
<li>Fixed issue where the layout of the configuration screens would be messed up depending on browser/screen size</li>
<li>Added option to open compendia and journal entries</li>
<li>Added support for more playlists</li>
<li>Added playmode setting for each playlist, which overrides the default playmode</li>
<li>Added option to use the file picker to select Soundboard sounds, including support for wildcard names</li>
<li>Fixed issue where macro config screen would not close if the module was disabled</li>
<li>Fixed issue where the layout of the configuration screens would be messed up depending on browser/screen size</li>
<li>Added option to open compendia and journal entries</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
@@ -57,7 +523,7 @@ SD plugin v0.9.0: https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v0.8.6 - 18-11-2020
<ul>
<li>Added support for the new Material Server app</li>
<li>Added support for the new Material Server app</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
@@ -66,18 +532,18 @@ SD plugin v0.7.3: https://github.com/CDeenen/MaterialDeck_SD/releases<br>
### v0.8.5 - 17-11-2020
<ul>
<li>Added 'Display Icon' to Macro action</li>
<li>Removed background option from 'Macro' => 'Macro Board' => 'Trigger Macro', this is handled in the macro configuration screen</li>
<li>Added 'Background' option in 'Macro' => 'Macro Board' => 'Offset'</li>
<li>Fixed control buttons from not performing action when clicked</li>
<li>Added check for each function to prevent unnecessary searching through the button buffer</li>
<li>Added 'Target', 'Visibility', 'Toggle Combat State' and 'Set Condition' options to the 'Token' action (under 'on click')</li>
<li>Added 'Zoom In' and 'Zoom Out' functions to 'Move' action</li>
<li>Added ability to load icons from web sources</li>
<li>Added support for localization (module only)</li>
<li>Fixed issue where SD buttons would not load properly if Foundry was initialized before the SD, or if Foundry was refreshed</li>
<li>Long words now split up onto multiple lines</li>
<li>Confirmed compatibility with Foundry v0.7.7</li>
<li>Added 'Display Icon' to Macro action</li>
<li>Removed background option from 'Macro' => 'Macro Board' => 'Trigger Macro', this is handled in the macro configuration screen</li>
<li>Added 'Background' option in 'Macro' => 'Macro Board' => 'Offset'</li>
<li>Fixed control buttons from not performing action when clicked</li>
<li>Added check for each function to prevent unnecessary searching through the button buffer</li>
<li>Added 'Target', 'Visibility', 'Toggle Combat State' and 'Set Condition' options to the 'Token' action (under 'on click')</li>
<li>Added 'Zoom In' and 'Zoom Out' functions to 'Move' action</li>
<li>Added ability to load icons from web sources</li>
<li>Added support for localization (module only)</li>
<li>Fixed issue where SD buttons would not load properly if Foundry was initialized before the SD, or if Foundry was refreshed</li>
<li>Long words now split up onto multiple lines</li>
<li>Confirmed compatibility with Foundry v0.7.7</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Server v0.2.4 (no change)<br>
@@ -85,12 +551,12 @@ SD plugin v0.7.2<br>
### v0.8.4 - 11-11-2020
<ul>
<li>In 'Other' action, 'Control Button' mode, add 'Displayed Controls' option</li>
<li>Change 'Other', 'Playlist' and 'Soundboard' actions from background color change to ring color</li>
<li>Macro board fixed</li>
<li>Added proper background color options for 'Other' action</li>
<li>In 'Other' action, control button icons are now properly centered</li>
<li>Newly created actions now show the correct options at the start</li>
<li>In 'Other' action, 'Control Button' mode, add 'Displayed Controls' option</li>
<li>Change 'Other', 'Playlist' and 'Soundboard' actions from background color change to ring color</li>
<li>Macro board fixed</li>
<li>Added proper background color options for 'Other' action</li>
<li>In 'Other' action, control button icons are now properly centered</li>
<li>Newly created actions now show the correct options at the start</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Server v0.2.4 (no change)<br>
@@ -98,7 +564,7 @@ SD plugin v0.7.1<br>
### v0.8.3 - 10-11-2020
<ul>
<li>Fixed compatibility with tokenizer</li>
<li>Fixed compatibility with tokenizer</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Server v0.2.4<br>
@@ -106,8 +572,8 @@ SD plugin v0.7.0<br>
### v0.8.2 - 10-11-2020
<ul>
<li>Initial beta release</li>
<li>Initial beta release</li>
</ul>
<b>Compatible server app and SD plugin:</b><br>
Server v0.2.4<br>
SD plugin v0.7.1<br>
SD plugin v0.7.1<br>

175
css/style.css Normal file
View File

@@ -0,0 +1,175 @@
/*
* Device Config
*/
.materialDeck_devConf_columnLabel {
max-width:30%;
min-width:30%;
text-align: left;
}
.materialDeck_devConf_columnId {
max-width:25%;
min-width:25%;
text-align: left;
text-overflow: hidden;
}
.materialDeck_devConf_columnCB {
width:10%;
text-align: left;
}
/*
* Download Utility
*/
.materialDeck_dlUtil_columnLabel {
width:25%;
text-align: left;
}
.materialDeck_dlUtil_columnVersion {
width:15%;
text-align: left;
}
.materialDeck_dlUtil_columnOS {
width:15%;
}
.materialDeck_dlUtil_columnButton {
width:15%;
}
.materialDeck_dlUtil_button {
width:100%;
}
/*
* Macro Config
*/
.materialDeck_macroConfig_boxed {
border: 1px solid black ;
border-radius: 5px ;
max-width: 166px;
padding: 5px;
margin:2px;
width:10%;
}
.materialDeck_macroConfig_navigationDiv {
width:100%;
display:flex;
flex-direction:row;
}
.materialDeck_macroConfig_navigation {
flex:1;
max-width: 8%;
}
.materialDeck_macroConfig_p {
width:84%;
text-align:center;
padding: 0px 0;
font-size: 20px;
}
.materialDeck_macroConfig_background {
display:flex;
flex-direction:row;
padding-top:10px;
}
/*
* Playlist Config
*/
.materialDeck_plConfig_select {
width: 35%;
max-width: 35%;
}
/*
* Soundboard Config
*/
.materialDeck_sbConfig_boxed {
border: 1px solid black ;
border-radius: 5px ;
max-width: 166px;
height: 300px;
padding: 5px;
margin:2px;
width:10%
}
.materialDeck_sbConfig_navigationDiv {
flex:1;
width:100%;
display:flex;
flex-direction:row;
}
.materialDeck_sbConfig_navigation {
flex:1;
}
.materialDeck_sbConfig_p {
flex:15;
text-align:center;
padding: 0px 0;
font-size: 20px
}
/*
* User Permission Config
*/
header.materialDeck_uPerm_table-header {
background: rgba(0, 0, 0, 0.5);
padding: 5px;
border: 1px solid #191813;
text-align: center;
color: #f0f0e0;
font-weight: bold;
text-shadow: 1px 1px #000;
}
ul.materialDeck_uPerm_permissions-list {
list-style: none;
margin: 0;
padding: 0;
overflow: hidden auto;
scrollbar-width: thin;
}
li.materialDeck_uPerm_permission {
padding: 5px;
border-bottom: 1px solid #7a7971;
}
li.materialDeck_uPerm_permission .form-fields {
justify-content: space-around;
}
li.materialDeck_uPerm_permission input[type="checkbox"] {
margin: 0;
}
.materialDeck_uPerm_index {
flex: 0 0 200px;
text-align: left;
font-weight: bold;
}
.materialDeck_uPerm_hint {
flex: 0 0 100%;
color: #4b4a44;
font-size: 13px;
margin: 5px 0 0;
}
/*
* Help Menu
*/
.materialDeck_helpMenu_expandable {
cursor: pointer;
}
.materialDeck_helpMenu_collapsed {
display:none;
}
.materialDeck_helpMenu_expandableIcon {
border: none;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
img/.thumb/down.png.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
img/.thumb/right.png.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

@@ -0,0 +1,5 @@
combattracker.png: Edited from https://fontawesome.com/icons/fist-raised?style=solid
nextturn.png, previousturn.png: Edited from https://fontawesome.com/icons/arrow-right?style=solid
nextround.png, previousround.png: Edited from https://fontawesome.com/icons/step-forward?style=solid
startcombat.png: Edited from https://fontawesome.com/icons/play?style=solid
stopcombat.png: Edited from https://fontawesome.com/icons/stop?style=solid

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
img/down.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
img/external/.thumb/external.png.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
img/external/.thumb/external@2x.png.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
img/external/.thumb/fxmaster.png.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

2
img/external/SOURCES.txt vendored Normal file
View File

@@ -0,0 +1,2 @@
external.png: Edited from https://fontawesome.com/icons/external-link-alt?style=solid
fxmaster.png: Edited from https://fontawesome.com/icons/magic?style=solid

BIN
img/external/external.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
img/external/external@2x.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
img/external/fxmaster.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

1
img/macro/SOURCES.txt Normal file
View File

@@ -0,0 +1 @@
macro.png: Foundry's icon folder, converted from .svg, original name: dice-target.svg

BIN
img/macro/macro.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
img/macro/macro@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
img/move/.thumb/up.png.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

3
img/move/SOURCES.txt Normal file
View File

@@ -0,0 +1,3 @@
center.png: made by me.
rotatecw.png & rotateccw.png Edited from https://fontawesome.com/icons/sync-alt?style=solid.
All other images taken from freepngimg.com, iverted color and rotated. Source: https://freepngimg.com/png/24691-right-arrow-hd

BIN
img/move/center.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
img/move/center@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
img/move/down.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
img/move/downleft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
img/move/downright.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
img/move/left.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
img/move/right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
img/move/rotateccw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
img/move/rotatecw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
img/move/up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
img/move/upleft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
img/move/upright.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

BIN
img/move/zoomin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
img/move/zoomout.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

3
img/other/SOURCES.txt Normal file
View File

@@ -0,0 +1,3 @@
other.png: Made using https://www.elgato.com/en/gaming/keycreator
cogs.png: Edited from https://fontawesome.com/icons/cogs?style=solid
d20.png: Edited from https://game-icons.net/1x1/delapouite/dice-twenty-faces-twenty.html

BIN
img/other/cogs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
img/other/d20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -0,0 +1,2 @@
decreasedarkness.png: Made using https://www.elgato.com/en/gaming/keycreator
increasedarkness.png: Made using https://www.elgato.com/en/gaming/keycreator

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
img/other/other.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
img/other/other@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@@ -0,0 +1,3 @@
resume.png: Edited from https://fontawesome.com/icons/play?style=solid
pause.png: Edited from https://fontawesome.com/icons/pause?style=solid
playpause.png: Combined resume.png and pause.png

BIN
img/other/pause/pause.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
img/other/pause/resume.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Some files were not shown because too many files have changed in this diff Show More