If I’m not mistaken, that’s exactly what this release aims to enable. You could set the background color to red if the user’s id matches a specific number like this now:
local TextChatService = game:GetService("TextChatService")
-- You'd change this variable to match the UserId you're expecting...
local SPECIAL_USER_ID = 0
TextChatService.OnBubbleAdded = function(textChatMessage)
local textSource = textChatMessage.TextSource
if textSource and textSource.UserId == SPECIAL_USER_ID then
local bubbleChatOverrides = Instance.new("BubbleChatMessageProperties")
bubbleChatOverrides.BackgroundColor3 = Color3.fromRGB(255, 150, 150)
return bubbleChatOverrides
end
return nil
end
While this release doesn’t seem to support inline custom ui at the moment, you could maybe get an approximate outcome with some 9-slice and some extra whitespace (ehh). Perhaps if UIPadding or allowing for custom inline ui were supported you’d be able to achieve this a lot easier (not sure if/when that is actually planned at the moment, but this is a great example usecase to strive for)
Icons are definitely our biggest use case for inlining UI elements to bubble chat and one of our reasons on why we forked the bubble chat scripts, the other two being conditional bubble chat colouring (now supported) and lack of certainty on the feasibility of being able to create indicators and chat states as users typed, matching the custom chat states of the Legacy Chat System for switching channels as users typed.
It’s something that we can live without since bubble colours are visually clearer right away, but if that’s ever something that comes up in the future I would be happy if TextChatService could support it.
Now we just need customization support for the player list such as custom icons, custom sort order, max visible elements, etc. Having to create a custom player list UI because it overlaps HUD elements is annoying.
How do I apply MaxBubbles and BubbleDuration to specific NPCs? BubbleChatMessageProperties doesn’t have properties for this. This was possible to do in LegacyChatService.
The only way I can seem to do this is by editing BubbleChatConfiguration, but that applies to all chat bubbles in the entire place, which is not what I want.
It seems like the BubbleChatConfiguration.MaxBubbles property doesn’t work, no matter what it’s set to it always functions as if it’s set to 3. Is this because the property hasn’t been enabled yet, or is it a bug?
Once that channel UI is finished ill be able to add it into my custom chat with admin commands
probably going to incorporate more visual effects which is great
Pretty great, though will it work with an event or something else?
This is pretty great! What will the UI look like? Is it going to be on top of the window or at the side? (I personally think at the side would be much better)
A ton of games I know use them for stickers, and I’m sure the developers would much rather be happy to be using Roblox’s own core scripts then to fork them and do some scripting magic I’m not even capable of. It’s probably a niche use-case, but seems like it would be a cool inclusion nonetheless.
Anyway we can get the option to use an image for the chat window?? like the solid background color thing is nice… but i feel like it could still be expanded upon. Once the Different channel feature gets added it would be nice if different channels could be different colors/ have an image background embedded into them or something.
Are there any plans to allow developers to specify a custom position with the Chat Input Bar? It can be irritating when you have to make your interface design work around one of the 3 positions. I’m aware you can create custom text boxes but native support would be amazing