news_gui.c
changeset 4345 1da147230c79
parent 4344 7e123fec5b0b
child 4549 106ed18a7675
equal deleted inserted replaced
4344:7e123fec5b0b 4345:1da147230c79
   729 		int click_state = WP(w, def_d).data_1;
   729 		int click_state = WP(w, def_d).data_1;
   730 		int i, y;
   730 		int i, y;
   731 
   731 
   732 		if (_news_ticker_sound) SETBIT(w->click_state, 25);
   732 		if (_news_ticker_sound) SETBIT(w->click_state, 25);
   733 		DrawWindowWidgets(w);
   733 		DrawWindowWidgets(w);
   734 		DrawStringCentered(185, 15, STR_0205_MESSAGE_TYPES, 0);
       
   735 
   734 
   736 		/* XXX - Draw the fake widgets-buttons. Can't add these to the widget-desc since
   735 		/* XXX - Draw the fake widgets-buttons. Can't add these to the widget-desc since
   737 		 * openttd currently can only handle 32 widgets. So hack it *g* */
   736 		 * openttd currently can only handle 32 widgets. So hack it *g* */
   738 		for (i = 0, y = 26; i != 10; i++, y += 12, click_state >>= 1, val >>= 2) {
   737 		for (i = 0, y = 26; i != 10; i++, y += 12, click_state >>= 1, val >>= 2) {
   739 			bool clicked = !!(click_state & 1);
   738 			bool clicked = !!(click_state & 1);
   837 
   836 
   838 {      WWT_PANEL,   RESIZE_NONE,     3,     4,   86,   154,   165, STR_NULL,                 STR_NULL},
   837 {      WWT_PANEL,   RESIZE_NONE,     3,     4,   86,   154,   165, STR_NULL,                 STR_NULL},
   839 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    87,   98,   154,   165, STR_0225,                 STR_NULL},
   838 {    WWT_TEXTBTN,   RESIZE_NONE,     3,    87,   98,   154,   165, STR_0225,                 STR_NULL},
   840 {          WWT_4,   RESIZE_NONE,     3,     4,   98,   166,   177, STR_02DB_OFF,             STR_NULL},
   839 {          WWT_4,   RESIZE_NONE,     3,     4,   98,   166,   177, STR_02DB_OFF,             STR_NULL},
   841 
   840 
       
   841 {      WWT_LABEL,   RESIZE_NONE,    13,     0,  409,    13,    26, STR_0205_MESSAGE_TYPES,   STR_NULL},
   842 {   WIDGETS_END},
   842 {   WIDGETS_END},
   843 };
   843 };
   844 
   844 
   845 static const WindowDesc _message_options_desc = {
   845 static const WindowDesc _message_options_desc = {
   846 	270, 22, 410, 185,
   846 	270, 22, 410, 185,