mod icon will grey out if it contains errors

This commit is contained in:
minjaesong
2021-12-28 23:07:55 +09:00
parent c9b87492c2
commit ebefe97b59
2 changed files with 30 additions and 23 deletions

View File

@@ -42,6 +42,8 @@ class UIItemModuleInfoCell(
t
}
CommonResourcePool.loadAll()
}
private val ccZero = App.fontGame.toColorCode(15,15,15)
@@ -70,7 +72,13 @@ class UIItemModuleInfoCell(
App.fontSmallNumbers.draw(batch, "${order+1}", initialX + 6f, initialY + 18f)
batch.color = Color.WHITE
if (modErrored) {
batch.shader = App.shaderGhastlyWhite
batch.color = Color.LIGHT_GRAY
}
batch.draw(modIcon, initialX + 35f, initialY.toFloat())
batch.shader = null
batch.color = Color.WHITE
App.fontGame.draw(batch, "$ccZero${modName.toUpperCase()}$ccNum $modVer", initialX + 86f + 6f, initialY + 2f)
App.fontGame.draw(batch, "$ccZero2$modAuthor$ccNum2 $modDate", initialX + 86f + 6f, initialY + 26f)