remove old label names. swap contour x/y labels for clarity. shorten new gcode preview var names
This commit is contained in:
parent
2c5f61bc28
commit
7af110b9e0
4 changed files with 13 additions and 31 deletions
|
|
@ -619,7 +619,7 @@
|
|||
exportOcto: false,
|
||||
exportGhost: false,
|
||||
exportLocal: true,
|
||||
exportCodePreview: false,
|
||||
exportPreview: false,
|
||||
decimate: true,
|
||||
detail: "good",
|
||||
animesh: "200"
|
||||
|
|
|
|||
|
|
@ -425,9 +425,9 @@
|
|||
let octo = set.controller.exportOcto && MODE !== MODES.CAM;
|
||||
let ghost = set.controller.exportGhost;
|
||||
let local = set.controller.exportLocal;
|
||||
let codepreview = set.controller.exportCodePreview;
|
||||
$('code-preview-head').style.display = codepreview ? '' : 'none';
|
||||
$('code-preview').style.display = codepreview ? '' : 'none';
|
||||
let preview = set.controller.exportPreview;
|
||||
$('code-preview-head').style.display = preview ? '' : 'none';
|
||||
$('code-preview').style.display = preview ? '' : 'none';
|
||||
$('print-download').onclick = download;
|
||||
$('print-filament-head').style.display = fdm ? '' : 'none';
|
||||
$('print-filament-info').style.display = fdm ? '' : 'none';
|
||||
|
|
@ -488,9 +488,9 @@
|
|||
$('print-gridlocal').onclick = sendto_gridlocal;
|
||||
$('admin-gridlocal').onclick = admin_gridlocal;
|
||||
} catch (e) { console.log(e) }
|
||||
|
||||
|
||||
// preview of the generated GCODE
|
||||
if (codepreview && gcode) $('code-preview-textarea').value = gcode;
|
||||
if (preview && gcode) $('code-preview-textarea').value = gcode;
|
||||
|
||||
// show dialog
|
||||
API.modal.show('print');
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@
|
|||
control.exportOcto = UI.exportOcto.checked;
|
||||
control.exportGhost = UI.exportGhost.checked;
|
||||
control.exportLocal = UI.exportLocal.checked;
|
||||
control.exportCodePreview = UI.exportCodePreview.checked;
|
||||
control.exportPreview = UI.exportPreview.checked;
|
||||
control.decimate = UI.decimate.checked;
|
||||
SPACE.view.setZoom(control.reverseZoom, control.zoomSpeed);
|
||||
platform.layout();
|
||||
|
|
@ -1503,7 +1503,7 @@
|
|||
exportOcto: UC.newBoolean(`OctoPrint`, booleanSave),
|
||||
exportGhost: UC.newBoolean(`Grid:Host`, booleanSave),
|
||||
exportLocal: UC.newBoolean(`Grid:Local`, booleanSave),
|
||||
exportCodePreview: UC.newBoolean(`Code Preview`, booleanSave),
|
||||
exportPreview: UC.newBoolean(`Code Preview`, booleanSave),
|
||||
|
||||
parts: UC.newGroup(LANG.pt_menu, $('prefs-prt'), {inline: true}),
|
||||
detail: UC.newSelect(LANG.pt_qual_s, {title: LANG.pt_qual_l, action: detailSave}, "detail"),
|
||||
|
|
@ -1607,8 +1607,8 @@
|
|||
camContourCurves: UC.newBoolean(LANG.cf_curv_s, onBooleanClick, {title:LANG.cf_curv_l, modes:CAM}),
|
||||
camContourIn: UC.newBoolean(LANG.cf_olin_s, onBooleanClick, {title:LANG.cf_olin_l, modes:CAM}),
|
||||
camContourSep: UC.newBlank({class:"pop-sep"}),
|
||||
camContourXOn: UC.newBoolean(LANG.cf_linx_s, onBooleanClick, {title:LANG.cf_linx_l, modes:CAM}),
|
||||
camContourYOn: UC.newBoolean(LANG.cf_liny_s, onBooleanClick, {title:LANG.cf_liny_l, modes:CAM}),
|
||||
camContourXOn: UC.newBoolean(LANG.cf_linx_s, onBooleanClick, {title:LANG.cf_linx_l, modes:CAM}),
|
||||
camTracing: UC.newGroup(LANG.cu_menu, null, {modes:CAM, marker:true}),
|
||||
camTraceTool: UC.newSelect(LANG.cc_tool, {modes:CAM}),
|
||||
camTraceSpeed: UC.newInput(LANG.cc_feed_s, {title:LANG.cc_feed_l, convert:UC.toInt, modes:CAM}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue