if(Object *obj = pick_object(Vector(x*2.0f/rgeom.w-1.0f, y*2.0f/rgeom.h-1.0f, 0)))
{
const ObjectType &otype = obj->get_type();
- string info = format("%d %s", otype.get_article_number(), otype.get_description());
+ string info = format("%d %s", otype.get_article_number(), otype.get_name());
if(Track *track = dynamic_cast<Track *>(obj))
{
if(mode!=CATALOGUE && abs(track->get_tilt()).radians()>1e-4)
else if(track->get_sensor_address())
info += format(" (sensor %d)", track->get_sensor_address());
}
+ if(mode==CATALOGUE)
+ {
+ const string &descr = otype.get_description();
+ if(!descr.empty())
+ {
+ info += '\n';
+ info += otype.get_description();
+ }
+ }
return info;
}