mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2024-11-30 04:35:58 +00:00
close panel button fixed
This commit is contained in:
parent
6cc15930ca
commit
b4b85425aa
@ -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();
|
||||
|
@ -1383,12 +1383,14 @@ void d2_tweaks::client::modules::loot_filter_settings_menu::close_window(bool va
|
||||
auto& toggle_menu = singleton<loot_filter_settings_toggle_menu>::instance();
|
||||
|
||||
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);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user