Add close icon for the UnitTable (#1472)
This commit is contained in:
parent
a90d93c27e
commit
52111430ef
5 changed files with 616 additions and 609 deletions
BIN
android/Images/OtherIcons/Close.png
Normal file
BIN
android/Images/OtherIcons/Close.png
Normal file
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 |
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue