forked from External/mage
change enum equals to == for client
This commit is contained in:
parent
a32a02b688
commit
d966c82019
9 changed files with 17 additions and 17 deletions
|
|
@ -265,10 +265,10 @@ public class ChatPanelBasic extends javax.swing.JPanel {
|
|||
textColor = MESSAGE_COLOR;
|
||||
userSeparator = ": ";
|
||||
}
|
||||
if (color.equals(MessageColor.ORANGE)) {
|
||||
if (color == MessageColor.ORANGE) {
|
||||
textColor = "Orange";
|
||||
}
|
||||
if (color.equals(MessageColor.YELLOW)) {
|
||||
if (color == MessageColor.YELLOW) {
|
||||
textColor = "Yellow";
|
||||
}
|
||||
if (messageType == MessageType.WHISPER_FROM) {
|
||||
|
|
@ -361,7 +361,7 @@ public class ChatPanelBasic extends javax.swing.JPanel {
|
|||
this.txtConversation.setExtBackgroundColor(new Color(0, 0, 0, alpha)); // Alpha = 255 not transparent
|
||||
this.txtConversation.setSelectionColor(Color.LIGHT_GRAY);
|
||||
this.jScrollPaneTxt.setOpaque(alpha == 255);
|
||||
this.jScrollPaneTxt.getViewport().setOpaque(!chatType.equals(ChatType.TABLES));
|
||||
this.jScrollPaneTxt.getViewport().setOpaque(chatType != ChatType.TABLES);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue