mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-11 01:10:26 +02:00
Fix visibility of alternative actions button in tactics stage
This commit is contained in:
@ -217,9 +217,12 @@ void BattleWindow::tacticPhaseStarted()
|
|||||||
auto menuTactics = widget<CIntObject>("menuTactics");
|
auto menuTactics = widget<CIntObject>("menuTactics");
|
||||||
auto tacticNext = widget<CIntObject>("tacticNext");
|
auto tacticNext = widget<CIntObject>("tacticNext");
|
||||||
auto tacticEnd = widget<CIntObject>("tacticEnd");
|
auto tacticEnd = widget<CIntObject>("tacticEnd");
|
||||||
|
auto alternativeAction = widget<CIntObject>("alternativeAction");
|
||||||
|
|
||||||
menuBattle->disable();
|
menuBattle->disable();
|
||||||
console->disable();
|
console->disable();
|
||||||
|
if (alternativeAction)
|
||||||
|
alternativeAction->disable();
|
||||||
|
|
||||||
menuTactics->enable();
|
menuTactics->enable();
|
||||||
tacticNext->enable();
|
tacticNext->enable();
|
||||||
@ -235,9 +238,12 @@ void BattleWindow::tacticPhaseEnded()
|
|||||||
auto menuTactics = widget<CIntObject>("menuTactics");
|
auto menuTactics = widget<CIntObject>("menuTactics");
|
||||||
auto tacticNext = widget<CIntObject>("tacticNext");
|
auto tacticNext = widget<CIntObject>("tacticNext");
|
||||||
auto tacticEnd = widget<CIntObject>("tacticEnd");
|
auto tacticEnd = widget<CIntObject>("tacticEnd");
|
||||||
|
auto alternativeAction = widget<CIntObject>("alternativeAction");
|
||||||
|
|
||||||
menuBattle->enable();
|
menuBattle->enable();
|
||||||
console->enable();
|
console->enable();
|
||||||
|
if (alternativeAction)
|
||||||
|
alternativeAction->enable();
|
||||||
|
|
||||||
menuTactics->disable();
|
menuTactics->disable();
|
||||||
tacticNext->disable();
|
tacticNext->disable();
|
||||||
|
Reference in New Issue
Block a user