Hello,
I have a problem, I'm making a GUI with text and text formatting, but the bold doesn't work.
In 1.7 it worked perfectly, even in buttons.
How it works:
1. I get a string like : "&xbUpdate 1.2#*&xiAdded Keyboard Controls#*?#&c*Added More Options" (the "#" is used later to separate lines into an array)
2. After that, I replace the "&xb"/"ξ" with "EnumChatFormatting.xxx.toString() with:
text = text.replaceAll("&xb", EnumChatFormatting.BOLD.toString());
And for the button, it works with every text formatting except the bold too:
this.buttonList.add(buttonRight = new GuiButton(4, (width - newsPaneWidth) / 2 + 74 + 32, (height-30) / 2 + 74, 25, 20, bold + ">"));
Source code:
GuiServerNews.java
Note 1: The code looks ugly, because I wrote the base when I started learning Java.
Note 2: The text in bold has more space between characters.
Thanks for your help.