mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
Hook up new manifest fields to mod UI
This commit is contained in:
parent
8062a420c6
commit
13a22b1504
2 changed files with 5 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue