From 13a22b1504553a64522eebeea99e1f80b8b020da Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Tue, 28 Jan 2025 03:42:49 -0500 Subject: [PATCH] Hook up new manifest fields to mod UI --- src/ui/ui_mod_details_panel.cpp | 4 ++-- src/ui/ui_mod_menu.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/ui_mod_details_panel.cpp b/src/ui/ui_mod_details_panel.cpp index 2b06a34..468dd68 100644 --- a/src/ui/ui_mod_details_panel.cpp +++ b/src/ui/ui_mod_details_panel.cpp @@ -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 = "Authors:"; @@ -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); } diff --git a/src/ui/ui_mod_menu.cpp b/src/ui/ui_mod_menu.cpp index 9578585..27a4543 100644 --- a/src/ui/ui_mod_menu.cpp +++ b/src/ui/ui_mod_menu.cpp @@ -49,7 +49,7 @@ ModEntryView::ModEntryView(Element *parent) : Element(parent) { { name_label = context.create_element