mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
* Chat panel - Fixed that the text of the chat panel was changable by the user.
This commit is contained in:
parent
1f41f3013a
commit
bc5dc80f95
1 changed files with 3 additions and 0 deletions
|
@ -244,7 +244,10 @@ public class ChatPanel extends javax.swing.JPanel {
|
||||||
text.append(getColoredText(userColor, username + userSeparator));
|
text.append(getColoredText(userColor, username + userSeparator));
|
||||||
}
|
}
|
||||||
text.append(getColoredText(textColor, ManaSymbols.replaceSymbolsWithHTML(message, ManaSymbols.Type.PAY) + "\n"));
|
text.append(getColoredText(textColor, ManaSymbols.replaceSymbolsWithHTML(message, ManaSymbols.Type.PAY) + "\n"));
|
||||||
|
|
||||||
|
this.txtConversation.setEditable(true);
|
||||||
this.txtConversation.append(text.toString());
|
this.txtConversation.append(text.toString());
|
||||||
|
this.txtConversation.setEditable(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getColoredText(String color, String text) {
|
private String getColoredText(String color, String text) {
|
||||||
|
|
Loading…
Reference in a new issue