replace transient alert with busy spinner
This commit is contained in:
parent
eebfd7223d
commit
252c799100
2 changed files with 4 additions and 4 deletions
|
|
@ -36,7 +36,7 @@ export function animate_clear(api) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function animate(api, delay) {
|
export function animate(api, delay) {
|
||||||
let alert = api.alerts.show("building animation");
|
api.show.busy("building animation");
|
||||||
let settings = api.conf.get();
|
let settings = api.conf.get();
|
||||||
client.animate_setup(settings, data => {
|
client.animate_setup(settings, data => {
|
||||||
checkMeshCommands(data);
|
checkMeshCommands(data);
|
||||||
|
|
@ -80,7 +80,7 @@ export function animate(api, delay) {
|
||||||
button.pause.style.display = 'none';
|
button.pause.style.display = 'none';
|
||||||
|
|
||||||
api.event.emit('animate', 'CAM');
|
api.event.emit('animate', 'CAM');
|
||||||
api.alerts.hide(alert);
|
api.show.busy(false);
|
||||||
space.platform.showGridBelow(false);
|
space.platform.showGridBelow(false);
|
||||||
toggleTrans(0,api.local.getBoolean('cam.anim.trans', true));
|
toggleTrans(0,api.local.getBoolean('cam.anim.trans', true));
|
||||||
toggleModel(0,api.local.getBoolean('cam.anim.model', false));
|
toggleModel(0,api.local.getBoolean('cam.anim.model', false));
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ export function animate_clear2(api) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function animate2(api, delay) {
|
export function animate2(api, delay) {
|
||||||
let alert = api.alerts.show("building animation");
|
api.show.busy("building animation");
|
||||||
let settings = api.conf.get();
|
let settings = api.conf.get();
|
||||||
dark = settings.controller.dark;
|
dark = settings.controller.dark;
|
||||||
manifold = settings.controller.manifold;
|
manifold = settings.controller.manifold;
|
||||||
|
|
@ -92,7 +92,7 @@ export function animate2(api, delay) {
|
||||||
button.pause.style.display = 'none';
|
button.pause.style.display = 'none';
|
||||||
|
|
||||||
api.event.emit('animate', 'CAM');
|
api.event.emit('animate', 'CAM');
|
||||||
api.alerts.hide(alert);
|
api.show.busy(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue