mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp
synced 2026-06-24 01:41:34 -04:00
Hook up new manifest fields to mod UI
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user