project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/MessageLog.java
equal
deleted
inserted
replaced
93 append(withColor(msg, INFO_COLOR)); |
93 append(withColor(msg, INFO_COLOR)); |
94 } |
94 } |
95 |
95 |
96 void appendChat(String playerName, String msg) { |
96 void appendChat(String playerName, String msg) { |
97 if(msg.startsWith("/me ")) { |
97 if(msg.startsWith("/me ")) { |
98 append(withColor("*"+playerName+" "+msg, MECHAT_COLOR)); |
98 append(withColor("*"+playerName+" "+msg.substring(4), MECHAT_COLOR)); |
99 } else { |
99 } else { |
100 Spanned name = bold(playerName+": "); |
100 Spanned name = bold(playerName+": "); |
101 Spanned fullMessage = withColor(TextUtils.concat(name, msg), CHAT_COLOR); |
101 Spanned fullMessage = withColor(TextUtils.concat(name, msg), CHAT_COLOR); |
102 append(fullMessage); |
102 append(fullMessage); |
103 } |
103 } |