more descriptive name for the blend-normal function because why there are two fucking standards for an alpha channel

This commit is contained in:
minjaesong
2022-10-31 01:52:40 +09:00
parent ccef7c32a0
commit 474279aefe
42 changed files with 122 additions and 108 deletions

View File

@@ -79,7 +79,7 @@ class UIItemInventoryElemWide(
var textHighlightNormalCol = Color.WHITE
override fun render(batch: SpriteBatch, camera: Camera) {
blendNormal(batch)
blendNormalStraightAlpha(batch)
highlightToMainCol = customHighlightRuleMain?.invoke(this) ?: (equippedSlot != null && highlightEquippedItem) || forceHighlighted
highlightToSubCol = customHighlightRule2?.invoke(this) ?: false
@@ -100,7 +100,7 @@ class UIItemInventoryElemWide(
if (item != null && itemImage != null) {
val amountString = amount.toItemCountText()
blendNormal(batch)
blendNormalStraightAlpha(batch)
// item image
batch.color = Color.WHITE