separated whiteDot for images from TableBackground for backgrounds
This commit is contained in:
parent
4d5ae8fa25
commit
e1350cdb05
7 changed files with 576 additions and 574 deletions
BIN
android/Images/OtherIcons/TableBackground.png
Normal file
BIN
android/Images/OtherIcons/TableBackground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 187 B |
Binary file not shown.
Before Width: | Height: | Size: 2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 119 B |
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
@ -167,7 +167,10 @@ object ImageGetter {
|
|||
fun getCircle() = getImage("OtherIcons/Circle")
|
||||
|
||||
fun getBackground(color:Color): Drawable {
|
||||
return getDrawable(whiteDotLocation).tint(color)
|
||||
val drawable = getDrawable("OtherIcons/TableBackground")
|
||||
drawable.minHeight=0f
|
||||
drawable.minWidth=0f
|
||||
return drawable.tint(color)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -12,8 +12,7 @@ import com.unciv.ui.utils.*
|
|||
|
||||
open class PopupTable(val screen: CameraStageBaseScreen): Table(CameraStageBaseScreen.skin) {
|
||||
init {
|
||||
val tileTableBackground = ImageGetter.getBackground(ImageGetter.getBlue().lerp(Color.BLACK, 0.5f))
|
||||
background = tileTableBackground
|
||||
background = ImageGetter.getBackground(ImageGetter.getBlue().lerp(Color.BLACK, 0.5f))
|
||||
|
||||
this.pad(20f)
|
||||
this.defaults().pad(5f)
|
||||
|
|
Loading…
Reference in a new issue