示例#1
0
  public final void chat(ChatMessage message) {
    if (message.type != ChatMessage.CHAT_GAME_MENU) return;
    if (chat_box.length() > 0) chat_box.append("\n");

    ResourceBundle ingame_bundle = ResourceBundle.getBundle(InGameChatForm.class.getName());

    chat_box.append(message.formatLong());
    finishChatAppend();
  }
示例#2
0
 private final void playerJoined(String name) {
   if (chat_box.length() > 0) chat_box.append("\n");
   chat_box.append(Utils.getBundleString(bundle, "joined_game", new Object[] {name}));
   finishChatAppend();
 }