matrices: dynamic color update for all
This commit is contained in:
parent
38b6785882
commit
59c0ffe55f
2 changed files with 16 additions and 16 deletions
|
|
@ -25,4 +25,20 @@ module.exports = class _matrix_base extends Container {
|
|||
|
||||
}
|
||||
|
||||
onPropChanged(propName, options, oldPropValue) {
|
||||
|
||||
if (super.onPropChanged(...arguments)) return true
|
||||
|
||||
switch (propName) {
|
||||
|
||||
case 'color':
|
||||
for (var w of this.children) {
|
||||
w.onPropChanged('color')
|
||||
}
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,20 +97,4 @@ module.exports = class Multifader extends _matrix_base {
|
|||
|
||||
}
|
||||
|
||||
onPropChanged(propName, options, oldPropValue) {
|
||||
|
||||
if (super.onPropChanged(...arguments)) return true
|
||||
|
||||
switch (propName) {
|
||||
|
||||
case 'color':
|
||||
for (var w of this.children) {
|
||||
w.onPropChanged('color')
|
||||
}
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue