mirror of
https://github.com/Doodle3D/doodle3d-client.git
synced 2024-11-05 03:33:23 +01:00
Setting to enable or disable tour
This commit is contained in:
parent
fc48b4de85
commit
8222591041
@ -61,7 +61,6 @@ $(function() {
|
||||
initButtonBehavior();
|
||||
initKeyboard();
|
||||
initVerticalShapes();
|
||||
if (!clientInfo.isSmartphone) initHelp();
|
||||
|
||||
thermometer.init($("#thermometerCanvas"), $("#thermometerContainer"));
|
||||
progressbar.init($("#progressbarCanvas"), $("#progressbarCanvasContainer"));
|
||||
@ -142,12 +141,18 @@ function showOrHideThermo() {
|
||||
function settingsLoaded() {
|
||||
console.log("settingsLoaded");
|
||||
console.log("autoHeatup: ",settings["printer.heatup.enabled"]);
|
||||
if(settings["printer.heatup.enabled"]) {
|
||||
if(firstTimeSettingsLoaded) {
|
||||
if(firstTimeSettingsLoaded) {
|
||||
if(settings["printer.heatup.enabled"]) {
|
||||
printer.preheat();
|
||||
firstTimeSettingsLoaded = false;
|
||||
}
|
||||
console.log("doodle3d.tour.enabled: ",settings["doodle3d.tour.enabled"]);
|
||||
if(settings["doodle3d.tour.enabled"] && !clientInfo.isSmartphone) {
|
||||
console.log("show tour");
|
||||
initHelp();
|
||||
}
|
||||
firstTimeSettingsLoaded = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function setDebugText(text) {
|
||||
|
@ -117,6 +117,7 @@
|
||||
<label for="simplifyMinDistance">Minimal line distance:</label><input id="simplifyMinDistance" type="number" class="small" name="doodle3d.simplify.minDistance">px<br>
|
||||
<!-- <label for="maxObjectHeight">Max object height:</label><input id="maxObjectHeight" type="number" class="small" name="printer.maxObjectHeight">mm<br> -->
|
||||
<label for="screenToMillimeterScale">Pixels to mm scale:</label><input id="screenToMillimeterScale" type="number" step="0.1" class="small" name="printer.screenToMillimeterScale"><br>
|
||||
<label for="tourEnabled">Enable tour:</label><input id="tourEnabled" type="checkbox" name="doodle3d.tour.enabled" value="tourEnabled"><br>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
|
Loading…
Reference in New Issue
Block a user