mirror of
https://github.com/Mr-Wiseguy/Zelda64Recomp.git
synced 2025-04-06 05:56:41 +02:00
Hook up new manifest fields to mod UI
This commit is contained in:
parent
6279736a6a
commit
c21d8ccdff
@ -70,7 +70,7 @@ ModDetailsPanel::~ModDetailsPanel() {
|
||||
void ModDetailsPanel::set_mod_details(const recomp::mods::ModDetails& details, bool mod_enabled, bool toggle_enabled) {
|
||||
cur_details = details;
|
||||
|
||||
title_label->set_text(cur_details.mod_id);
|
||||
title_label->set_text(cur_details.display_name);
|
||||
version_label->set_text(cur_details.version.to_string());
|
||||
|
||||
std::string authors_str = "<i>Authors</i>:";
|
||||
@ -81,7 +81,7 @@ void ModDetailsPanel::set_mod_details(const recomp::mods::ModDetails& details, b
|
||||
}
|
||||
|
||||
authors_label->set_text(authors_str);
|
||||
description_label->set_text("Placeholder description. Some long text to make sure that wrapping is working correctly. Yet more text and so on.");
|
||||
description_label->set_text(cur_details.description);
|
||||
enable_toggle->set_checked(mod_enabled);
|
||||
enable_toggle->set_enabled(toggle_enabled);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user