diff --git a/assets/graphics/gui/inventory/category.tga b/assets/graphics/gui/inventory/category.tga index 309824f96..47dadb826 100755 --- a/assets/graphics/gui/inventory/category.tga +++ b/assets/graphics/gui/inventory/category.tga @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:cdf55ba47c81f704ba528a30251e0b1975e89d8880101db9b90597e3354fc5e9 +oid sha256:332c3d7395d8274f6bcd7e88f2998df28dc3c0f0caa692b356067c3e6c1b6d91 size 240018 diff --git a/src/net/torvald/terrarum/modulebasegame/ui/UILoadDemoSavefiles.kt b/src/net/torvald/terrarum/modulebasegame/ui/UILoadDemoSavefiles.kt index 736dd97ba..556e8a8bf 100644 --- a/src/net/torvald/terrarum/modulebasegame/ui/UILoadDemoSavefiles.kt +++ b/src/net/torvald/terrarum/modulebasegame/ui/UILoadDemoSavefiles.kt @@ -510,6 +510,8 @@ class UIItemPlayerCells( // lateinit var playerUUID: UUID; private set lateinit var worldUUID: UUID; private set + private val savegameStatus: Int + init { App.savegamePlayers[playerUUID]!!.loadable().getFile(SAVEGAMEINFO)?.bytes?.let { var lastPlayTime0 = 0L @@ -527,6 +529,8 @@ class UIItemPlayerCells( .format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) } + + savegameStatus = SavegameCollectionPair(App.savegamePlayers[playerUUID], App.savegameWorlds[worldUUID]).status } private fun parseDuration(seconds: Long): String { @@ -663,6 +667,11 @@ class UIItemPlayerCells( batch.draw(icons.get(12,0), x + 119f, y + height - 53f) // world map batch.draw(icons.get(13,0), x + 120f, y + height - 24f) // journal batch.draw(icons.get(23,0), x + width - 4f - playTimeTextLen - 24f, y + height - 24f) // stopwatch + // autosave marker + if (savegameStatus == 2) + batch.draw(icons.get(24,1), x + 459f, y + 5f) + else if (savegameStatus == 0) + batch.draw(icons.get(23,1), x + 459f, y + 5f) // infocell divider batch.color = if (mouseUp) hruleColLit else hruleCol diff --git a/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt b/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt index 2b5aac1ee..31599b6a5 100644 --- a/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt +++ b/src/net/torvald/terrarum/ui/UIAutosaveNotifier.kt @@ -65,7 +65,7 @@ class UIAutosaveNotifier : UICanvas() { batch.draw(spinner.get(0,4), offX, offY) } batch.color = if (errored) errorCol else normalCol - App.fontGame.draw(batch, text, offX + 30f, offY) + App.fontGame.draw(batch, text, offX + 30f, offY - 2f) } fun setAsError() {