Natural wonders are standalone tiles in new layering
Before Width: | Height: | Size: 864 B After Width: | Height: | Size: 864 B |
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 859 B |
Before Width: | Height: | Size: 800 B After Width: | Height: | Size: 800 B |
Before Width: | Height: | Size: 959 B After Width: | Height: | Size: 959 B |
@ -2069,7 +2069,7 @@ TileSets/FantasyHex/Tiles/Barringer Crater
|
|||||||
orig: 32, 28
|
orig: 32, 28
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
TileSets/FantasyHex-New/Tiles/Mountain+Barringer Crater
|
TileSets/FantasyHex-New/Tiles/Barringer Crater
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 2013, 1592
|
xy: 2013, 1592
|
||||||
size: 32, 28
|
size: 32, 28
|
||||||
@ -2181,7 +2181,7 @@ TileSets/FantasyHex/Tiles/Cerro de Potosi
|
|||||||
orig: 32, 28
|
orig: 32, 28
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
TileSets/FantasyHex-New/Tiles/Mountain+Cerro de Potosi
|
TileSets/FantasyHex-New/Tiles/Cerro de Potosi
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 1584, 542
|
xy: 1584, 542
|
||||||
size: 32, 28
|
size: 32, 28
|
||||||
@ -3343,7 +3343,7 @@ TileSets/FantasyHex/Tiles/Krakatoa
|
|||||||
orig: 32, 30
|
orig: 32, 30
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
TileSets/FantasyHex-New/Tiles/Mountain+Krakatoa
|
TileSets/FantasyHex-New/Tiles/Krakatoa
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 1704, 745
|
xy: 1704, 745
|
||||||
size: 32, 30
|
size: 32, 30
|
||||||
@ -3441,7 +3441,7 @@ TileSets/FantasyHex/Tiles/Mount Fuji
|
|||||||
orig: 32, 30
|
orig: 32, 30
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
TileSets/FantasyHex-New/Tiles/Mountain+Mount Fuji
|
TileSets/FantasyHex-New/Tiles/Mount Fuji
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 1806, 837
|
xy: 1806, 837
|
||||||
size: 32, 30
|
size: 32, 30
|
||||||
|
@ -85,11 +85,11 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings,
|
|||||||
val icons = TileGroupIcons(this)
|
val icons = TileGroupIcons(this)
|
||||||
|
|
||||||
class UnitLayerGroupClass:Group(){
|
class UnitLayerGroupClass:Group(){
|
||||||
override fun draw(batch: Batch?, parentAlpha: Float) { super.draw(batch, parentAlpha) }
|
override fun draw(batch: Batch?, parentAlpha: Float) = super.draw(batch, parentAlpha)
|
||||||
}
|
}
|
||||||
|
|
||||||
class UnitImageLayerGroupClass:ActionlessGroup(){
|
class UnitImageLayerGroupClass:ActionlessGroup(){
|
||||||
override fun draw(batch: Batch?, parentAlpha: Float) { super.draw(batch, parentAlpha) }
|
override fun draw(batch: Batch?, parentAlpha: Float) = super.draw(batch, parentAlpha)
|
||||||
}
|
}
|
||||||
// We separate the units from the units' backgrounds, because all the background elements are in the same texture, and the units' aren't
|
// We separate the units from the units' backgrounds, because all the background elements are in the same texture, and the units' aren't
|
||||||
val unitLayerGroup = UnitLayerGroupClass().apply { isTransform = false; setSize(groupSize, groupSize);touchable = Touchable.disabled }
|
val unitLayerGroup = UnitLayerGroupClass().apply { isTransform = false; setSize(groupSize, groupSize);touchable = Touchable.disabled }
|
||||||
@ -169,11 +169,11 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings,
|
|||||||
|
|
||||||
fun getTileBaseImageLocationsNew(viewingCiv: CivilizationInfo?): List<String> {
|
fun getTileBaseImageLocationsNew(viewingCiv: CivilizationInfo?): List<String> {
|
||||||
if (viewingCiv == null && !showEntireMap) return listOf(tileSetStrings.hexagon)
|
if (viewingCiv == null && !showEntireMap) return listOf(tileSetStrings.hexagon)
|
||||||
|
if (tileInfo.naturalWonder != null) return listOf(tileInfo.naturalWonder!!)
|
||||||
|
|
||||||
val shouldShowImprovement = tileInfo.improvement != null && UncivGame.Current.settings.showPixelImprovements
|
val shouldShowImprovement = tileInfo.improvement != null && UncivGame.Current.settings.showPixelImprovements
|
||||||
|
|
||||||
val shouldShowResource = UncivGame.Current.settings.showPixelImprovements
|
val shouldShowResource = UncivGame.Current.settings.showPixelImprovements && tileInfo.resource != null &&
|
||||||
&& tileInfo.resource != null &&
|
|
||||||
(showEntireMap || viewingCiv == null || tileInfo.hasViewableResource(viewingCiv))
|
(showEntireMap || viewingCiv == null || tileInfo.hasViewableResource(viewingCiv))
|
||||||
|
|
||||||
var resourceAndImprovementSequence = sequenceOf<String?>()
|
var resourceAndImprovementSequence = sequenceOf<String?>()
|
||||||
@ -181,7 +181,7 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings,
|
|||||||
if (shouldShowImprovement) resourceAndImprovementSequence += sequenceOf(tileInfo.improvement)
|
if (shouldShowImprovement) resourceAndImprovementSequence += sequenceOf(tileInfo.improvement)
|
||||||
resourceAndImprovementSequence = resourceAndImprovementSequence.filterNotNull()
|
resourceAndImprovementSequence = resourceAndImprovementSequence.filterNotNull()
|
||||||
|
|
||||||
val terrainImages = (sequenceOf(tileInfo.baseTerrain) + tileInfo.terrainFeatures.asSequence() + sequenceOf(tileInfo.naturalWonder)).filterNotNull()
|
val terrainImages = (sequenceOf(tileInfo.baseTerrain) + tileInfo.terrainFeatures.asSequence()).filterNotNull()
|
||||||
val allTogether = (terrainImages + resourceAndImprovementSequence).joinToString("+").let { tileSetStrings.getTile(it) }
|
val allTogether = (terrainImages + resourceAndImprovementSequence).joinToString("+").let { tileSetStrings.getTile(it) }
|
||||||
|
|
||||||
if (ImageGetter.imageExists(allTogether)) return listOf(allTogether)
|
if (ImageGetter.imageExists(allTogether)) return listOf(allTogether)
|
||||||
|