mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -04:00
Fix incorrect dimming (#8505)
Co-authored-by: tunerzinc@gmail.com <vfylfhby>
This commit is contained in:
parent
7258507088
commit
898d312109
@ -273,10 +273,10 @@ class TileLayerMisc(tileGroup: TileGroup, size: Float) : TileLayer(tileGroup, si
|
||||
arrowsToDraw.clear()
|
||||
}
|
||||
|
||||
fun dimImprovement(dim: Boolean) = improvementIcon?.setColor(1f, 1f, 1f, if (dim) 0.5f else 1f)
|
||||
fun dimResource(dim: Boolean) = resourceIcon?.setColor(1f, 1f, 1f, if (dim) 0.5f else 1f)
|
||||
fun dimYields(dim: Boolean) = yields.setColor(1f, 1f, 1f, if (dim) 0.5f else 1f)
|
||||
fun dimPopulation(dim: Boolean) = populationIcon?.setColor(1f, 1f, 1f, if (dim) 0.5f else 1f)
|
||||
fun dimImprovement(dim: Boolean) { improvementIcon?.color?.a = if (dim) 0.5f else 1f }
|
||||
fun dimResource(dim: Boolean) { resourceIcon?.color?.a = if (dim) 0.5f else 1f }
|
||||
fun dimYields(dim: Boolean) { yields.color.a = if (dim) 0.5f else 1f }
|
||||
fun dimPopulation(dim: Boolean) { populationIcon?.color?.a = if (dim) 0.4f else 1f }
|
||||
|
||||
fun setYieldVisible(isVisible: Boolean) {
|
||||
yields.isVisible = isVisible
|
||||
|
Loading…
x
Reference in New Issue
Block a user