From 719686037319207be3bee5bff879c480b7a89a30 Mon Sep 17 00:00:00 2001 From: dominik Date: Tue, 14 Dec 2004 16:53:38 +0000 Subject: (svn r1082) Feature: Chat toolbar - to chat with all players press Return (or Shift-T) and type in the message - Press Return again to send the message --- main_gui.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index 011733e53..92b285944 100644 --- a/main_gui.c +++ b/main_gui.c @@ -334,11 +334,12 @@ static void MenuClickBuildAir(int index) } #ifdef ENABLE_NETWORK + void ShowNetworkChatQueryWindow(byte desttype, byte dest) { _rename_id = desttype + (dest << 8); _rename_what = 2; - ShowQueryString(STR_EMPTY, STR_NETWORK_CHAT_QUERY_CAPTION, 60, 250, 1, 0); + ShowChatWindow(STR_EMPTY, STR_NETWORK_CHAT_QUERY_CAPTION, 60, 250, 1, 0); } void ShowNetworkGiveMoneyWindow(byte player) @@ -2337,8 +2338,10 @@ static void MainWindowWndProc(Window *w, WindowEvent *e) { break; #ifdef ENABLE_NETWORK + case WKC_RETURN: case 'T' | WKC_SHIFT: - ShowNetworkChatQueryWindow(DESTTYPE_BROADCAST, 0); + if(_networking) + ShowNetworkChatQueryWindow(DESTTYPE_BROADCAST, 0); break; #endif /* ENABLE_NETWORK */ -- cgit v1.2.3-54-g00ecf