Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting With New Lines #34

Closed
cpybus opened this issue Jul 10, 2014 · 6 comments
Closed

Formatting With New Lines #34

cpybus opened this issue Jul 10, 2014 · 6 comments

Comments

@cpybus
Copy link

cpybus commented Jul 10, 2014

I like to format my chat messages using the legal section symbol "§" as I can just write it in-line without concatenating and ChatColor.Color or using the .color(ChatColor) method. However, whenever I use it, the formatting always goes blank when the line skips down to a new line.
screenshot_5
screenshot_4

@MiniDigger
Copy link
Contributor

This is why you should use the .color() method.
This is not a fanciful issue. Its a minecraft issue, that showed up after the change to the new json chat format

@aaomidi
Copy link

aaomidi commented Jul 11, 2014

Or you can get the last color of the letter before adding the \n and append that to the new line.
https://github.com/mkremins/fanciful/blob/master/src/main/java/mkremins/fanciful/FancyMessage.java#L413

Also .color won't always work, for example if you want to make it dynamic and you do not know the color.

@MiniDigger
Copy link
Contributor

What do you mean with dynamic?

@aaomidi
Copy link

aaomidi commented Jul 11, 2014

Say you want to send this with a chat message, you don't know the color and you want to use the formatting which is provided by the chat event.

@MiniDigger
Copy link
Contributor

Scann the message and convert the code to a ChatColor

@mkremins
Copy link
Owner

Closing this as out of scope, unless anyone wants to discuss special handling of § codes as a possible feature for Fanciful itself.

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

No branches or pull requests

4 participants