add laser z index unique coloring option
This commit is contained in:
parent
703ae490f6
commit
28b95da2e8
7 changed files with 45 additions and 9 deletions
|
|
@ -486,6 +486,7 @@
|
|||
outputLaserPower: 100,
|
||||
outputLaserSpeed: 1000,
|
||||
outputLaserGroup: true,
|
||||
outputLaserZColor: false,
|
||||
outputLaserLayer: false,
|
||||
outputLaserMerged: false,
|
||||
outputOriginCenter: true,
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@
|
|||
}
|
||||
|
||||
function onBooleanClick() {
|
||||
UC.refresh();
|
||||
API.conf.update();
|
||||
DOC.activeElement.blur();
|
||||
}
|
||||
|
|
@ -1456,6 +1457,7 @@
|
|||
outputLaserSpeed: UC.newInput(LANG.ou_sped_s, {title:LANG.ou_sped_l, convert:UC.toInt, modes:LASER}),
|
||||
outputLaserMerged: UC.newBoolean(LANG.ou_mrgd_s, onBooleanClick, {title:LANG.ou_mrgd_l, modes:LASER}),
|
||||
outputLaserGroup: UC.newBoolean(LANG.ou_grpd_s, onBooleanClick, {title:LANG.ou_grpd_l, modes:LASER}),
|
||||
outputLaserZColor: UC.newBoolean(LANG.ou_layo_s, onBooleanClick, {title:LANG.ou_layo_l, modes:LASER, show:() => { return UI.outputLaserMerged.checked === false }}),
|
||||
outputLaserLayer: UC.newBoolean(LANG.ou_layr_s, onBooleanClick, {title:LANG.ou_layr_l, modes:LASER}),
|
||||
outputTemp: UC.newInput(LANG.ou_nozl_s, {title:LANG.ou_nozl_l, convert:UC.toInt, modes:FDM}),
|
||||
outputBedTemp: UC.newInput(LANG.ou_bedd_s, {title:LANG.ou_bedd_l, convert:UC.toInt, modes:FDM}),
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
prefix: function(pre) { prefix = pre; return kiri.ui },
|
||||
hideAction: function(fn) { hideAction = fn; return kiri.ui },
|
||||
inputAction: function(fn) { inputAction = fn; return kiri.ui },
|
||||
refresh: refresh,
|
||||
setMode: setMode,
|
||||
setExpert: setExpert,
|
||||
bound: bound,
|
||||
|
|
@ -122,6 +123,10 @@
|
|||
});
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
setMode(letMode, true);
|
||||
}
|
||||
|
||||
function setMode(mode, nohide) {
|
||||
Object.keys(groupShow).forEach(group => {
|
||||
updateGroupShow(group);
|
||||
|
|
@ -573,7 +578,7 @@
|
|||
ip.addEventListener('blur', function(event) {
|
||||
action(event);
|
||||
if (opt.trigger) {
|
||||
setMode(letMode, true);
|
||||
refresh();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue