src/main_gui.cpp
changeset 7058 8105bb13ce3d
parent 7056 6daddeaa79df
child 7086 de7e83fb1602
equal deleted inserted replaced
7057:01a2a637716d 7058:8105bb13ce3d
   603 					GfxFillRect(x, y, x + 238, y + 9, 0);
   603 					GfxFillRect(x, y, x + 238, y + 9, 0);
   604 				}
   604 				}
   605 
   605 
   606 				DrawPlayerIcon(p->index, x + 2, y + 1);
   606 				DrawPlayerIcon(p->index, x + 2, y + 1);
   607 
   607 
   608 				SetDParam(0, p->name_1);
   608 				SetDParam(0, p->index);
   609 				SetDParam(1, p->name_2);
   609 				SetDParam(1, p->index);
   610 				SetDParam(2, GetPlayerNameString(p->index, 3));
       
   611 
   610 
   612 				color = (p->index == sel) ? 0xC : 0x10;
   611 				color = (p->index == sel) ? 0xC : 0x10;
   613 				if (chk&1) color = 14;
   612 				if (chk&1) color = 14;
   614 				DrawString(x + 19, y, STR_7021, color);
   613 				DrawString(x + 19, y, STR_7021, color);
   615 
   614 
  2225 			if (!DrawScrollingStatusText(&_statusbar_news_item, WP(w,def_d).data_1))
  2224 			if (!DrawScrollingStatusText(&_statusbar_news_item, WP(w,def_d).data_1))
  2226 				WP(w,def_d).data_1 = -1280;
  2225 				WP(w,def_d).data_1 = -1280;
  2227 		} else {
  2226 		} else {
  2228 			if (p != NULL) {
  2227 			if (p != NULL) {
  2229 				/* This is the default text */
  2228 				/* This is the default text */
  2230 				SetDParam(0, p->name_1);
  2229 				SetDParam(0, p->index);
  2231 				SetDParam(1, p->name_2);
       
  2232 				DrawStringCentered(320, 1, STR_02BA, 0);
  2230 				DrawStringCentered(320, 1, STR_02BA, 0);
  2233 			}
  2231 			}
  2234 		}
  2232 		}
  2235 
  2233 
  2236 		if (WP(w, def_d).data_2 > 0) DrawSprite(SPR_BLOT, PALETTE_TO_RED, 489, 2);
  2234 		if (WP(w, def_d).data_2 > 0) DrawSprite(SPR_BLOT, PALETTE_TO_RED, 489, 2);