mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
For issue 3838: Bigger target on "next city" button (#3840)
This commit is contained in:
parent
29dfa338ba
commit
089a415da9
@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user