close panel button fixed

This commit is contained in:
Hash Borgir 2024-05-19 06:08:50 -06:00
parent 6cc15930ca
commit b4b85425aa
2 changed files with 7 additions and 3 deletions

View File

@ -16,7 +16,7 @@ namespace d2_tweaks {
namespace modules {
class loot_filter_settings_toggle_menu final : public ui::menu, singleton<loot_filter_settings_toggle_menu> {
ui::controls::button* m_toggle_filter_settings_btn;
ui::controls::button* m_btn_toggle_stats;
ui::controls::button* m_btn_toggle_help;
ui::controls::button* m_btn_toggle_cube;
ui::controls::button* m_btn_toggle_stash;
@ -29,6 +29,8 @@ namespace d2_tweaks {
menu* m_menu;
bool m_show;
ui::controls::button* m_btn_toggle_stats;
explicit loot_filter_settings_toggle_menu(token);
void toggle_filter_settings_click();

View File

@ -1384,11 +1384,13 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::close_window(bool va
toggle_menu.m_show = false;
m_stats_enabled = true;
toggle_menu.m_filter_settings_menu->set_enabled(false);
toggle_menu.m_filter_settings_menu->set_visible(false);
//toggle_menu.m_btn_toggle_stats->set_enabled(true);
//toggle_menu.m_btn_toggle_stats->set_visible(true);
toggle_menu.m_btn_toggle_stats->set_enabled(true);
toggle_menu.m_btn_toggle_stats->set_visible(true);