new test sprite/display screencaps for imported avatars if available

This commit is contained in:
minjaesong
2023-08-27 17:38:43 +09:00
parent f8b6493cdc
commit 3d5713cd31
21 changed files with 184 additions and 17 deletions

View File

@@ -351,6 +351,14 @@ class SavegameCollectionPair(private val player: SavegameCollection?, private va
fun getImportedPlayer(): DiskSkimmer? {
return if (isImported) player!!.loadable() else null
}
fun getPlayerThumbnailPixmap(width: Int, height: Int, shrinkage: Double): Pixmap? {
return player?.loadable()?.getThumbnailPixmap(width, height, shrinkage)
}
fun getWorldThumbnailPixmap(width: Int, height: Int, shrinkage: Double): Pixmap? {
return world?.loadable()?.getThumbnailPixmap(width, height, shrinkage)
}
}
data class DiskPair(val player: DiskSkimmer, val world: DiskSkimmer) {