mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
Add close icon for the UnitTable (#1472)
This commit is contained in:

committed by
Yair Morgenstern

parent
a90d93c27e
commit
52111430ef
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 }
|
||||
|
Reference in New Issue
Block a user