mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-05 00:18:13 +07:00
Fix editor zoom in (#7047)
This commit is contained in:
parent
7df71571dc
commit
22c8b033c9
@ -31,8 +31,6 @@ class EditorMapHolder(
|
||||
private lateinit var tileGroupMap: TileGroupMap<TileGroup>
|
||||
private val allTileGroups = ArrayList<TileGroup>()
|
||||
|
||||
private val maxWorldZoomOut = UncivGame.Current.settings.maxWorldZoomOut
|
||||
|
||||
private var blinkAction: Action? = null
|
||||
|
||||
private var savedCaptureListeners = emptyList<EventListener>()
|
||||
@ -91,9 +89,7 @@ class EditorMapHolder(
|
||||
tileGroup.onClick { onTileClick(tileGroup.tileInfo) }
|
||||
}
|
||||
|
||||
setSize(stage.width * maxWorldZoomOut, stage.height * maxWorldZoomOut)
|
||||
setOrigin(width / 2,height / 2)
|
||||
center(stage)
|
||||
setSize(stage.width, stage.height)
|
||||
|
||||
layout()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user