mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
Resource toggle button is consistent with population toggle - by @lishaoxia1985
#2809
This commit is contained in:
parent
1fe8d704a0
commit
ddf12b743c
@ -155,7 +155,10 @@ class MinimapHolder(mapHolder: WorldMapHolder): Table(){
|
||||
}
|
||||
toggleIconTable.add(populationImage).row()
|
||||
|
||||
val resourceImage = ImageGetter.getImage("ResourceIcons/Cattle").surroundWithCircle(40f)
|
||||
val resourceImage = ImageGetter.getImage("ResourceIcons/Cattle")
|
||||
.surroundWithCircle(30f).apply { circle.color = Color.GREEN }
|
||||
.surroundWithCircle(40f,false).apply { circle.color = Color.BLACK }
|
||||
|
||||
resourceImage.actor.color.a = if(settings.showResourcesAndImprovements) 1f else 0.5f
|
||||
resourceImage.onClick {
|
||||
settings.showResourcesAndImprovements = !settings.showResourcesAndImprovements
|
||||
|
Loading…
x
Reference in New Issue
Block a user