Ticket #3396: clearChat_v2.patch
File clearChat_v2.patch, 3.3 KB (added by , 8 years ago) |
---|
-
binaries/data/config/default.cfg
167 167 ; > HOTKEYS ONLY 168 168 chat = Return ; Toggle chat window 169 169 teamchat = "T" ; Toggle chat window in team chat mode 170 clearchat = "Ctrl+L" ; Clear the chat messages 170 171 171 172 ; > QUICKSAVE 172 173 quicksave = "Shift+F5" -
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/gamesetup/gamesetup.js
1733 1733 Engine.SendNetworkChat(text); 1734 1734 } 1735 1735 1736 function clearChatMessages() 1737 { 1738 g_ChatMessages.length = 0; 1739 Engine.GetGUIObjectByName("chatText").caption = ""; 1740 } 1741 1736 1742 function addChatMessage(msg) 1737 1743 { 1738 1744 var username = ""; -
binaries/data/mods/public/gui/gamesetup/gamesetup.xml
207 207 <translatableAttribute id="caption">Send</translatableAttribute> 208 208 <action on="Press">submitChatInput();</action> 209 209 </object> 210 211 <object hotkey="clearchat"> 212 <action on="Press">clearChatMessages();</action> 213 </object> 210 214 </object> 211 215 212 216 <!-- Tooltip --> -
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; … … 700 703 return true; 701 704 } 702 705 706 function clearChatMessages() 707 { 708 g_ChatMessages.length = 0; 709 Engine.GetGUIObjectByName("chatText").caption = ""; 710 } 711 703 712 /** 704 713 * Process and if appropriate, display a formatted message. 705 714 * -
binaries/data/mods/public/gui/lobby/lobby.xml
238 238 <action on="Press">submitChatInput();</action> 239 239 <action on="Tab">autoCompleteNick("chatInput", Engine.GetPlayerList());</action> 240 240 </object> 241 <object hotkey="clearchat"> 242 <action on="Press">clearChatMessages();</action> 243 </object> 241 244 </object> 242 245 </object> 243 246