You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix chat message length calculation with colorCoded enabled (#4370)
* Fix chat message length calculation with colorCoded enabled
When colorCoded = true, the chat message length calculation was incorrectly counting hex color codes as part of the text.
This caused the message width to be miscalculated, so some texts did not fit properly in the chat box.
This PR updates the logic to ignore hex color codes during length calculation, ensuring that only visible characters are counted.
Result
Chat messages now display correctly without being cut off.
Length is calculated only from visible text, not formatting codes.
* Update CStaticFunctionDefinitions.cpp
comments deleted.
* Update CStaticFunctionDefinitions.cpp
done.
* Update CStaticFunctionDefinitions.cpp
* Update CStaticFunctionDefinitions.cpp
* Update CStaticFunctionDefinitions.cpp
done
---------
Co-authored-by: Shady1 <[email protected]>
0 commit comments