mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 12:34:05 +09:00
autosavenotifier position adjustment
This commit is contained in:
@@ -14,7 +14,7 @@ import kotlin.math.roundToInt
|
|||||||
class UIAutosaveNotifier : UICanvas() {
|
class UIAutosaveNotifier : UICanvas() {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
const val WIDTH = 240
|
const val WIDTH = 180
|
||||||
const val HEIGHT = 24
|
const val HEIGHT = 24
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,8 +52,8 @@ class UIAutosaveNotifier : UICanvas() {
|
|||||||
|
|
||||||
override fun renderUI(batch: SpriteBatch, camera: Camera) {
|
override fun renderUI(batch: SpriteBatch, camera: Camera) {
|
||||||
val spin = spinner.get(spinnerFrame % 8, spinnerFrame / 8)
|
val spin = spinner.get(spinnerFrame % 8, spinnerFrame / 8)
|
||||||
val offX = (App.scr.tvSafeGraphicsWidth * 1.25f).roundToInt().toFloat()
|
val offX = App.scr.width - WIDTH - (App.scr.tvSafeGraphicsWidth * 1.25f).roundToInt().toFloat()
|
||||||
val offY = App.scr.tvSafeGraphicsHeight + 9f // +9 to align to quickslot and watch UI
|
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"]
|
val text = if (errored) Lang["ERROR_GENERIC_TEXT"].replace(".","") else Lang["MENU_IO_SAVING"]
|
||||||
if (!errored) {
|
if (!errored) {
|
||||||
|
|||||||
Reference in New Issue
Block a user