Commit ef9d53ab authored by fallenstardust's avatar fallenstardust

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

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