|
@@ -168,13 +168,13 @@ struct NewGRFAddWindow : public Window {
|
|
|
if (n >= this->vscroll.pos) {
|
|
|
bool h = c == this->sel;
|
|
|
const char *text = (c->name != NULL && !StrEmpty(c->name)) ? c->name : c->filename;
|
|
|
|
|
|
/* Draw selection background */
|
|
|
if (h) GfxFillRect(3, y, this->width - 15, y + 9, 156);
|
|
|
DoDrawStringTruncated(text, 4, y, h ? TC_WHITE : TC_ORANGE, this->width - 18);
|
|
|
DrawString(4, this->width - 22, y, text, h ? TC_WHITE : TC_ORANGE);
|
|
|
y += 10;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (this->sel != NULL) {
|
|
|
const Widget *wi = &this->widget[ANGRFW_GRF_INFO];
|
|
@@ -445,13 +445,13 @@ struct NewGRFWindow : public Window {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
DrawSprite(SPR_SQUARE, pal, 5, y + 2);
|
|
|
if (c->error != NULL) DrawSprite(SPR_WARNING_SIGN, 0, 20, y + 2);
|
|
|
txtoffset = c->error != NULL ? 35 : 25;
|
|
|
DoDrawStringTruncated(text, txtoffset, y + 3, this->sel == c ? TC_WHITE : TC_BLACK, this->width - txtoffset - 10);
|
|
|
DrawString(txtoffset, this->widget[SNGRFS_FILE_LIST].right - 2, y + 3, text, this->sel == c ? TC_WHITE : TC_BLACK);
|
|
|
y += 14;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (this->sel != NULL) {
|
|
|
/* Draw NewGRF file info */
|