Units in overview now scrollable

This commit is contained in:
Yair Morgenstern 2018-11-03 19:55:40 +02:00
parent c1cc32e95b
commit 788e0d115f

View file

@ -58,7 +58,7 @@ class EmpireOverviewScreen : CameraStageBaseScreen(){
val setUnitsButton = TextButton("Units".tr(),skin)
setUnitsButton .onClick {
centerTable.clear()
centerTable.add(getUnitTable())
centerTable.add(ScrollPane(getUnitTable())).height(stage.height*0.8f)
centerTable.pack()
centerTable.center(stage)
}