mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-18 19:59:47 +07:00
Resolved #854 - promotion buttons show description also for non-pickable promotions
This commit is contained in:
@ -87,10 +87,8 @@ class PromotionPickerScreen(mapUnit: MapUnit) : PickerScreen() {
|
||||
promotionButton.addSeparatorVertical()
|
||||
promotionButton.add(pickNow).padLeft(10f).fillY()
|
||||
}
|
||||
else {
|
||||
group.touchable = Touchable.disabled
|
||||
promotionButton.disable()
|
||||
}
|
||||
else promotionButton.color= Color.GRAY
|
||||
|
||||
if(unitHasPromotion) promotionButton.color = Color.GREEN
|
||||
availablePromotionsGroup.addActor(promotionButton)
|
||||
|
||||
|
Reference in New Issue
Block a user