Commit ef9d53ab authored by fallenstardust's avatar fallenstardust

调整刷新按钮分类与卡组名的执行位置

parent 3c1003e7
......@@ -381,7 +381,6 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame->stDMMessage2->setText(mainGame->lstCategories->getListItem(mainGame->lstCategories->getSelected()));
mainGame->PopupElement(mainGame->wDMQuery);
mainGame->gMutex.unlock();
SetCategoryDeckNameOnButton(mainGame->btnManageDeck, L"\n");
prev_operation = id;
break;
}
......@@ -699,6 +698,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
mainGame->stDMMessage2->setVisible(false);
mainGame->ebDMName->setVisible(false);
mainGame->cbDMCategory->setVisible(false);
SetCategoryDeckNameOnButton(mainGame->btnManageDeck, L"\n");
break;
}
case BUTTON_DM_CANCEL: {
......@@ -770,6 +770,7 @@ bool DeckBuilder::OnEvent(const irr::SEvent& event) {
prev_deck = sel;
is_modified = false;
}
SetCategoryDeckNameOnButton(mainGame->btnManageDeck, L"\n");
prev_sel = -1;
} else if(prev_operation == BUTTON_LEAVE_GAME) {
Terminate();
......
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