mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
activate battle hexes after heroes
gives hexes higher priority when performing "hit test" for mouse click as CGuiHandler::handleElementActivate() uses push_front to a list this fixes RMB click on the topmost corner stacks: now it shows stack info instead of hero
This commit is contained in:
committed by
Andrii Danylchenko
parent
bccc658e8b
commit
e6e7679a2c
@ -502,13 +502,14 @@ void CBattleInterface::activate()
|
|||||||
bWait->activate();
|
bWait->activate();
|
||||||
bDefence->activate();
|
bDefence->activate();
|
||||||
|
|
||||||
for (auto hex : bfield)
|
|
||||||
hex->activate();
|
|
||||||
|
|
||||||
if (attackingHero)
|
if (attackingHero)
|
||||||
attackingHero->activate();
|
attackingHero->activate();
|
||||||
if (defendingHero)
|
if (defendingHero)
|
||||||
defendingHero->activate();
|
defendingHero->activate();
|
||||||
|
|
||||||
|
for (auto hex : bfield)
|
||||||
|
hex->activate();
|
||||||
|
|
||||||
if (settings["battle"]["showQueue"].Bool())
|
if (settings["battle"]["showQueue"].Bool())
|
||||||
queue->activate();
|
queue->activate();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user