repeat header lines that contain {tool} for each extruder

This commit is contained in:
Stewart Allen 2020-11-19 10:09:38 -05:00
commit 00e2b9eb50
2 changed files with 12 additions and 1 deletions

View file

@ -145,7 +145,15 @@
}
});
}
appendSub(line);
if (line.indexOf("{tool}") > 0 && extruders.length > 1) {
for (let i=0; i<extruders.length; i++) {
subst.tool = i;
appendSub(line);
}
subst.tool = 0;
} else {
appendSub(line);
}
}
function dwell(ms) {

View file

@ -664,6 +664,9 @@ th, tr, td, label {
#help li {
margin-left: 20px;
}
.content br {
margin: 10px;
}
}
#help .header {
background-color: rgba(0,0,0,0.1);