Debug last commit

This commit is contained in:
Adrien RENARD 2025-06-24 02:00:45 +02:00
parent 050032f726
commit dc4804c3f1
4 changed files with 38 additions and 13 deletions

View File

@ -1,7 +1,7 @@
{ {
"id": "purelink-pt-ma-hd44m", "id": "purelink-pt-ma-hd44m",
"name": "purelink-pt-ma-hd44m", "name": "purelink-pt-ma-hd44m",
"shortname": "PT-MA-HD44M Matrix", "shortname": "PT-MA-HD44M",
"description": "PureLink PT-MA-HD44M Matrix module for Companion", "description": "PureLink PT-MA-HD44M Matrix module for Companion",
"version": "1.0.0", "version": "1.0.0",
"license": "MIT", "license": "MIT",

View File

@ -352,7 +352,6 @@ class MixerInstance extends InstanceBase {
else if(msg.slice(0,7) == "Preset:") { else if(msg.slice(0,7) == "Preset:") {
let p = msg.split(' '); let p = msg.split(' ');
let pst = this.getPstByName(p[1]); let pst = this.getPstByName(p[1]);
console.log(p);
// SAVE // SAVE
if(p[2] == "Save") { if(p[2] == "Save") {

View File

@ -13,8 +13,8 @@ module.exports = {
type: 'button', type: 'button',
category: out.label+" - XPT", category: out.label+" - XPT",
style: { style: {
text: `OUT#${out.id} \nIN#${ipt.id}`, text: `$(PT-MA-HD44M:${out.var_name})\n$(PT-MA-HD44M:${ipt.var_name})`,
size: '16', //size: '14',
color: combineRgb(255, 255, 255), color: combineRgb(255, 255, 255),
bgcolor: combineRgb(0, 0, 0) bgcolor: combineRgb(0, 0, 0)
}, },
@ -48,8 +48,8 @@ module.exports = {
type: 'button', type: 'button',
category: "Preset - Recall", category: "Preset - Recall",
style: { style: {
text: `Recall \nPST#${pst.id}`, text: `Recall\n$(PT-MA-HD44M:${pst.var_name})`,
size: '16', //size: '14',
color: combineRgb(24, 76, 119), color: combineRgb(24, 76, 119),
bgcolor: combineRgb(128, 198, 255) bgcolor: combineRgb(128, 198, 255)
}, },
@ -81,8 +81,8 @@ module.exports = {
type: 'button', type: 'button',
category: "Preset - Save", category: "Preset - Save",
style: { style: {
text: `Save \nPST#${pst.id}`, text: `Save\n$(PT-MA-HD44M:${pst.var_name})`,
size: '16', //size: '14',
color: combineRgb(0, 0, 0), color: combineRgb(0, 0, 0),
bgcolor: combineRgb(249, 177, 21) bgcolor: combineRgb(249, 177, 21)
}, },
@ -109,8 +109,8 @@ module.exports = {
type: 'button', type: 'button',
category: "Preset - Clear", category: "Preset - Clear",
style: { style: {
text: `Clear \nPST#${pst.id}`, text: `Clear\n$(PT-MA-HD44M:${pst.var_name})`,
size: '16', //size: '14',
color: combineRgb(255, 255, 255), color: combineRgb(255, 255, 255),
bgcolor: combineRgb(213, 2, 2) bgcolor: combineRgb(213, 2, 2)
}, },
@ -131,6 +131,32 @@ module.exports = {
}; };
}); });
// REFRESH INFO
presets[`refresh_info`] = {
type: 'button',
category: "Refresh Info",
style: {
text: `Refresh Info`,
size: '14',
color: combineRgb(255, 255, 255),
bgcolor: combineRgb(0, 0, 0)
},
steps: [{
down: [{
actionId: 'refreshInfo',
options: {}
}]
}],
feedbacks: [
{
feedbackId: 'connect_status',
options: {},
isInverted: true,
style: { color: combineRgb(255, 80, 80), bgcolor: combineRgb(80, 0, 0) }
}
]
};
return presets; return presets;
} }
}; };

View File

@ -34,15 +34,15 @@ module.exports = {
// INPUTS NAMES // INPUTS NAMES
var list = this.getInputsList(); var list = this.getInputsList();
list.forEach((i) => { variables[i.var_name] = i.label; }); list.forEach((i) => { variables[i.var_name] = i.name; });
// OUTPUTS NAMES // OUTPUTS NAMES
list = this.getOutputsList(); list = this.getOutputsList();
list.forEach((i) => { variables[i.var_name] = i.label; }); list.forEach((i) => { variables[i.var_name] = i.name; });
// PRESETS NAMES // PRESETS NAMES
list = this.getPresetsList(); list = this.getPresetsList();
list.forEach((i) => { variables[i.var_name] = i.label; }); list.forEach((i) => { variables[i.var_name] = i.name; });
// LAST PRESET // LAST PRESET
variables.pst_last = 0; variables.pst_last = 0;