mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 11:34:05 +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(
|
full.host.teleportRequest = FixtureWorldPortal.TeleportRequest(
|
||||||
selected?.worldInfo?.diskSkimmer, null
|
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 (wx, wy) = TerrarumIngame.WORLDPORTAL_NEW_WORLD_SIZE[sizeSelector.selection]
|
||||||
val worldParam = TerrarumIngame.NewWorldParameters(wx, wy, seed, nameInput.getTextOrPlaceholder())
|
val worldParam = TerrarumIngame.NewWorldParameters(wx, wy, seed, nameInput.getTextOrPlaceholder())
|
||||||
full.host.teleportRequest = FixtureWorldPortal.TeleportRequest(null, worldParam)
|
full.host.teleportRequest = FixtureWorldPortal.TeleportRequest(null, worldParam)
|
||||||
|
full.setAsClose()
|
||||||
}
|
}
|
||||||
backButton.clickOnceListener = { _, _ ->
|
backButton.clickOnceListener = { _, _ ->
|
||||||
full.requestTransition(0)
|
full.requestTransition(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user