mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
savegame list generator interrupts when a save is being loaded
This commit is contained in:
@@ -68,7 +68,7 @@ class UILoadList(val full: UILoadSavegame) : UICanvas() {
|
|||||||
private var spinnerFrame = 0
|
private var spinnerFrame = 0
|
||||||
private val spinnerInterval = 1f / 60
|
private val spinnerInterval = 1f / 60
|
||||||
|
|
||||||
private lateinit var cellLoadThread: Thread
|
internal lateinit var cellLoadThread: Thread
|
||||||
|
|
||||||
fun advanceMode() {
|
fun advanceMode() {
|
||||||
App.printdbg(this, "Load playerUUID: ${UILoadGovernor.playerUUID}, worldUUID: ${UILoadGovernor.worldUUID}")
|
App.printdbg(this, "Load playerUUID: ${UILoadGovernor.playerUUID}, worldUUID: ${UILoadGovernor.worldUUID}")
|
||||||
|
|||||||
@@ -84,6 +84,8 @@ class UILoadManage(val full: UILoadSavegame) : UICanvas() {
|
|||||||
full.loadManageSelectedGame = full.loadables.getLoadableSave()!!
|
full.loadManageSelectedGame = full.loadables.getLoadableSave()!!
|
||||||
|
|
||||||
mode = MODE_LOAD
|
mode = MODE_LOAD
|
||||||
|
|
||||||
|
full.interruptListGenerator()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -191,5 +191,9 @@ class UILoadSavegame(val remoCon: UIRemoCon) : Advanceable() {
|
|||||||
batch.projectionMatrix = camera.combined
|
batch.projectionMatrix = camera.combined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun interruptListGenerator() {
|
||||||
|
transitionalListing.cellLoadThread.interrupt()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user