Added initial networkmanager component.
This commit is contained in:
parent
0e2ced65e8
commit
1ebd7293a3
@ -137,16 +137,18 @@ export class Toolbox {
|
|||||||
colorPicker.value = color;
|
colorPicker.value = color;
|
||||||
colorPicker.onValueChangedObservable.add((value) => {
|
colorPicker.onValueChangedObservable.add((value) => {
|
||||||
const oldColor = material.diffuseColor.clone();
|
const oldColor = material.diffuseColor.clone();
|
||||||
material.diffuseColor = value;
|
const newColor = value.clone();
|
||||||
material.id = "material-" + value.toHexString();
|
material.diffuseColor = newColor;
|
||||||
material.name = "material-" + value.toHexString();
|
const newColorHex = newColor.toHexString();
|
||||||
mesh.id = "toolbox-color-" + value.toHexString();
|
material.id = "material-" + newColorHex;
|
||||||
mesh.name = "toolbox-color-" + value.toHexString();
|
material.name = "material-" + newColorHex;
|
||||||
|
mesh.id = "toolbox-color-" + newColorHex;
|
||||||
|
mesh.name = "toolbox-color-" + newColorHex;
|
||||||
this.diagramManager.onDiagramEventObservable.notifyObservers(
|
this.diagramManager.onDiagramEventObservable.notifyObservers(
|
||||||
{
|
{
|
||||||
type: DiagramEventType.CHANGECOLOR,
|
type: DiagramEventType.CHANGECOLOR,
|
||||||
oldColor: oldColor,
|
oldColor: oldColor,
|
||||||
newColor: value
|
newColor: newColor
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user