mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-26 23:58:43 +07:00
Fix: do not trim the text in the statistics screen (#1810)
This commit is contained in:
@ -56,13 +56,13 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS
|
|||||||
val titleTable = Table().background(ImageGetter.getBackground(ImageGetter.getBlue()))
|
val titleTable = Table().background(ImageGetter.getBackground(ImageGetter.getBlue()))
|
||||||
val width = cityScreen.stage.width/4 - 2*pad
|
val width = cityScreen.stage.width/4 - 2*pad
|
||||||
val showHideTableWrapper = Table()
|
val showHideTableWrapper = Table()
|
||||||
showHideTableWrapper.add(showHideTable).width(width)
|
showHideTableWrapper.add(showHideTable).minWidth(width)
|
||||||
titleTable.add(str.toLabel(fontSize = 24))
|
titleTable.add(str.toLabel(fontSize = 24))
|
||||||
titleTable.onClick {
|
titleTable.onClick {
|
||||||
if(showHideTableWrapper.hasChildren()) showHideTableWrapper.clear()
|
if(showHideTableWrapper.hasChildren()) showHideTableWrapper.clear()
|
||||||
else showHideTableWrapper.add(showHideTable).width(width)
|
else showHideTableWrapper.add(showHideTable).minWidth(width)
|
||||||
}
|
}
|
||||||
add(titleTable).width(width).row()
|
add(titleTable).minWidth(width).row()
|
||||||
add(showHideTableWrapper).row()
|
add(showHideTableWrapper).row()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user