For issue 3838: Bigger target on "next city" button (#3840)

This commit is contained in:
SomeTroglodyte 2021-04-26 23:05:59 +02:00 committed by GitHub
parent 29dfa338ba
commit 089a415da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
package com.unciv.ui.cityscreen
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.scenes.scene2d.Touchable
import com.badlogic.gdx.scenes.scene2d.ui.Table
import com.badlogic.gdx.scenes.scene2d.ui.TextField
import com.badlogic.gdx.utils.Align
@ -19,6 +20,7 @@ class CityScreenCityPickerTable(private val cityScreen: CityScreen) : Table() {
val image = ImageGetter.getImage("OtherIcons/BackArrow")
image.color = civInfo.nation.getInnerColor()
prevCityButton.add(image).size(25f).pad(10f)
prevCityButton.touchable = Touchable.enabled
prevCityButton.onClick { cityScreen.page(-1) }
add(prevCityButton).pad(10f)
} else add()
@ -73,10 +75,11 @@ class CityScreenCityPickerTable(private val cityScreen: CityScreen) : Table() {
image.rotation = 180f
image.color = civInfo.nation.getInnerColor()
nextCityButton.add(image).size(25f).pad(10f)
nextCityButton.touchable = Touchable.enabled
nextCityButton.onClick { cityScreen.page(1) }
add(nextCityButton).pad(10f)
} else add()
pack()
}
}
}