Skip to content

Chat Formatting Fix#1520

Open
DrPerkyLegit wants to merge 7 commits intoMCLCE:mainfrom
DrPerkyLegit:chat-format
Open

Chat Formatting Fix#1520
DrPerkyLegit wants to merge 7 commits intoMCLCE:mainfrom
DrPerkyLegit:chat-format

Conversation

@DrPerkyLegit
Copy link
Copy Markdown
Contributor

Description

fixes a bug with the chat formatting

Changes

Previous Behavior

color didnt apply after the first message

Root Cause

if the string is too long it wraps around and breaks styling, doesnt respect visible message length

New Behavior

color works correctly
image

Fix Implementation

added functions to get the visible message length instead of raw message length
enforced html labels in UIScene_HUD::handleReload()
moved translateables from the chat handle function to the chat message format function
added the missing "§r" but with no styling we just use it as another "§f" option and make the color white

AI Use Disclosure

no

Related Issues

@Gatoel-capo
Copy link
Copy Markdown

yooo, cool, now i can make all things flashy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] when you color 2 words in 1 message the message breaks

2 participants