On 04.12.2017 23:40, Alexander wrote:
Hallo
Source für benutzerdefinierte Handlungen addon:
https://git.digitalstrom.org/dss-add-ons/hle-edit
Vielen Dank, das hat mir schon mal sehr weitergeholfen.
Der eigentliche Dialog zum Bearbeiten einer Aktivität wird ja offensichtlich
durch https://git.digitalstrom.org/dss-add-ons/dss-addon-framework
implementiert.
In der Code-Sequenz
if (oDeviceObject.functionID!=28688) {
oDeviceActionControlStore.add({
id : 5,
name : _('call scene'),
icon : null,
next : true
});
oDeviceActionControlStore.add({
id : 1,
name :
(oDeviceObject.GroupID==2)?_('Close'):_('Turn off'),
icon :
dss.staticDataModel.getImagePathForScene(0, iGroup, 0),
next : false
});
oDeviceActionControlStore.add({
id : 2,
name : (oDeviceObject.GroupID==2)?_('Open'):
_('Turn on'),
icon :
dss.staticDataModel.getImagePathForScene(0, iGroup, 5),
next : false
});
}
in js/dss/dss-components/dss-action-selector.js werden numerische Konstanten
für 'id'
verwendet (leider keine Symbole oder Macros). Gibt es eine Stelle, wo alle
diese Werte
aufgelistet sind, und man insbesondere sehen kann, welche Werte noch unbenutzt
sind?
Grüße
Klaus
_______________________________________________
dss-developer mailing list
[email protected]
http://forum.digitalstrom.org/cgi-bin/mailman/listinfo/dss-developer