finally decided the world size of small/normal/large/huge

This commit is contained in:
minjaesong
2021-03-01 14:56:53 +09:00
parent 7900309f30
commit fa4b5df19c
2 changed files with 10 additions and 5 deletions

View File

@@ -73,15 +73,16 @@ class WorldgenLoadScreen(screenToBeLoaded: IngameInstance, private val worldwidt
AppLoader.batch.inUse {
it.color = Color.WHITE
val previewY = (AppLoader.screenH - previewHeight.times(1.5f)).div(2f).round()
it.draw(previewTexture,
(AppLoader.screenW - previewWidth).div(2f).round(),
(AppLoader.screenH - previewHeight.times(1.5f)).div(2f).round()
previewY
)
val text = messages.getHeadElem() ?: ""
AppLoader.fontGame.draw(it,
text,
(AppLoader.screenW - AppLoader.fontGame.getWidth(text)).div(2f).round(),
(AppLoader.screenH + previewHeight.times(1.5f)).div(2f).round() - AppLoader.fontGame.lineHeight
previewY + previewHeight + 98 - AppLoader.fontGame.lineHeight
)
}