Commit ee2dd22c authored by mercury233's avatar mercury233 Committed by GitHub

update

parent 20e62e77
...@@ -220,10 +220,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) { ...@@ -220,10 +220,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
for(int i = 0; i < 32; ++i, filter <<= 1) for(int i = 0; i < 32; ++i, filter <<= 1)
if(mainGame->chkCategory[i]->isChecked()) if(mainGame->chkCategory[i]->isChecked())
filter_effect |= filter; filter_effect |= filter;
if(filter_effect > 0) mainGame->btnEffectFilter->setPressed(filter_effect > 0);
mainGame->btnEffectFilter->setPressed(true);
else
mainGame->btnEffectFilter->setPressed(false);
mainGame->HideElement(mainGame->wCategories); mainGame->HideElement(mainGame->wCategories);
InstantSearch(); InstantSearch();
break; break;
...@@ -323,10 +320,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) { ...@@ -323,10 +320,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
if (mainGame->btnMark[7]->isPressed()) if (mainGame->btnMark[7]->isPressed())
filter_marks |= 0004; filter_marks |= 0004;
mainGame->HideElement(mainGame->wLinkMarks); mainGame->HideElement(mainGame->wLinkMarks);
if(filter_marks > 0) mainGame->btnMarksFilter->setPressed(filter_marks > 0);
mainGame->btnMarksFilter->setPressed(true);
else
mainGame->btnMarksFilter->setPressed(false);
InstantSearch(); InstantSearch();
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment