Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e2796316e | ||
|
|
7fa5352459 | ||
|
|
c31cea4c64 | ||
|
|
f994e64fc7 | ||
|
|
f0c1b0e1e0 | ||
|
|
cc5dc9ab63 | ||
|
|
64fd6cb132 | ||
|
|
888b089e7b | ||
|
|
959b9c9e4e | ||
|
|
afaf1c9799 | ||
|
|
2947c54eb8 | ||
|
|
561e3f4bd0 | ||
|
|
33f27047b1 | ||
|
|
7c532f5155 | ||
|
|
e62e82795b | ||
|
|
91e07e79c5 | ||
|
|
fc471ce400 | ||
|
|
1370544f03 | ||
|
|
7bd2084209 | ||
|
|
0ae6336f52 |
248
MaterialDeck.js
@@ -7,6 +7,8 @@ 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 {ExternalModules} from "./src/external.js";
|
||||
import {SceneControl} from "./src/scene.js";
|
||||
export var streamDeck;
|
||||
export var tokenControl;
|
||||
var move;
|
||||
@@ -15,12 +17,17 @@ export var combatTracker;
|
||||
export var playlistControl;
|
||||
export var soundboard;
|
||||
export var otherControls;
|
||||
export var externalModules;
|
||||
export var sceneControl;
|
||||
|
||||
export const moduleName = "MaterialDeck";
|
||||
export var selectedTokenId;
|
||||
|
||||
let ready = false;
|
||||
let activeSounds = [];
|
||||
|
||||
export let hotbarUses = false;
|
||||
export let calculateHotbarUses;
|
||||
|
||||
//CONFIG.debug.hooks = true;
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -36,6 +43,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,14 +56,31 @@ async function analyzeWSmessage(msg){
|
||||
//console.log("Received",data);
|
||||
|
||||
if (data.type == "connected" && data.data == "SD"){
|
||||
const msg = {
|
||||
target: "SD",
|
||||
type: "init",
|
||||
system: game.system.id
|
||||
}
|
||||
ws.send(JSON.stringify(msg));
|
||||
|
||||
|
||||
console.log("streamdeck connected to server");
|
||||
streamDeck.resetImageBuffer();
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (data.type == "version" && data.source == "SD") {
|
||||
/*
|
||||
console.log(data);
|
||||
const minimumSDversion = game.modules.get("MaterialDeck").data.minimumSDversion.replace('v','');
|
||||
const minimumMSversion = game.modules.get("MaterialDeck").data.minimumMSversion;
|
||||
console.log('SD',minimumSDversion,data.version)
|
||||
if (data.version < minimumSDversion) console.log('SD: nope')
|
||||
else console.log('SD: yes');
|
||||
*/
|
||||
}
|
||||
|
||||
if (data == undefined || data.payload == undefined) return;
|
||||
|
||||
//console.log("Received",data);
|
||||
const action = data.action;
|
||||
const event = data.event;
|
||||
const context = data.context;
|
||||
@@ -62,7 +88,6 @@ async function analyzeWSmessage(msg){
|
||||
if (coordinates == undefined) coordinates = 0;
|
||||
const settings = data.payload.settings;
|
||||
|
||||
|
||||
if (data.data == 'init'){
|
||||
|
||||
}
|
||||
@@ -74,6 +99,8 @@ async function analyzeWSmessage(msg){
|
||||
tokenControl.active = true;
|
||||
tokenControl.update(selectedTokenId);
|
||||
}
|
||||
else if (action == 'move')
|
||||
move.update(settings,context);
|
||||
else if (action == 'macro')
|
||||
macroControl.update(settings,context);
|
||||
else if (action == 'combattracker')
|
||||
@@ -84,6 +111,10 @@ async function analyzeWSmessage(msg){
|
||||
soundboard.update(settings,context);
|
||||
else if (action == 'other')
|
||||
otherControls.update(settings,context);
|
||||
else if (action == 'external')
|
||||
externalModules.update(settings,context);
|
||||
else if (action == 'scene')
|
||||
sceneControl.update(settings,context);
|
||||
}
|
||||
|
||||
else if (event == 'willDisappear'){
|
||||
@@ -104,7 +135,11 @@ async function analyzeWSmessage(msg){
|
||||
else if (action == 'soundboard')
|
||||
soundboard.keyPressDown(settings);
|
||||
else if (action == 'other')
|
||||
otherControls.keyPress(settings);
|
||||
otherControls.keyPress(settings,context);
|
||||
else if (action == 'external')
|
||||
externalModules.keyPress(settings,context);
|
||||
else if (action == 'scene')
|
||||
sceneControl.keyPress(settings);
|
||||
}
|
||||
|
||||
else if (event == 'keyUp'){
|
||||
@@ -122,7 +157,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);
|
||||
@@ -142,7 +180,8 @@ function startWebsocket() {
|
||||
ws.send(JSON.stringify(msg));
|
||||
const msg2 = {
|
||||
target: "SD",
|
||||
type: "init"
|
||||
type: "init",
|
||||
system: game.system.id
|
||||
}
|
||||
ws.send(JSON.stringify(msg2));
|
||||
clearInterval(wsInterval);
|
||||
@@ -168,6 +207,22 @@ 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];
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Hooks
|
||||
@@ -178,26 +233,10 @@ export function sendWS(txt){
|
||||
* Ready hook
|
||||
* Attempt to open the websocket
|
||||
*/
|
||||
Hooks.once('ready', ()=>{
|
||||
Hooks.once('ready', async()=>{
|
||||
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);
|
||||
});
|
||||
|
||||
for (let i=0; i<64; i++)
|
||||
activeSounds[i] = false;
|
||||
|
||||
if (enableModule == false) return;
|
||||
if (game.user.isGM == false) {
|
||||
ready = true;
|
||||
return;
|
||||
}
|
||||
|
||||
startWebsocket();
|
||||
soundboard = new SoundboardControl();
|
||||
streamDeck = new StreamDeck();
|
||||
tokenControl = new TokenControl();
|
||||
@@ -206,7 +245,65 @@ Hooks.once('ready', ()=>{
|
||||
combatTracker = new CombatTracker();
|
||||
playlistControl = new PlaylistControl();
|
||||
otherControls = new OtherControls();
|
||||
externalModules = new ExternalModules();
|
||||
sceneControl = new SceneControl();
|
||||
|
||||
game.socket.on(`module.MaterialDeck`, async(payload) =>{
|
||||
//console.log(payload);
|
||||
if (payload.msgType == "playSound") playTrack(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();
|
||||
|
||||
});
|
||||
|
||||
for (let i=0; i<64; i++)
|
||||
activeSounds[i] = false;
|
||||
|
||||
if (enableModule == false) return;
|
||||
if (getPermission('ENABLE') == false) {
|
||||
ready = true;
|
||||
return;
|
||||
}
|
||||
|
||||
startWebsocket();
|
||||
|
||||
let soundBoardSettings = game.settings.get(moduleName,'soundboardSettings');
|
||||
let macroSettings = game.settings.get(moduleName, 'macroSettings');
|
||||
@@ -234,6 +331,11 @@ Hooks.once('ready', ()=>{
|
||||
volume: arrayVolume
|
||||
});
|
||||
}
|
||||
|
||||
const hotbarUsesTemp = game.modules.get("illandril-hotbar-uses");
|
||||
if (hotbarUsesTemp != undefined) {
|
||||
hotbarUses = true;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@@ -263,6 +365,7 @@ Hooks.on('updateToken',(scene,token)=>{
|
||||
let tokenId = token._id;
|
||||
if (tokenId == selectedTokenId)
|
||||
tokenControl.update(selectedTokenId);
|
||||
if (macroControl != undefined) macroControl.updateAll();
|
||||
});
|
||||
|
||||
Hooks.on('updateActor',(scene,actor)=>{
|
||||
@@ -275,6 +378,7 @@ Hooks.on('updateActor',(scene,actor)=>{
|
||||
tokenControl.update(selectedTokenId);
|
||||
}
|
||||
}
|
||||
if (macroControl != undefined) macroControl.updateAll();
|
||||
});
|
||||
|
||||
Hooks.on('controlToken',(token,controlled)=>{
|
||||
@@ -286,22 +390,27 @@ Hooks.on('controlToken',(token,controlled)=>{
|
||||
selectedTokenId = undefined;
|
||||
}
|
||||
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('renderCombatTracker',()=>{
|
||||
if (enableModule == false || ready == false) return;
|
||||
combatTracker.updateAll();
|
||||
tokenControl.update(selectedTokenId);
|
||||
if (combatTracker != undefined) combatTracker.updateAll();
|
||||
if (tokenControl != undefined) tokenControl.update(selectedTokenId);
|
||||
});
|
||||
|
||||
Hooks.on('renderPlaylistDirectory', (playlistDirectory)=>{
|
||||
if (enableModule == false || ready == false) return;
|
||||
playlistControl.updateAll();
|
||||
if (playlistControl != undefined) playlistControl.updateAll();
|
||||
});
|
||||
|
||||
Hooks.on('closeplaylistConfigForm', (form)=>{
|
||||
@@ -317,17 +426,21 @@ Hooks.on('pauseGame',()=>{
|
||||
|
||||
Hooks.on('renderSidebarTab',()=>{
|
||||
if (enableModule == false || ready == false) return;
|
||||
otherControls.updateAll();
|
||||
if (otherControls != undefined) otherControls.updateAll();
|
||||
if (sceneControl != undefined) sceneControl.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)=>{
|
||||
@@ -360,6 +473,21 @@ Hooks.on('closeJournalSheet',()=>{
|
||||
otherControls.updateAll();
|
||||
});
|
||||
|
||||
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.once('init', ()=>{
|
||||
//CONFIG.debug.hooks = true;
|
||||
registerSettings(); //in ./src/settings.js
|
||||
@@ -367,62 +495,4 @@ Hooks.once('init', ()=>{
|
||||
|
||||
Hooks.once('canvasReady',()=>{
|
||||
ready = true;
|
||||
});
|
||||
|
||||
export function getFromJSONArray(data,i){
|
||||
if (i>9) return 'nul';
|
||||
let val;
|
||||
if (i == 0) val = data.a;
|
||||
else if (i == 1) val = data.a;
|
||||
else if (i == 2) val = data.c;
|
||||
else if (i == 3) val = data.d;
|
||||
else if (i == 4) val = data.e;
|
||||
else if (i == 5) val = data.f;
|
||||
else if (i == 6) val = data.g;
|
||||
else if (i == 7) val = data.h;
|
||||
else if (i == 8) val = data.i;
|
||||
else if (i == 9) val = data.j;
|
||||
else if (i == 10) val = data.k;
|
||||
else if (i == 11) val = data.l;
|
||||
else if (i == 12) val = data.m;
|
||||
else if (i == 13) val = data.n;
|
||||
else if (i == 14) val = data.o;
|
||||
else if (i == 15) val = data.p;
|
||||
else if (i == 16) val = data.q;
|
||||
else if (i == 17) val = data.r;
|
||||
else if (i == 18) val = data.s;
|
||||
else if (i == 19) val = data.t;
|
||||
else if (i == 20) val = data.u;
|
||||
else if (i == 21) val = data.v;
|
||||
else if (i == 22) val = data.w;
|
||||
else if (i == 23) val = data.x;
|
||||
return val;
|
||||
}
|
||||
|
||||
export function setToJSONArray(data,i,val){
|
||||
if (i>9) return 'nul';
|
||||
if (i == 0) data.a = val;
|
||||
else if (i == 1) data.b = val;
|
||||
else if (i == 2) data.c = val;
|
||||
else if (i == 3) data.d = val;
|
||||
else if (i == 4) data.e = val;
|
||||
else if (i == 5) data.f = val;
|
||||
else if (i == 6) data.g = val;
|
||||
else if (i == 7) data.h = val;
|
||||
else if (i == 8) data.i = val;
|
||||
else if (i == 9) data.j = val;
|
||||
else if (i == 10) data.k = val;
|
||||
else if (i == 11) data.l = val;
|
||||
else if (i == 12) data.m = val;
|
||||
else if (i == 13) data.n = val;
|
||||
else if (i == 14) data.o = val;
|
||||
else if (i == 15) data.p = val;
|
||||
else if (i == 16) data.q = val;
|
||||
else if (i == 17) data.r = val;
|
||||
else if (i == 18) data.s = val;
|
||||
else if (i == 19) data.t = val;
|
||||
else if (i == 20) data.u = val;
|
||||
else if (i == 21) data.v = val;
|
||||
else if (i == 22) data.w = val;
|
||||
else if (i == 23) data.x = val;
|
||||
}
|
||||
});
|
||||
18
README.md
@@ -1,8 +1,14 @@
|
||||
<b>Note:</b> At the moment only Windows support has been confirmed. Right now it doesn't appear to work on MacOS. Linux support is unknown, there is no official Linux support for the Stream Deck, but there exist a 3rd party <a href="https://timothycrosley.com/project-7-streamdeck_ui">Stream Deck UI</a> that might be compatible.<br>
|
||||
<b>Note:</b><br>
|
||||
At the moment Windows and OSX are supported. Linux has been reported to work, there is no official Linux support for the Stream Deck, but there exist a 3rd party <a href="https://timothycrosley.com/project-7-streamdeck_ui">Stream Deck UI</a> that appears be compatible. To get it working on Linux requires more work, and help I can personally offer is limited.<br>
|
||||
The module works on the native Foundry application, Chrome and Firefox. Safari (you'll need the latest dev version to get Foundry to work on it) doesn't work if your Foundry server is secured, unless you use something like Nginx with which I cannot help you.<br>
|
||||
<b>In any case: Proceed at your own risk, I will not take any responsibility if you spent money and the module doesn't work!</b>
|
||||
|
||||
<b>Please read the documentation carefully, especially if you want to modify the default profile!</b>
|
||||
|
||||
I created a <a href="https://discord.gg/3hd4G6TkmA">Discord server</a> to discuss this and other hardware-based Foundry modules. Feel free to join if you'd like to join the discussion and be updated on this module.
|
||||
|
||||
[](https://youtu.be/7h5Ew8cJYxg "FoundryVTT Material Deck Demonstration")
|
||||
|
||||
# Material Deck
|
||||
Material Deck is a Foundry VTT module that allows you to control certain Foundry functions using an Elgato Stream Deck. A Stream Deck is a device that has physical buttons with displays behind them. Material Deck uses this to, for example, control playlists, execute macros, display and control the combat tracker.<br><br>
|
||||
The module allows a high degree of customization, where each button on the Stream Deck can be assigned any desired function. Furthermore, it supports folder structures, allowing easy switching between various button configurations so you can easily switch between the combat tracker, soundboard, or any other (custom) configuration.<br><br>
|
||||
@@ -21,8 +27,10 @@ The functions are categorized into actions. Here is a list of the available acti
|
||||
</ul>
|
||||
<li>Token Action: Display token info</li>
|
||||
<ul>
|
||||
<li>Display selected token's name, icon or stats (HP/AC/Movement/Initiative)</li>
|
||||
<li>Display selected token's name, icon or stats (HP/AC/Movement/etc)</li>
|
||||
<li>Open selected token's character sheet or token config</li>
|
||||
<li>Target token</li>
|
||||
<li>Toggle token visibility, combat state, conditions</li>
|
||||
</ul>
|
||||
<li>Move Action: Move selected token or the canvas</li>
|
||||
<ul>
|
||||
@@ -65,8 +73,8 @@ 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>Module Incompatibilities:</b> None known.<br>
|
||||
<b>Foundry VTT:</b> Tested on 0.7.9<br>
|
||||
<b>Module Incompatibilities:</b> Combat Utility Belt conditions do not work with the Token Action.<br>
|
||||
|
||||
## 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.
|
||||
@@ -75,6 +83,8 @@ 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>
|
||||
|
||||
153
changelog.md
@@ -1,4 +1,157 @@
|
||||
# Changelog Material Deck Module
|
||||
### 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>
|
||||
</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.0.0 (unchanged): https://github.com/CDeenen/MaterialDeck_SD/releases<br>
|
||||
|
||||
### v1.0.0 - 24-11-2020
|
||||
Release
|
||||
<ul>
|
||||
<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>
|
||||
Material Server v1.0.2: https://github.com/CDeenen/MaterialServer/releases <br>
|
||||
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>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
img/combattracker/.thumb/combattracker.png.jpg
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
img/combattracker/.thumb/combattracker@2x.png.jpg
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
img/combattracker/.thumb/nextround.png.jpg
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
img/combattracker/.thumb/nextturn.png.jpg
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
img/combattracker/.thumb/previousround.png.jpg
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
img/combattracker/.thumb/previousturn.png.jpg
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
img/combattracker/.thumb/startcombat.png.jpg
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
img/combattracker/.thumb/stopcombat.png.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
5
img/combattracker/SOURCES.txt
Normal 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
|
||||
BIN
img/combattracker/combattracker.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
img/combattracker/combattracker@2x.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
img/combattracker/nextround.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
img/combattracker/nextturn.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
img/combattracker/previousround.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
img/combattracker/previousturn.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
img/combattracker/startcombat.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
img/combattracker/stopcombat.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
img/external/.thumb/external.png.jpg
vendored
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/external/.thumb/external@2x.png.jpg
vendored
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/external/.thumb/fxmaster.png.jpg
vendored
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
2
img/external/SOURCES.txt
vendored
Normal 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
|
After Width: | Height: | Size: 6.8 KiB |
BIN
img/external/external@2x.png
vendored
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
img/external/fxmaster.png
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
img/macro/.thumb/macro.png.jpg
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
img/macro/.thumb/macro@2x.png.jpg
Normal file
|
After Width: | Height: | Size: 13 KiB |
1
img/macro/SOURCES.txt
Normal 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
|
After Width: | Height: | Size: 11 KiB |
BIN
img/macro/macro@2x.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
img/move/.thumb/center.png.jpg
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
img/move/.thumb/center@2x.png.jpg
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
img/move/.thumb/down.png.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/move/.thumb/downleft.png.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/move/.thumb/downright.png.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/move/.thumb/left.png.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
img/move/.thumb/right.png.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
img/move/.thumb/rotateccw.png.jpg
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
img/move/.thumb/rotatecw.png.jpg
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
img/move/.thumb/up.png.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/move/.thumb/upleft.png.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/move/.thumb/upright.png.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/move/.thumb/zoomin.png.jpg
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
img/move/.thumb/zoomout.png.jpg
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
3
img/move/SOURCES.txt
Normal 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
|
After Width: | Height: | Size: 13 KiB |
BIN
img/move/center@2x.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
img/move/down.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
img/move/downleft.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
img/move/downright.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
img/move/left.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
img/move/right.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
img/move/rotateccw.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
img/move/rotatecw.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
img/move/up.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
img/move/upleft.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
img/move/upright.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
img/move/zoomin.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
img/move/zoomout.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
img/other/.thumb/cogs.png.jpg
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
img/other/.thumb/other.png.jpg
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
img/other/.thumb/other@2x.png.jpg
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
2
img/other/SOURCES.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
other.png: Made using https://www.elgato.com/en/gaming/keycreator
|
||||
cogs.png: Edited from https://fontawesome.com/icons/cogs?style=solid
|
||||
BIN
img/other/cogs.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
img/other/darkness/.thumb/darkness.png.jpg
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
img/other/darkness/.thumb/decreasedarkness.png.jpg
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
img/other/darkness/.thumb/increasedarkness.png.jpg
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
2
img/other/darkness/SOURCES.txt
Normal 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
|
||||
BIN
img/other/darkness/darkness.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
img/other/darkness/decreasedarkness.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
img/other/darkness/increasedarkness.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
img/other/other.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
img/other/other@2x.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
img/other/pause/.thumb/pause.png.jpg
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
img/other/pause/.thumb/playpause.png.jpg
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
img/other/pause/.thumb/resume.png.jpg
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
3
img/other/pause/SOURCES.txt
Normal 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
|
After Width: | Height: | Size: 3.5 KiB |
BIN
img/other/pause/playpause.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
img/other/pause/resume.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
img/playlist/.thumb/play.png.jpg
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
img/playlist/.thumb/play@2x.png.jpg
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
img/playlist/.thumb/play_redBrightness.png.jpg
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
img/playlist/.thumb/stop.png.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
2
img/playlist/SOURCES.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
play.png: Edited from https://fontawesome.com/icons/play?style=solid
|
||||
stop.png: Edited from https://fontawesome.com/icons/stop?style=solid
|
||||
BIN
img/playlist/play.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
img/playlist/play@2x.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
img/playlist/play_redBrightness.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
img/playlist/stop.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
img/soundboard/.thumb/soundboard.png.jpg
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
img/soundboard/.thumb/soundboard@2x.png.jpg
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
img/soundboard/.thumb/stop.png.jpg
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
2
img/soundboard/SOURCES.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
soundboard.png: Edited from https://fontawesome.com/icons/music?style=solid
|
||||
play.png: Edited from https://fontawesome.com/icons/play?style=solid
|
||||
BIN
img/soundboard/soundboard.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
img/soundboard/soundboard@2x.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
img/soundboard/stop.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |