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) {
for(int i = 0; i < 32; ++i, filter <<= 1)
if(mainGame->chkCategory[i]->isChecked())
filter_effect |= filter;
if(filter_effect > 0)
mainGame->btnEffectFilter->setPressed(true);
else
mainGame->btnEffectFilter->setPressed(false);
mainGame->btnEffectFilter->setPressed(filter_effect > 0);
mainGame->HideElement(mainGame->wCategories);
InstantSearch();
break;
......@@ -323,10 +320,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
if (mainGame->btnMark[7]->isPressed())
filter_marks |= 0004;
mainGame->HideElement(mainGame->wLinkMarks);
if(filter_marks > 0)
mainGame->btnMarksFilter->setPressed(true);
else
mainGame->btnMarksFilter->setPressed(false);
mainGame->btnMarksFilter->setPressed(filter_marks > 0);
InstantSearch();
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