mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
"Map Editor" button now takes the current map to edit
This commit is contained in:
parent
8d91cb90dc
commit
089f8ac49f
@ -21,8 +21,8 @@ android {
|
|||||||
applicationId "com.unciv.app"
|
applicationId "com.unciv.app"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode 227
|
versionCode 228
|
||||||
versionName "2.14.7"
|
versionName "2.14.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Had to add this crap for Travis to build, it wanted to sign the app
|
// 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 {
|
init {
|
||||||
addButton("Map editor".tr()){
|
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()
|
remove()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user