Added on to the README the changes I made, these specifically (for accuracy to Legacy Chat):
--[[
CHANGES MADE
ChatConstants.RemoveTranslationsEnabledMessage added, defaults to false
ChatConstants.UseCustomCommandsColor added, defaults to false
ChatConstants.ChatWindowLayoutOrder added, defaults to 6
ChatConstants.MessageFrameAutomaticSize added, defaults to Enum.AutomaticSize.Y
ChatConstants.MessageLabelAutomaticSize added, defaults to Enum.AutomaticSize.Y
MessageLog.registerMessageAddedCallback shouldn't error when Message.create returns nil
ChatConstants.DefaultChatWindowSizeScale set to (0.4, 0.33) from (0.4, 0.34)
]]
One thing this forgot is that ChatConstants.WindowResizeable defaults to false
And I made a mistake (ChatConstants.RemoveTranslationsEnabledMessage defaults to true), Iāll fix these with a simple update
I also included a command bar loader to save some time, this is the code (minus the comment which has instructions on using it)
local legacyChatRewrite = workspace["Basic Legacy Chat Rewrite"]
local whatGoesInChat = legacyChatRewrite["PUT ME IN CHAT AND UNGROUP"]
local whatGoesInScriptService = legacyChatRewrite["PUT ME IN SERVERSCRIPTSERVICE AND UNGROUP"]
for _, obj in whatGoesInChat:GetChildren() do
obj:Clone().Parent = game.Chat
end
for _, obj in whatGoesInScriptService:GetChildren() do
obj:Clone().Parent = game.ServerScriptService
end
This looks great! Mind if I overwrite the current model with your version?
Edit: Noticed this code snippet here where you were trying to override the system message color. This is unfortunately the correct way to do it; I did not set the system message color, Roblox just adds a RichText tag to all system messages to color them grey.
if not ChatConstants.UseCustomCommandsColor then
-- hacky workaround
-- i have no clue where the hell the color is set
-- all i know is the setting for it is disabled and the color shall not be present
scroller.ChildAdded:Connect(function(message)
if not message:IsA("Frame") then
return
end
local label = message:FindFirstChildOfClass("TextLabel")
if string.find(label.Text, '<font color="#d4d4d4">') then
local text = string.gsub(label.Text, '<font color="#d4d4d4">', '')
text = string.gsub(text, '</font>', '', 1)
label.Text = text
end
end)
end
Saezi covered this issue in this thread a little bit ago:
Iām working on a classic game as well right now, and the sunsetting of LegacyChat really bummed me out. God bless you.
However, Iād like to kindly share with you that when I hover over the chatbox, I experience some major lag, that disappears when I remove my mouse from the box. Is this a known issue?
Hereās what I got in the dev console. I also lag heavily when I used dex, which is the world viewer integrated into the Adonis Admin system, and this only started once I added this
Whatever Roblox is using to detect legacy chat was accidentally detecting my system as well. I restructured the LegacyChatLoader script and published a new version so that this shouldnāt happen anymore.
I couldnāt get this bug to happen for me. Try making sure youāre using the latest versions of both Adonis and Basic Legacy Chat Rewrite. If it still keeps happening, send me a place file and I can take a look.
Itās all good now, I apologize for forgetting to let you know. Turns out it was the cursor replacement script I was using was clashing with the āhovering over chatboxā script.
And right, Iāll update the system anyway considering you updated it avoid that annoying pop-up.
Itās buggy when you zoom into the chat you can see the arrow and like a padding between it and it like twitches please fix that with the bubble chats.
(likely a necrobump)
if anyone wants to insert this model quickly, copy this line of code and paste it in the command bar:
game:GetObjects('rbxassetid://101435285129030')[1]["-PUT ME IN SERVERSCRIPTSERVICE AND UNGROUP-"].LegacyChatLoader.Parent = game:GetService("ServerScriptService")