Ticket #3396: clearChat_v3.patch
File clearChat_v3.patch, 1.5 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/gui/common/functions_utility.js
230 230 input.caption = newText + text.substring(bufferPosition); 231 231 input.buffer_position = bufferPosition + (newText.length - textTillBufferPosition.length); 232 232 } 233 234 function clearChatMessages() 235 { 236 g_ChatMessages.length = 0; 237 Engine.GetGUIObjectByName("chatText").caption = ""; 238 } -
binaries/data/mods/public/gui/common/network.js
84 84 if (!Engine.KickPlayer(argument, true)) 85 85 addChatMessage({ "type": "system", "text": sprintf(translate("Could not ban %(name)s."), { "name": argument }) }); 86 86 return true; 87 case "/clear": 88 clearChatMessages(); 89 return true; 87 90 } 88 91 return false; 89 92 } -
binaries/data/mods/public/gui/lobby/lobby.js
688 688 case "quit": 689 689 returnToMainMenu(); 690 690 break; 691 case "clear": 692 clearChatMessages(); 693 break; 691 694 case "say": 692 695 case "me": 693 696 return false;