}
}
public void add(String name, String text)
{
PU_Creature sender = PUWeb.map().getCreatureByName(name);
if(sender == null)
return;
for(PU_OnscreenChatMessage message : mMessages)
{
if(message != null && message.getName().equals(name) && message.getX() == sender.getX() && message.getY() == sender.getY())
{
message.addText(text);
return;
}
}
PU_OnscreenChatMessage message = new PU_OnscreenChatMessage(name,sender.getX(), sender.getY());
message.addText(text);
mMessages.add(message);
}