| @@ -239,17 +239,17 @@ struct ModelBox : widget::OpaqueWidget { | |||||
| std::string text; | std::string text; | ||||
| text = model->plugin->brand; | text = model->plugin->brand; | ||||
| text += " " + model->name; | text += " " + model->name; | ||||
| // Description | |||||
| if (model->description != "") { | |||||
| text += "\n" + model->description; | |||||
| } | |||||
| // Tags | // Tags | ||||
| text += "\nTags: "; | |||||
| text += "\n\nTags: "; | |||||
| for (size_t i = 0; i < model->tags.size(); i++) { | for (size_t i = 0; i < model->tags.size(); i++) { | ||||
| if (i > 0) | if (i > 0) | ||||
| text += ", "; | text += ", "; | ||||
| int tagId = model->tags[i]; | int tagId = model->tags[i]; | ||||
| text += tag::tagAliases[tagId][0]; | |||||
| } | |||||
| // Description | |||||
| if (model->description != "") { | |||||
| text += "\n" + model->description; | |||||
| text += tag::getTag(tagId); | |||||
| } | } | ||||
| ui::Tooltip* tooltip = new ui::Tooltip; | ui::Tooltip* tooltip = new ui::Tooltip; | ||||
| tooltip->text = text; | tooltip->text = text; | ||||