Resolved #854 - promotion buttons show description also for non-pickable promotions

This commit is contained in:
Yair Morgenstern
2019-06-04 22:45:43 +03:00
parent 8c53244427
commit 5b884c0ecf

View File

@ -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)