diff options
author | dominik <dominik@openttd.org> | 2004-12-14 16:53:38 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-12-14 16:53:38 +0000 |
commit | 719686037319207be3bee5bff879c480b7a89a30 (patch) | |
tree | e09e6c8a106ac219b9216044e093bbf41a198c8b /main_gui.c | |
parent | 833ce9840929a22f7e8c96ba6dec1f013a3bbe85 (diff) | |
download | openttd-719686037319207be3bee5bff879c480b7a89a30.tar.xz |
(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
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 */ |