mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
2-digit numbers no longer clip with the outwards circle.
This is really minor.
This commit is contained in:
parent
f7b99541a1
commit
2b7e279b4d
@ -66,7 +66,7 @@ class TechButton(techName:String, private val techManager: TechManager, isWorldS
|
|||||||
addActor(closeImage)
|
addActor(closeImage)
|
||||||
})
|
})
|
||||||
|
|
||||||
for (improvement in ruleset.tileImprovements.values
|
for (improvement in ruleset.tileImprovements.values.asSequence()
|
||||||
.filter {
|
.filter {
|
||||||
it.techRequired == techName
|
it.techRequired == techName
|
||||||
|| it.uniqueObjects.any { u -> u.allParams.contains(techName) }
|
|| it.uniqueObjects.any { u -> u.allParams.contains(techName) }
|
||||||
@ -92,8 +92,8 @@ class TechButton(techName:String, private val techManager: TechManager, isWorldS
|
|||||||
fun addOrderIndicator(number:Int){
|
fun addOrderIndicator(number:Int){
|
||||||
orderIndicator = number.toString().toLabel(fontSize = 18)
|
orderIndicator = number.toString().toLabel(fontSize = 18)
|
||||||
.apply { setAlignment(Align.center) }
|
.apply { setAlignment(Align.center) }
|
||||||
.surroundWithCircle(25f, color = ImageGetter.getBlue())
|
.surroundWithCircle(28f, color = ImageGetter.getBlue())
|
||||||
.surroundWithCircle(27f,false)
|
.surroundWithCircle(30f,false)
|
||||||
orderIndicator!!.setPosition(0f, height, Align.topLeft)
|
orderIndicator!!.setPosition(0f, height, Align.topLeft)
|
||||||
addActor(orderIndicator)
|
addActor(orderIndicator)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user