Added tiles with visiable improvements, since not all improvements and combinations are ready this is behind a menu option
BIN
android/Images/TileSets/FantasyHex/Tiles/Desert+Farm.png
Normal file
After Width: | Height: | Size: 657 B |
After Width: | Height: | Size: 666 B |
After Width: | Height: | Size: 505 B |
After Width: | Height: | Size: 534 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Desert+Mine.png
Normal file
After Width: | Height: | Size: 593 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Desert+Plantation.png
Normal file
After Width: | Height: | Size: 493 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Desert+Trading post.png
Normal file
After Width: | Height: | Size: 523 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Grassland+Farm.png
Normal file
After Width: | Height: | Size: 651 B |
After Width: | Height: | Size: 1.3 KiB |
BIN
android/Images/TileSets/FantasyHex/Tiles/Grassland+Mine.png
Normal file
After Width: | Height: | Size: 564 B |
After Width: | Height: | Size: 534 B |
After Width: | Height: | Size: 540 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Hill+Mine.png
Normal file
After Width: | Height: | Size: 962 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Plains+Farm.png
Normal file
After Width: | Height: | Size: 705 B |
After Width: | Height: | Size: 1.2 KiB |
BIN
android/Images/TileSets/FantasyHex/Tiles/Plains+Mine.png
Normal file
After Width: | Height: | Size: 564 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Plains+Plantation.png
Normal file
After Width: | Height: | Size: 534 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Plains+Trading post.png
Normal file
After Width: | Height: | Size: 539 B |
BIN
android/Images/TileSets/FantasyHex/Tiles/Tundra+Trading post.png
Normal file
After Width: | Height: | Size: 1018 B |
Before Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.0 MiB |
@ -20,6 +20,7 @@ class GameSettings {
|
||||
var autoBuildingRoads: Boolean = true
|
||||
var showMinimap: Boolean = true
|
||||
var showPixelUnits: Boolean = false
|
||||
var showPixelImprovements: Boolean = false
|
||||
|
||||
var userName:String=""
|
||||
var userId = ""
|
||||
|
@ -132,10 +132,23 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings)
|
||||
val baseTerrainTileLocation = tileSetStrings.getBaseTerrainTile(tileInfo.baseTerrain)
|
||||
if (tileInfo.terrainFeature != null) {
|
||||
val baseTerrainAndFeatureTileLocation = "$baseTerrainTileLocation+${tileInfo.terrainFeature}"
|
||||
if(tileInfo.improvement!=null && UnCivGame.Current.settings.showPixelImprovements){
|
||||
val basefeatureAndImprovementTileLocation = "$baseTerrainAndFeatureTileLocation+${tileInfo.improvement}"
|
||||
if (ImageGetter.imageExists(basefeatureAndImprovementTileLocation))
|
||||
return basefeatureAndImprovementTileLocation
|
||||
}
|
||||
|
||||
if (ImageGetter.imageExists(baseTerrainAndFeatureTileLocation))
|
||||
return baseTerrainAndFeatureTileLocation
|
||||
}
|
||||
|
||||
if(tileInfo.improvement != null && UnCivGame.Current.settings.showPixelImprovements){
|
||||
val baseTerrainAndImprovement = "$baseTerrainTileLocation+${tileInfo.improvement}"
|
||||
|
||||
if (ImageGetter.imageExists(baseTerrainAndImprovement))
|
||||
return baseTerrainAndImprovement
|
||||
}
|
||||
|
||||
if (ImageGetter.imageExists(baseTerrainTileLocation)) return baseTerrainTileLocation
|
||||
return tileSetStrings.hexagon
|
||||
}
|
||||
|
@ -102,6 +102,12 @@ class WorldScreenOptionsTable(val worldScreen:WorldScreen) : PopupTable(worldScr
|
||||
update()
|
||||
}
|
||||
|
||||
innerTable.add("Show pixel improvements".toLabel())
|
||||
innerTable.addButton(if (settings.showPixelImprovements) "Yes".tr() else "No".tr()) {
|
||||
settings.showPixelImprovements = !settings.showPixelImprovements
|
||||
update()
|
||||
}
|
||||
|
||||
addLanguageSelectBox(innerTable)
|
||||
|
||||
addFontSelectBox(innerTable)
|
||||
|