League-of-Foundry-Developers / fvtt-module-theatre

GNU General Public License v3.0
30 stars 39 forks source link

Feature Request - Retain speech bubble on tokens #140

Open diwako opened 1 year ago

diwako commented 1 year ago

Hey, Right now Theatre inserts overwrites that part of the message object which is used to show who is speaking, thus no speech bubbles show up. Be it if a theatre insert is used or not for a token speaking.

I got a few requests from my players to retain those speech bubbles, thus I am asking for a setting to retain that information, regardless if an insert is used or not.

merlandmiller commented 2 months ago

Not an actual fix but i was hacking around with this and if you add this code

if (chatMessage.speaker && chatMessage.speaker.token){
    let token = canvas.tokens.get(speaker.token);
}

into the next to last line of Hooks.on("preCreateChatMessage", function (chatMessage) right above chatMessage.updateSource(chatData); in AppData\Local\FoundryVTT\Data\modules\theatre\app\js\theatre_main.js

then i got it to work for me. will obvously gett overritten on next update