main_gui.c
changeset 649 bc9bdefb76ec
parent 616 63b0ac55529e
child 658 2a64a8fe809a
equal deleted inserted replaced
648:21fa4f2fcc76 649:bc9bdefb76ec
   332 {
   332 {
   333 	ShowBuildAirToolbar();
   333 	ShowBuildAirToolbar();
   334 }
   334 }
   335 
   335 
   336 #ifdef ENABLE_NETWORK
   336 #ifdef ENABLE_NETWORK
       
   337 
   337 void ShowNetworkChatQueryWindow(byte desttype, byte dest)
   338 void ShowNetworkChatQueryWindow(byte desttype, byte dest)
   338 {
   339 {
   339 	_rename_id = desttype + (dest << 8);
   340 	_rename_id = desttype + (dest << 8);
   340 	_rename_what = 2;
   341 	_rename_what = 2;
   341 	ShowQueryString(STR_EMPTY, STR_NETWORK_CHAT_QUERY_CAPTION, 60, 250, 1, 0);
   342 	ShowChatWindow(STR_EMPTY, STR_NETWORK_CHAT_QUERY_CAPTION, 60, 250, 1, 0);
   342 }
   343 }
   343 
   344 
   344 void ShowNetworkGiveMoneyWindow(byte player)
   345 void ShowNetworkGiveMoneyWindow(byte player)
   345 {
   346 {
   346 	_rename_id = player;
   347 	_rename_id = player;
  2335 			IConsoleSwitch(); 
  2336 			IConsoleSwitch(); 
  2336 			e->keypress.cont=false; 
  2337 			e->keypress.cont=false; 
  2337 			break;
  2338 			break;
  2338 
  2339 
  2339 #ifdef ENABLE_NETWORK
  2340 #ifdef ENABLE_NETWORK
       
  2341 		case WKC_RETURN:
  2340 		case 'T' | WKC_SHIFT:
  2342 		case 'T' | WKC_SHIFT:
  2341 			ShowNetworkChatQueryWindow(DESTTYPE_BROADCAST, 0);
  2343 			if(_networking)
       
  2344 				ShowNetworkChatQueryWindow(DESTTYPE_BROADCAST, 0);
  2342 			break;
  2345 			break;
  2343 #endif /* ENABLE_NETWORK */
  2346 #endif /* ENABLE_NETWORK */
  2344 
  2347 
  2345 		default:
  2348 		default:
  2346 			return;
  2349 			return;