mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-12 10:59:55 +07:00
Merge branch 'master' of https://github.com/yairm210/Unciv
This commit is contained in:
commit
40325a38b4
@ -221,7 +221,7 @@ class CityScreen(internal val city: CityInfo): CameraStageBaseScreen() {
|
||||
game.setScreen(CityScreen(civInfo.cities[indexOfNextCity]))
|
||||
}
|
||||
|
||||
private fun getKeyboardListener(): InputListener = object: InputListener() {
|
||||
private fun getKeyboardListener(): InputListener = object : InputListener() {
|
||||
override fun keyDown(event: InputEvent?, keyCode: Int): Boolean {
|
||||
if (event == null) return super.keyDown(event, keyCode)
|
||||
when(event.keyCode) {
|
||||
|
@ -23,7 +23,7 @@ open class ZoomableScrollPane: ScrollPane(null) {
|
||||
|
||||
private fun addZoomListeners() {
|
||||
|
||||
addListener(object: InputListener() {
|
||||
addListener(object : InputListener() {
|
||||
override fun scrolled(event: InputEvent?, x: Float, y: Float, amount: Int): Boolean {
|
||||
if(amount > 0) zoom(scaleX * 0.8f)
|
||||
else zoom(scaleX / 0.8f)
|
||||
|
Loading…
Reference in New Issue
Block a user