Fix unresponsive policy screen header (#8552)

* Fix unresponsive policy screen header

* Update PolicyPickerScreen.kt
This commit is contained in:
Gualdimar 2023-02-03 11:34:57 +02:00 committed by GitHub
parent 3180fce94d
commit 4c7d7e1119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ package com.unciv.ui.pickerscreens
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.scenes.scene2d.Actor
import com.badlogic.gdx.scenes.scene2d.Group
import com.badlogic.gdx.scenes.scene2d.Touchable
import com.badlogic.gdx.scenes.scene2d.ui.Cell
import com.badlogic.gdx.scenes.scene2d.ui.Image
import com.badlogic.gdx.scenes.scene2d.ui.Table
@ -562,6 +563,8 @@ class PolicyPickerScreen(val worldScreen: WorldScreen, civInfo: Civilization = w
table.add(expandIcon).minWidth(15f).expandX().left()
table.add(branch.name.tr().uppercase().toLabel(fontSize = 14).apply { setAlignment(Align.center) }).center()
table.add(icon).expandX().left().padLeft(5f)
table.setTouchable(Touchable.enabled)
header.add(table).minWidth(150f).growX()
header.pack()