single screen ui for world portal

This commit is contained in:
minjaesong
2023-06-18 01:28:51 +09:00
parent 376595d7cd
commit 6b8798a19e
14 changed files with 272 additions and 88 deletions

View File

@@ -100,11 +100,9 @@ class UIBuildingMakerPenMenu(val parent: BuildingMaker): UICanvas() {
toolButtons.forEachIndexed { index, button ->
uiItems.add(button)
button.clickOnceListener = { _, _, b ->
if (b == App.getConfigInt("config_mouseprimary")) {
toolButtonsJob[index].invoke()
closeGracefully()
}
button.clickOnceListener = { _, _ ->
toolButtonsJob[index].invoke()
closeGracefully()
}
}
}