mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-22 00:14:05 +09:00
camera clamping, UI resize
This commit is contained in:
@@ -1553,6 +1553,28 @@ class Ingame(val batch: SpriteBatch) : Screen {
|
||||
if (gameFullyLoaded) {
|
||||
LightmapRenderer.fireRecalculateEvent()
|
||||
}
|
||||
|
||||
|
||||
if (postInitDone) {
|
||||
// resize UIs
|
||||
|
||||
notifier.setPosition(
|
||||
(Terrarum.WIDTH - notifier.UI.width) / 2, Terrarum.HEIGHT - notifier.UI.height)
|
||||
|
||||
// inventory
|
||||
uiInventoryPlayer.UI =
|
||||
UIInventory(player,
|
||||
width = 840,
|
||||
height = Terrarum.HEIGHT - 160,
|
||||
categoryWidth = 210
|
||||
)
|
||||
uiInventoryPlayer.UI.handler = uiInventoryPlayer
|
||||
|
||||
|
||||
// basic watch-style notification bar (temperature, new mail)
|
||||
uiWatchBasic.setPosition(Terrarum.WIDTH - uiWatchBasic.UI.width, 0)
|
||||
uiWatchTierOne.setPosition(Terrarum.WIDTH - uiWatchTierOne.UI.width, uiWatchBasic.UI.height - 2)
|
||||
}
|
||||
}
|
||||
|
||||
override fun dispose() {
|
||||
|
||||
Reference in New Issue
Block a user