|
@@ -716,31 +716,29 @@ public:
|
|
|
if (!StrEmpty(this->selected->url)) {
|
|
|
SetDParamStr(0, this->selected->url);
|
|
|
y = DrawStringMultiLine(r.left + DETAIL_LEFT, r.right - DETAIL_RIGHT, y, max_y, STR_CONTENT_DETAIL_URL);
|
|
|
}
|
|
|
|
|
|
SetDParam(0, STR_CONTENT_TYPE_BASE_GRAPHICS + this->selected->type - CONTENT_TYPE_BASE_GRAPHICS);
|
|
|
y = DrawStringMultiLine(r.left + DETAIL_LEFT, r.right - DETAIL_RIGHT, y, max_y, STR_CONTENT_DETAIL_TYPE);
|
|
|
|
|
|
y += WD_PAR_VSEP_WIDE;
|
|
|
SetDParam(0, this->selected->filesize);
|
|
|
y = DrawStringMultiLine(r.left + DETAIL_LEFT, r.right - DETAIL_RIGHT, y, max_y, STR_CONTENT_DETAIL_FILESIZE);
|
|
|
|
|
|
if (this->selected->dependency_count != 0) {
|
|
|
if (!this->selected->dependencies.empty()) {
|
|
|
/* List dependencies */
|
|
|
char buf[DRAW_STRING_BUFFER] = "";
|
|
|
char *p = buf;
|
|
|
for (uint i = 0; i < this->selected->dependency_count; i++) {
|
|
|
ContentID cid = this->selected->dependencies[i];
|
|
|
|
|
|
for (auto &cid : this->selected->dependencies) {
|
|
|
/* Try to find the dependency */
|
|
|
ConstContentIterator iter = _network_content_client.Begin();
|
|
|
for (; iter != _network_content_client.End(); iter++) {
|
|
|
const ContentInfo *ci = *iter;
|
|
|
if (ci->id != cid) continue;
|
|
|
|
|
|
p += seprintf(p, lastof(buf), p == buf ? "%s" : ", %s", (*iter)->name);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
SetDParamStr(0, buf);
|
|
|
y = DrawStringMultiLine(r.left + DETAIL_LEFT, r.right - DETAIL_RIGHT, y, max_y, STR_CONTENT_DETAIL_DEPENDENCIES);
|