mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-20 09:17:47 +07:00
Menu no longer appears multiple times on top of itself if you click the menu button several times in a row
This commit is contained in:
parent
bbbccc96ef
commit
c1d196d38c
@ -84,7 +84,8 @@ class WorldScreenTopBar(val screen: WorldScreen) : Table() {
|
||||
.apply { setSize(50f, 50f) }
|
||||
menuButton.color = Color.WHITE
|
||||
menuButton.addClickListener {
|
||||
screen.stage.addActor(WorldScreenOptionsTable())
|
||||
if(screen.stage.actors.none { it is WorldScreenOptionsTable })
|
||||
screen.stage.addActor(WorldScreenOptionsTable())
|
||||
}
|
||||
menuButton.centerY(this)
|
||||
menuButton.x = menuButton.y
|
||||
|
Loading…
Reference in New Issue
Block a user