diff --git a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt index 32a44f5682..73b962720c 100644 --- a/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt +++ b/core/src/com/unciv/ui/worldscreen/NotificationsScroll.kt @@ -28,7 +28,7 @@ class NotificationsScroll(private val notifications: List, interna minitable.add(ImageGetter.getImage("OtherIcons/Circle.png") .apply { color=notification.color }).size(10f).pad(5f) minitable.background(ImageGetter.getDrawable("skin/civTableBackground.png")) - minitable.add(label).pad(10f) + minitable.add(label).pad(5f).padRight(10f) if (notification.location != null) { minitable.addClickListener { diff --git a/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt b/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt index 65b93c0634..e8777cdc37 100644 --- a/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt +++ b/core/src/com/unciv/ui/worldscreen/unit/UnitTable.kt @@ -5,6 +5,7 @@ import com.badlogic.gdx.scenes.scene2d.ui.Table import com.unciv.logic.map.MapUnit import com.unciv.logic.map.TileInfo import com.unciv.logic.map.UnitType +import com.unciv.ui.cityscreen.addClickListener import com.unciv.ui.utils.CameraStageBaseScreen import com.unciv.ui.worldscreen.WorldScreen @@ -32,6 +33,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){ fun update() { prevIdleUnitButton.update() nextIdleUnitButton.update() + unitDescriptionLabel.clearListeners() if(selectedUnit!=null) { @@ -59,7 +61,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){ unitLabelText+="\n+"+unit.getFortificationTurns()*20+"% fortification" unitDescriptionLabel.setText(unitLabelText) - + unitDescriptionLabel.addClickListener { worldScreen.tileMapHolder.setCenterPosition(unit.getTile().position) } } else { unitNameLabel.setText("")