Add close icon for the UnitTable (#1472)

This commit is contained in:
Kevin Fisher 2019-12-17 11:44:20 -08:00 committed by Yair Morgenstern
parent a90d93c27e
commit 52111430ef
5 changed files with 616 additions and 609 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 877 KiB

After

Width:  |  Height:  |  Size: 877 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 286 KiB

After

Width:  |  Height:  |  Size: 288 KiB

View file

@ -43,7 +43,7 @@ class UnitTable(val worldScreen: WorldScreen) : Table(){
add(VerticalGroup().apply {
pad(5f)
deselectUnitButton.add(Label("X",CameraStageBaseScreen.skin)).pad(10f)
deselectUnitButton.add(ImageGetter.getImage("OtherIcons/Close")).size(20f).pad(10f)
deselectUnitButton.pack()
deselectUnitButton.touchable = Touchable.enabled
deselectUnitButton.onClick { selectedUnit=null; selectedCity=null; worldScreen.shouldUpdate=true;this@UnitTable.isVisible=false }