mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 01:07:40 +07:00
Fix minor bug, preventing flag shadows (if added) to appear (#8147)
Co-authored-by: tunerzinc@gmail.com <vfylfhby>
This commit is contained in:
parent
bf81bb25e1
commit
1d66081df7
@ -1,5 +1,6 @@
|
||||
package com.unciv.ui.utils
|
||||
|
||||
import com.badlogic.gdx.Gdx
|
||||
import com.badlogic.gdx.graphics.Color
|
||||
import com.badlogic.gdx.scenes.scene2d.Group
|
||||
import com.badlogic.gdx.scenes.scene2d.actions.Actions
|
||||
@ -11,6 +12,7 @@ import com.unciv.logic.map.MapUnit
|
||||
import com.unciv.ui.images.ImageGetter
|
||||
import com.unciv.ui.utils.extensions.center
|
||||
import com.unciv.ui.utils.extensions.surroundWithCircle
|
||||
import com.unciv.utils.Log
|
||||
|
||||
class UnitGroup(val unit: MapUnit, val size: Float): Group() {
|
||||
var actionGroup :Group? = null
|
||||
@ -59,7 +61,7 @@ class UnitGroup(val unit: MapUnit, val size: Float): Group() {
|
||||
flagBg.addActor(outerBg)
|
||||
flagBg.addActor(innerBg)
|
||||
if (maskBg != null)
|
||||
addActor(maskBg)
|
||||
flagBg.addActor(maskBg)
|
||||
flagBg.center(this)
|
||||
|
||||
unitBaseImage.center(this)
|
||||
|
Loading…
Reference in New Issue
Block a user