close window working, but closing stats too

This commit is contained in:
Hash Borgir 2024-05-19 06:00:42 -06:00
parent 106bef4f85
commit 6cc15930ca
2 changed files with 13 additions and 10 deletions

View File

@ -27,23 +27,16 @@ namespace d2_tweaks {
public:
menu* m_filter_settings_menu;
menu* m_menu;
bool m_show;
bool m_show_bag;
bool m_show;
explicit loot_filter_settings_toggle_menu(token);
void toggle_show() {
m_show = !m_show;
set_enabled(m_show);
set_visible(m_show);
}
void toggle_filter_settings_click();
void toggle_stats_settings_click();
void toggle_help_click();
void toggle_cube_click();
void toggle_stash_click();
void toggle_bag_click();
void draw() override;
bool key_event(uint32_t key, bool up) override;

View File

@ -1379,10 +1379,20 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::extract_item(bool va
#include <d2tweaks/client/modules/loot_filter/loot_filter_settings_toggle_menu.h>
void d2_tweaks::client::modules::loot_filter_settings_menu::close_window(bool value) {
auto& toggle_menu = singleton<loot_filter_settings_toggle_menu>::instance();
toggle_menu.m_show == false;
toggle_menu.m_show = false;
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);
}
void d2_tweaks::client::modules::loot_filter_settings_menu::extract_rejuv_potion(bool value) {