mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
fixed enemy city buttons not to be clickable. simplifies tile selection when attacking
This commit is contained in:
parent
d3f7a73cf3
commit
0e1a7f44c4
@ -39,7 +39,6 @@ class CityButton(val city: CityInfo, internal val tileGroup: WorldTileGroup, ski
|
|||||||
|
|
||||||
// So you can click anywhere on the button to go to the city
|
// So you can click anywhere on the button to go to the city
|
||||||
touchable = Touchable.enabled
|
touchable = Touchable.enabled
|
||||||
label.touchable = Touchable.enabled
|
|
||||||
|
|
||||||
// clicking swings the button a little down to allow selection of units there.
|
// clicking swings the button a little down to allow selection of units there.
|
||||||
// this also allows to target selected units to move to the city tile from elsewhere.
|
// this also allows to target selected units to move to the city tile from elsewhere.
|
||||||
@ -102,7 +101,6 @@ class CityButton(val city: CityInfo, internal val tileGroup: WorldTileGroup, ski
|
|||||||
pack()
|
pack()
|
||||||
setOrigin(Align.center)
|
setOrigin(Align.center)
|
||||||
centerX(tileGroup)
|
centerX(tileGroup)
|
||||||
touchable = Touchable.enabled
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun moveButtonDown() {
|
private fun moveButtonDown() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user