Wynnic/Gavellian Tooltip
Kepler-17c opened this issue ยท 9 comments
Legacy has options to replace Wynnic/Gavellian text or have the translation as tooltip when hovered in chat.
No tooltips yet but chat and NPC dialogue is added in #1901
Oh yeah difficulty wasn't the issue, it's more of unsure how to handle NPC dialogue as that gets redirected to the overlay and it's not really intuitive to hover that
Actually, adding tooltip hovers to chat is not very difficult, given the nice work you did on the transcription PR. You need to split the StyledText into pieces, with a split each time the alphabet is changed. Then you just combine them back together, and add a onHover attribute to the gavellian/wynnic parts. (I am not sure we have full support for onHover for StyledText so you might need to convert it to a Component first to be able to do that.
You can probably find some inspiration in the "item in chat" feature, which does something similar for our encoded items.
We can use the same workaround as for multi-option npc messages, and also send a copy to the chat of those messages. It's by no means perfect, but it does make it possible to add hovering, if you want to have the ability to have a sneak look, but chose if you want to see it.
You might want to look at what is coming soon in terms of the new mapdata system: #1814
Basically waypoints ("map features" in the terminology of the new system) will have a bunch of attributes, which it can either override on a per map feature basis, or inherit from it's category (or the category's parent category, etc).
Yeah I've had a peek, mostly just changing how it looks for the moment and I might not even pr it until you've finished with that so I don't have to revisit it again afterwards. Only new thing I've got at the moment is a search bar but I also want to add the filtering by icon, but since the new system will have custom icons I'm waiting on that.
Just want to redo my early contributions to make them better and I have an interesting idea for the seaskipper that hopefully I can pull off ;)
Done #1961