add support done check
This commit is contained in:
parent
f4951478dc
commit
d9c69fa5be
2 changed files with 4 additions and 4 deletions
|
|
@ -1482,6 +1482,7 @@
|
||||||
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM}),
|
fdmSep: UC.newBlank({class:"pop-sep", modes:FDM}),
|
||||||
sliceSupportManual: UC.newRow([
|
sliceSupportManual: UC.newRow([
|
||||||
(UI.ssmAdd = UC.newButton(undefined, onButtonClick, {icon:'<i class="fas fa-plus"></i>'})),
|
(UI.ssmAdd = UC.newButton(undefined, onButtonClick, {icon:'<i class="fas fa-plus"></i>'})),
|
||||||
|
(UI.ssmDun = UC.newButton(undefined, onButtonClick, {icon:'<i class="fas fa-check"></i>'})),
|
||||||
(UI.ssmClr = UC.newButton(undefined, onButtonClick, {icon:'<i class="fas fa-trash-alt"></i>'}))
|
(UI.ssmClr = UC.newButton(undefined, onButtonClick, {icon:'<i class="fas fa-trash-alt"></i>'}))
|
||||||
], {modes:FDM, class:"ext-buttons f-row"}),
|
], {modes:FDM, class:"ext-buttons f-row"}),
|
||||||
|
|
||||||
|
|
@ -1917,7 +1918,7 @@
|
||||||
if (API.feature.hover) {
|
if (API.feature.hover) {
|
||||||
if (int) {
|
if (int) {
|
||||||
API.event.emit('mouse.hover.down', int);
|
API.event.emit('mouse.hover.down', int);
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
return API.widgets.meshes();
|
return API.widgets.meshes();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@
|
||||||
switch (target) {
|
switch (target) {
|
||||||
case api.ui.ssmAdd:
|
case api.ui.ssmAdd:
|
||||||
return func.sadd();
|
return func.sadd();
|
||||||
|
case api.ui.ssmDun:
|
||||||
|
return func.sdone();
|
||||||
case api.ui.ssmClr:
|
case api.ui.ssmClr:
|
||||||
api.uc.confirm("clear supports?").then(ok => {
|
api.uc.confirm("clear supports?").then(ok => {
|
||||||
if (ok) func.sclear();
|
if (ok) func.sclear();
|
||||||
|
|
@ -35,17 +37,14 @@
|
||||||
api.event.on("fdm.supports.add", func.sadd = () => {
|
api.event.on("fdm.supports.add", func.sadd = () => {
|
||||||
api.show.alert("<esc> key when done editing supports");
|
api.show.alert("<esc> key when done editing supports");
|
||||||
api.feature.hover = true;
|
api.feature.hover = true;
|
||||||
console.log("supports add");
|
|
||||||
});
|
});
|
||||||
api.event.on("fdm.supports.done", func.sdone = () => {
|
api.event.on("fdm.supports.done", func.sdone = () => {
|
||||||
delbox('intZ');
|
delbox('intZ');
|
||||||
delbox('intW');
|
delbox('intW');
|
||||||
api.feature.hover = false;
|
api.feature.hover = false;
|
||||||
console.log("supports done");
|
|
||||||
});
|
});
|
||||||
api.event.on("fdm.supports.clear", func.sclear = () => {
|
api.event.on("fdm.supports.clear", func.sclear = () => {
|
||||||
func.sdone();
|
func.sdone();
|
||||||
console.log("supports clear");
|
|
||||||
});
|
});
|
||||||
api.event.on("key.esc", func.sdone);
|
api.event.on("key.esc", func.sdone);
|
||||||
api.event.on("mouse.hover.up", int => {
|
api.event.on("mouse.hover.up", int => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue