From 2506c1e64d647427713a9f0705e9858c60674069 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Mon, 10 Jun 2024 08:16:06 -0400 Subject: [PATCH] Fix bug about mod menu buttons on pause menu --- src/pc/djui/djui_panel_mod_menu.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pc/djui/djui_panel_mod_menu.c b/src/pc/djui/djui_panel_mod_menu.c index b10257fe..e03790b7 100644 --- a/src/pc/djui/djui_panel_mod_menu.c +++ b/src/pc/djui/djui_panel_mod_menu.c @@ -18,7 +18,13 @@ void djui_panel_mod_menu_mod_button(struct DjuiBase* caller) { struct LuaHookedModMenuElement* hooked = &gHookedModMenuElements[caller->tag]; smlua_call_mod_menu_element_hook(hooked, caller->tag); struct DjuiButton* button = (struct DjuiButton*)caller; - djui_text_set_text(button->text, hooked->name); + if (gHookedModMenuElementsCount == 1) { + char buffer[256] = { 0 }; + snprintf(buffer, 256, "%s - %s", hooked->mod->name, hooked->name); + djui_text_set_text(button->text, buffer); + } else { + djui_text_set_text(button->text, hooked->name); + } } void djui_panel_mod_menu_mod_checkbox(struct DjuiBase* caller) {