mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-11-30 04:35:58 +00:00
close window working, but closing stats too
This commit is contained in:
parent
106bef4f85
commit
6cc15930ca
@ -28,22 +28,15 @@ namespace d2_tweaks {
|
||||
menu* m_filter_settings_menu;
|
||||
menu* m_menu;
|
||||
bool m_show;
|
||||
bool m_show_bag;
|
||||
|
||||
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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user