project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/MessageLog.java
changeset 7444 2e31f114f57e
parent 7352 641f11cdd319
child 7476 2fb781bbdd51
equal deleted inserted replaced
7439:0a494f951dcf 7444:2e31f114f57e
    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 		}