add widget hiding option in cam preview. change move color for better contrast
This commit is contained in:
parent
ba20158461
commit
e001ab4505
6 changed files with 34 additions and 4 deletions
|
|
@ -593,6 +593,19 @@
|
|||
return showing;
|
||||
}
|
||||
|
||||
function setWidgetVisibility(bool) {
|
||||
if (bool) {
|
||||
UI.layerParts.checked = true;
|
||||
}
|
||||
forAllWidgets(w => {
|
||||
if (bool) {
|
||||
w.show();
|
||||
} else {
|
||||
w.hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* hide or show slice-layers and their sub-elements
|
||||
*
|
||||
|
|
@ -603,6 +616,10 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if (MODE === MODES.CAM) {
|
||||
setWidgetVisibility(UI.layerParts.checked);
|
||||
}
|
||||
|
||||
showSlider();
|
||||
|
||||
if (typeof(layer) === 'string' || typeof(layer) === 'number') {
|
||||
|
|
@ -1997,13 +2014,16 @@
|
|||
hideSlider();
|
||||
clearWidgetCache();
|
||||
updateSliderMax();
|
||||
setWidgetVisibility(true);
|
||||
break;
|
||||
case VIEWS.SLICE:
|
||||
$('lt-back').style.display = 'flex';
|
||||
updateSliderMax();
|
||||
setWidgetVisibility(true);
|
||||
break;
|
||||
case VIEWS.PREVIEW:
|
||||
$('lt-back').style.display = 'flex';
|
||||
$('lt-back').style.display = 'flex';
|
||||
setWidgetVisibility(true);
|
||||
break;
|
||||
default:
|
||||
DBUG.log("invalid view mode: "+mode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue