main_gui.c
changeset 2951 2de6d3a59743
parent 2866 23cf6ec995b1
child 2952 58522ed8f0f1
equal deleted inserted replaced
2950:30eee9c93028 2951:2de6d3a59743
  2212 
  2212 
  2213 		// Draw status bar
  2213 		// Draw status bar
  2214 		if (w->message.msg) { // true when saving is active
  2214 		if (w->message.msg) { // true when saving is active
  2215 			DrawStringCentered(320, 1, STR_SAVING_GAME, 0);
  2215 			DrawStringCentered(320, 1, STR_SAVING_GAME, 0);
  2216 		} else if (_do_autosave) {
  2216 		} else if (_do_autosave) {
  2217 			DrawStringCentered(320, 1,	STR_032F_AUTOSAVE, 0);
  2217 			DrawStringCentered(320, 1, STR_032F_AUTOSAVE, 0);
  2218 		} else if (_pause) {
  2218 		} else if (_pause) {
  2219 			DrawStringCentered(320, 1,	STR_0319_PAUSED, 0);
  2219 			DrawStringCentered(320, 1, STR_0319_PAUSED, 0);
  2220 		} else if (WP(w,def_d).data_1 > -1280 && FindWindowById(WC_NEWS_WINDOW,0) == NULL && _statusbar_news_item.string_id != 0) {
  2220 		} else if (WP(w,def_d).data_1 > -1280 && FindWindowById(WC_NEWS_WINDOW,0) == NULL && _statusbar_news_item.string_id != 0) {
  2221 			// Draw the scrolling news text
  2221 			// Draw the scrolling news text
  2222 			if (!DrawScrollingStatusText(&_statusbar_news_item, WP(w,def_d).data_1))
  2222 			if (!DrawScrollingStatusText(&_statusbar_news_item, WP(w,def_d).data_1))
  2223 				WP(w,def_d).data_1 = -1280;
  2223 				WP(w,def_d).data_1 = -1280;
  2224 		} else {
  2224 		} else {
  2225 			if (p != NULL) {
  2225 			if (p != NULL) {
  2226 				// This is the default text
  2226 				// This is the default text
  2227 				SetDParam(0, p->name_1);
  2227 				SetDParam(0, p->name_1);
  2228 				SetDParam(1, p->name_2);
  2228 				SetDParam(1, p->name_2);
  2229 				DrawStringCentered(320, 1,	STR_02BA, 0);
  2229 				DrawStringCentered(320, 1, STR_02BA, 0);
  2230 			}
  2230 			}
  2231 		}
  2231 		}
  2232 
  2232 
  2233 		if (WP(w, def_d).data_2 > 0) DrawSprite(SPR_BLOT | PALETTE_TO_RED, 489, 2);
  2233 		if (WP(w, def_d).data_2 > 0) DrawSprite(SPR_BLOT | PALETTE_TO_RED, 489, 2);
  2234 	} break;
  2234 	} break;