mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
"Map Editor" button now takes the current map to edit
This commit is contained in:
@ -21,8 +21,8 @@ android {
|
||||
applicationId "com.unciv.app"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 28
|
||||
versionCode 227
|
||||
versionName "2.14.7"
|
||||
versionCode 228
|
||||
versionName "2.14.8"
|
||||
}
|
||||
|
||||
// Had to add this crap for Travis to build, it wanted to sign the app
|
||||
|
@ -15,7 +15,12 @@ class WorldScreenMenuTable(val worldScreen: WorldScreen) : PopupTable(worldScree
|
||||
|
||||
init {
|
||||
addButton("Map editor".tr()){
|
||||
UnCivGame.Current.screen = MapEditorScreen(null)
|
||||
val tileMapClone = worldScreen.gameInfo.tileMap.clone()
|
||||
for(tile in tileMapClone.values){
|
||||
tile.militaryUnit=null
|
||||
tile.civilianUnit=null
|
||||
}
|
||||
UnCivGame.Current.screen = MapEditorScreen(tileMapClone)
|
||||
remove()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user