1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Update unit growth in town screen UI when unequipping Legion pieces

This commit is contained in:
Ivan Savenko
2025-06-25 11:50:33 +03:00
parent 9c2e49f95f
commit 099053437a
12 changed files with 42 additions and 27 deletions

View File

@@ -261,7 +261,7 @@ CExchangeWindow::CExchangeWindow(ObjectInstanceID hero1, ObjectInstanceID hero2,
}
}
CExchangeWindow::update();
CExchangeWindow::updateArtifacts();
}
void CExchangeWindow::creatureArrowButtonCallback(bool leftToRight, SlotID slotId)
@@ -361,7 +361,7 @@ void CExchangeWindow::updateGarrisons()
{
garr->recreateSlots();
update();
updateArtifacts();
}
bool CExchangeWindow::holdsGarrison(const CArmedInstance * army)
@@ -375,13 +375,13 @@ void CExchangeWindow::questLogShortcut()
GAME->interface()->showQuestLog();
}
void CExchangeWindow::update()
void CExchangeWindow::updateArtifacts()
{
const bool qeLayout = isQuickExchangeLayoutAvailable();
OBJECT_CONSTRUCTION;
CWindowWithArtifacts::update();
CWindowWithArtifacts::updateArtifacts();
for(size_t leftRight : {0, 1})
{