mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-09 13:21:51 +09:00
for now ui simply closes on teleport target selection
This commit is contained in:
@@ -93,6 +93,7 @@ class UIWorldPortalListing(val full: UIWorldPortal) : UICanvas() {
|
||||
full.host.teleportRequest = FixtureWorldPortal.TeleportRequest(
|
||||
selected?.worldInfo?.diskSkimmer, null
|
||||
)
|
||||
full.setAsClose()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,6 +92,7 @@ class UIWorldPortalSearch(val full: UIWorldPortal) : UICanvas() {
|
||||
val (wx, wy) = TerrarumIngame.WORLDPORTAL_NEW_WORLD_SIZE[sizeSelector.selection]
|
||||
val worldParam = TerrarumIngame.NewWorldParameters(wx, wy, seed, nameInput.getTextOrPlaceholder())
|
||||
full.host.teleportRequest = FixtureWorldPortal.TeleportRequest(null, worldParam)
|
||||
full.setAsClose()
|
||||
}
|
||||
backButton.clickOnceListener = { _, _ ->
|
||||
full.requestTransition(0)
|
||||
|
||||
Reference in New Issue
Block a user