mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-22 02:07:43 +07:00
Select the next unit after closing the improvement screen (#8545)
This commit is contained in:
parent
5a267e436c
commit
e113a3a140
@ -93,7 +93,7 @@ enum class UnitActionType(
|
||||
FoundCity("Found city",
|
||||
{ ImageGetter.getUnitActionPortrait("FoundCity") }, 'c', UncivSound.Silent),
|
||||
ConstructImprovement("Construct improvement",
|
||||
{ ImageGetter.getUnitActionPortrait("ConstructImprovement") }, 'i'),
|
||||
{ ImageGetter.getUnitActionPortrait("ConstructImprovement") }, 'i', false),
|
||||
Repair(Constants.repair,
|
||||
{ ImageGetter.getUnitActionPortrait("Repair") }, 'r', UncivSound.Construction),
|
||||
Create("Create",
|
||||
|
@ -370,7 +370,7 @@ object UnitActions {
|
||||
actionList += UnitAction(UnitActionType.ConstructImprovement,
|
||||
isCurrentAction = unit.currentTile.hasImprovementInProgress(),
|
||||
action = {
|
||||
worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { unitTable.selectUnit() })
|
||||
worldScreen.game.pushScreen(ImprovementPickerScreen(tile, unit) { worldScreen.switchToNextUnit() })
|
||||
}.takeIf { couldConstruct }
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user