equal
deleted
inserted
replaced
440 |
440 |
441 SetDParam(0, (i + 8) / 9); //Set the counter |
441 SetDParam(0, (i + 8) / 9); //Set the counter |
442 DrawStringRightAligned(w->widget[6].right - 1, y + 4, STR_TINY_BLACK, 0); //Draw the counter |
442 DrawStringRightAligned(w->widget[6].right - 1, y + 4, STR_TINY_BLACK, 0); //Draw the counter |
443 |
443 |
444 /* Draw the pretty flag */ |
444 /* Draw the pretty flag */ |
445 DrawSprite(v->vehstatus&VS_STOPPED ? 0xC12 : 0xC13, x+15, y); |
445 DrawSprite(v->vehstatus & VS_STOPPED ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, x + 15, y); |
446 |
446 |
447 y += 14; |
447 y += 14; |
448 } |
448 } |
449 } |
449 } |
450 |
450 |
982 break; |
982 break; |
983 } |
983 } |
984 } |
984 } |
985 |
985 |
986 /* draw the flag plus orders */ |
986 /* draw the flag plus orders */ |
987 DrawSprite(v->vehstatus & VS_STOPPED ? 0xC12 : 0xC13, 2, w->widget[5].top + 1); |
987 DrawSprite(v->vehstatus & VS_STOPPED ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, 2, w->widget[5].top + 1); |
988 DrawStringCenteredTruncated(w->widget[5].left + 8, w->widget[5].right, w->widget[5].top + 1, str, 0); |
988 DrawStringCenteredTruncated(w->widget[5].left + 8, w->widget[5].right, w->widget[5].top + 1, str, 0); |
989 DrawWindowViewport(w); |
989 DrawWindowViewport(w); |
990 } break; |
990 } break; |
991 |
991 |
992 case WE_CLICK: { |
992 case WE_CLICK: { |