Hook up new manifest fields to mod UI

This commit is contained in:
Mr-Wiseguy
2025-01-28 03:42:49 -05:00
parent 8062a420c6
commit 13a22b1504
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -49,7 +49,7 @@ ModEntryView::ModEntryView(Element *parent) : Element(parent) {
{
name_label = context.create_element<Label>(body_container, LabelStyle::Normal);
description_label = context.create_element<Label>(body_container, "Short description of mod here.", LabelStyle::Small);
description_label = context.create_element<Label>(body_container, LabelStyle::Small);
} // body_container
} // this
}
@@ -59,7 +59,8 @@ ModEntryView::~ModEntryView() {
}
void ModEntryView::set_mod_details(const recomp::mods::ModDetails &details) {
name_label->set_text(details.mod_id);
name_label->set_text(details.display_name);
description_label->set_text(details.short_description);
}
// ModEntryButton