From b7c9a30c3871b75bc864482300ce08870740d923 Mon Sep 17 00:00:00 2001 From: vegeta1k95 <32207817+vegeta1k95@users.noreply.github.com> Date: Thu, 2 Feb 2023 08:06:16 +0100 Subject: [PATCH] Fix promotion screen buttons clickhandler (#8535) Co-authored-by: tunerzinc@gmail.com --- core/src/com/unciv/ui/pickerscreens/PromotionPickerScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/pickerscreens/PromotionPickerScreen.kt b/core/src/com/unciv/ui/pickerscreens/PromotionPickerScreen.kt index d3c0479d6b..5a5c0d615a 100644 --- a/core/src/com/unciv/ui/pickerscreens/PromotionPickerScreen.kt +++ b/core/src/com/unciv/ui/pickerscreens/PromotionPickerScreen.kt @@ -3,6 +3,7 @@ package com.unciv.ui.pickerscreens import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.math.Vector2 import com.badlogic.gdx.scenes.scene2d.Actor +import com.badlogic.gdx.scenes.scene2d.Touchable import com.badlogic.gdx.scenes.scene2d.ui.Cell import com.badlogic.gdx.scenes.scene2d.ui.Image import com.badlogic.gdx.scenes.scene2d.ui.Table @@ -95,6 +96,7 @@ class PromotionButton( init { + touchable = Touchable.enabled borderSize = 5f pad(5f) @@ -261,7 +263,6 @@ class PromotionPickerScreen(val unit: MapUnit) : PickerScreen(), RecreateOnResiz // Sort nodes successors so promotions with same base name go first for (node in map.values) { - Log.debug("MYTAG: Node ${node.promotion.name} depth: ${node.maxDepth}") node.successors.sortWith(PromotionNode.CustomComparator(node)) }