engine_gui.c
changeset 193 0a7025304867
parent 176 84990c4b9212
child 460 f11659d28617
equal deleted inserted replaced
192:614bba52258d 193:0a7025304867
    86 		break;
    86 		break;
    87 
    87 
    88 	case WE_CLICK:
    88 	case WE_CLICK:
    89 		switch(e->click.widget) {
    89 		switch(e->click.widget) {
    90 		case 3: DeleteWindow(w); break;
    90 		case 3: DeleteWindow(w); break;
    91 		case 4: 
    91 		case 4:
    92 			DoCommandP(0, w->window_number, 0, NULL, CMD_WANT_ENGINE_PREVIEW);
    92 			DoCommandP(0, w->window_number, 0, NULL, CMD_WANT_ENGINE_PREVIEW);
    93 			DeleteWindow(w);
    93 			DeleteWindow(w);
    94 			break;
    94 			break;
    95 		}
    95 		}
    96 		break;
    96 		break;
   148 	int engine;
   148 	int engine;
   149 
   149 
   150 	DrawNewsBorder(w);
   150 	DrawNewsBorder(w);
   151 
   151 
   152 	engine = WP(w,news_d).ni->string_id;
   152 	engine = WP(w,news_d).ni->string_id;
   153 	
   153 
   154 	DrawStringMultiCenter(w->width >> 1, 20, STR_A02C_NEW_AIRCRAFT_NOW_AVAILABLE, w->width - 2);
   154 	DrawStringMultiCenter(w->width >> 1, 20, STR_A02C_NEW_AIRCRAFT_NOW_AVAILABLE, w->width - 2);
   155 	GfxFillRect(25, 56, w->width - 25, w->height - 2, 10);
   155 	GfxFillRect(25, 56, w->width - 25, w->height - 2, 10);
   156 
   156 
   157 	SET_DPARAM16(0, GetCustomEngineName(engine));
   157 	SET_DPARAM16(0, GetCustomEngineName(engine));
   158 	DrawStringMultiCenter(w->width >> 1, 57, STR_A02D, w->width - 2);
   158 	DrawStringMultiCenter(w->width >> 1, 57, STR_A02D, w->width - 2);
   201 	int engine;
   201 	int engine;
   202 
   202 
   203 	DrawNewsBorder(w);
   203 	DrawNewsBorder(w);
   204 
   204 
   205 	engine = WP(w,news_d).ni->string_id;
   205 	engine = WP(w,news_d).ni->string_id;
   206 	
   206 
   207 	DrawStringMultiCenter(w->width >> 1, 20, STR_982C_NEW_SHIP_NOW_AVAILABLE, w->width - 2);
   207 	DrawStringMultiCenter(w->width >> 1, 20, STR_982C_NEW_SHIP_NOW_AVAILABLE, w->width - 2);
   208 	GfxFillRect(25, 56, w->width - 25, w->height - 2, 10);
   208 	GfxFillRect(25, 56, w->width - 25, w->height - 2, 10);
   209 
   209 
   210 	SET_DPARAM16(0, GetCustomEngineName(engine));
   210 	SET_DPARAM16(0, GetCustomEngineName(engine));
   211 	DrawStringMultiCenter(w->width >> 1, 57, STR_982D, w->width - 2);
   211 	DrawStringMultiCenter(w->width >> 1, 57, STR_982D, w->width - 2);