A major refactor, the current implementation is a bit hard to track when things are being updated. This PR aims to simplify that by introducing events instead of firing inline. This also has the added benefit of always being non-blocking.
[x] Show both previous and next tool during LOADING and UNLOADING events
[x] Rename "Loading..." and "Unloading..." to "Changing Tool..."
[x] Clean up settings even more
[x] Add an entire section on development in the readme (I see a plugins.octoprint.org update in my future)
[x] New screenshots
[x] Move mmu state out of settings
[x] Move all mmu actions into python and out of the js. js now only deals with updates
[x] Move strings to constants
[x] Add starting mmu status
Note: this version introduces a tiny bug where it will show "Changing filament..." at the very end of a print during the unload step instead of "Unloading...". It really is just unloading. It doesn't do any harm, it's just how the JS logic is written now. I'm going to leave that one and fix it in a future release.
A major refactor, the current implementation is a bit hard to track when things are being updated. This PR aims to simplify that by introducing events instead of firing inline. This also has the added benefit of always being non-blocking.
Other things included
Note: this version introduces a tiny bug where it will show "Changing filament..." at the very end of a print during the unload step instead of "Unloading...". It really is just unloading. It doesn't do any harm, it's just how the JS logic is written now. I'm going to leave that one and fix it in a future release.