https://github.com/ChrisRaven/FlyWire-Names/raw/main/Names.user.js
This functionality was previously implemented in its basic version in the Utilities addon.
But the code grew a little bit, so I’ve decided to move it to a separate addon.
The addon allows you to assign names to fragments (thanks @bl4ckscor3 for the idea!)
To add a name, Ctrl + right-click on a segment’s ID. A popup should appear. Enter there the new name and click “Save”.
The name will stay after refreshing the page.
When you split a named cell, both parts will have the same name.
When you merge cells:
- when none of the cells were named, nothing changes,
- when one of the cells was named, the merged cell will have the name of that cell,
- when both cells have names, the new cell will be named “cell1name+cell2name”.
If you want to get rid of a name, edit segment’s name and delete everything in the name field (leave the field empty) then click “Save”.
Currently it doesn’t work for cases, when you remove and then readd a cell, but I might be able to make it work.
The names exist only locally. I’ve tried hard to make it work across the Internet, but to no avail. I’ve spent 3 days on this and was able to save the names to the json state server, was able to retrieve the information, but there was no way to tell, from which state I should read to get the correct information.
If there’s a need, I can make it that way, that you’ll be able to click a button, which will generate a string and copy it to the clipboard. You can then pass the string to another person and that person would be able to paste it to an input and apply the names. But for now, it doesn’t work like that.
You might also need to update the Links addon. The reason is that, I’ve decided to make this script (Names) also work using the IndexedDB mechanism. Because Links was already using a library for that, I’ve decided to move that library to the Dock, to make it available for all the scripts.
As usual, things may not work correctly or at all. Report any issues, if you find anything,
Enjoy