load list: thumbnail on management scr

This commit is contained in:
minjaesong
2023-07-11 15:18:44 +09:00
parent c033260ec5
commit 64e05a4f17
19 changed files with 128 additions and 271 deletions

View File

@@ -3,6 +3,7 @@ package net.torvald.terrarum.ui
import net.torvald.terrarum.App.printdbg
import net.torvald.terrarum.INGAME
import net.torvald.terrarum.modulebasegame.ui.NullUI
import net.torvald.terrarum.tryDispose
import kotlin.math.absoluteValue
import kotlin.math.roundToInt
@@ -81,9 +82,9 @@ class UIItemHorizontalFadeSlide(
}
override fun dispose() {
uisOnLeft.forEach { try { it.dispose() } catch (e: IllegalArgumentException) {} }
uisOnCentre.forEach { try { it.dispose() } catch (e: IllegalArgumentException) {} }
uisOnRight.forEach { try { it.dispose() } catch (e: IllegalArgumentException) {} }
uisOnLeft.forEach { it.tryDispose() }
uisOnCentre.forEach { it.tryDispose() }
uisOnRight.forEach { it.tryDispose() }
}
override fun keyDown(keycode: Int): Boolean {