add visual marker when cam operation is enabled
This commit is contained in:
parent
2952e202f4
commit
4c43f5864d
5 changed files with 33 additions and 6 deletions
|
|
@ -54,6 +54,16 @@
|
|||
$('set-tools').style.display = isCAM ? '' : 'none';
|
||||
kiri.space.platform.setColor(isCAM ? 0xeeeeee : 0xcccccc);
|
||||
});
|
||||
api.event.on("settings.saved", (settings) => {
|
||||
let proc = settings.process;
|
||||
api.ui.camTabs.marker.style.display = proc.camTabsOn ? 'flex' : 'none';
|
||||
api.ui.roughing.marker.style.display = proc.roughingOn ? 'flex' : 'none';
|
||||
api.ui.drilling.marker.style.display = proc.drillingOn ? 'flex' : 'none';
|
||||
api.ui.finishing.marker.style.display =
|
||||
proc.finishingOn ||
|
||||
proc.finishingXOn ||
|
||||
proc.finishingYOn ? 'flex' : 'none';
|
||||
});
|
||||
}
|
||||
|
||||
function getToolById(settings, id) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue