From b78e6ebe0188169f165f8e740b78577d2225718b Mon Sep 17 00:00:00 2001 From: minjaesong Date: Mon, 25 Oct 2021 15:57:11 +0900 Subject: [PATCH] autosavenotifier position adjustment --- src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt b/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt index bc6926293..44b732b6c 100644 --- a/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt +++ b/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt @@ -14,7 +14,7 @@ import kotlin.math.roundToInt class UIAutosaveNotifier : UICanvas() { companion object { - const val WIDTH = 240 + const val WIDTH = 180 const val HEIGHT = 24 } @@ -52,8 +52,8 @@ class UIAutosaveNotifier : UICanvas() { override fun renderUI(batch: SpriteBatch, camera: Camera) { val spin = spinner.get(spinnerFrame % 8, spinnerFrame / 8) - val offX = (App.scr.tvSafeGraphicsWidth * 1.25f).roundToInt().toFloat() - val offY = App.scr.tvSafeGraphicsHeight + 9f // +9 to align to quickslot and watch UI + val offX = App.scr.width - WIDTH - (App.scr.tvSafeGraphicsWidth * 1.25f).roundToInt().toFloat() + val offY = App.scr.height - HEIGHT - App.scr.tvSafeGraphicsHeight - 9f // +9 to align to quickslot and watch UI val text = if (errored) Lang["ERROR_GENERIC_TEXT"].replace(".","") else Lang["MENU_IO_SAVING"] if (!errored) {