mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04:00
Added Show Minimap setting option
This commit is contained in:
parent
17b3069668
commit
587c76b1f8
@ -17,6 +17,7 @@ class GameSettings {
|
||||
var tileSet:String = "FantasyHex"
|
||||
var showTutorials: Boolean = true
|
||||
var autoAssignCityProduction: Boolean = true
|
||||
var showMinimap: Boolean = true
|
||||
|
||||
var userName:String=""
|
||||
var userId = ""
|
||||
|
@ -137,5 +137,8 @@ class MinimapHolder(tileMapHolder: TileMapHolder): Table(){
|
||||
return toggleIconTable
|
||||
}
|
||||
|
||||
fun update(civInfo:CivilizationInfo){minimap.update(civInfo)}
|
||||
fun update(civInfo:CivilizationInfo){
|
||||
isVisible = UnCivGame.Current.settings.showMinimap
|
||||
minimap.update(civInfo)
|
||||
}
|
||||
}
|
@ -80,6 +80,12 @@ class WorldScreenOptionsTable(val worldScreen:WorldScreen) : PopupTable(worldScr
|
||||
update()
|
||||
}
|
||||
|
||||
innerTable.add("Show minimap".toLabel())
|
||||
innerTable.addButton(if(settings.showMinimap) "Yes".tr() else "No".tr()) {
|
||||
settings.showMinimap= !settings.showMinimap
|
||||
update()
|
||||
}
|
||||
|
||||
addLanguageSelectBox(innerTable)
|
||||
|
||||
addFontSelectBox(innerTable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user