From d027ff7d7e4bade0a83a4e83b0706f2a31764c5c Mon Sep 17 00:00:00 2001 From: minjaesong Date: Sun, 17 Mar 2024 23:35:38 +0900 Subject: [PATCH] toned down label colour --- src/net/torvald/terrarum/ui/UIItemCatBar.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/net/torvald/terrarum/ui/UIItemCatBar.kt b/src/net/torvald/terrarum/ui/UIItemCatBar.kt index f26ce14a9..439581c26 100644 --- a/src/net/torvald/terrarum/ui/UIItemCatBar.kt +++ b/src/net/torvald/terrarum/ui/UIItemCatBar.kt @@ -285,14 +285,14 @@ class UIItemCatBar( batch.draw(underlineIndTex, (highlighterXPos - buttonGapSize / 2), posY + highlighterYPos.toFloat()) // label - batch.color = Color.WHITE + batch.color = labelCol catIconsLabels[selectedIndex]().let { App.fontGame.draw(batch, it, posX + ((width - App.fontGame.getWidth(it)) / 2), posY + highlighterYPos + 0) } } else { // generic label - batch.color = Color.WHITE + batch.color = labelCol superLabels[1]().let { App.fontGame.draw(batch, it, posX + ((width - App.fontGame.getWidth(it)) / 2), posY + highlighterYPos + 0) } @@ -301,7 +301,7 @@ class UIItemCatBar( // label under sidebuttons if (showSideButtons) { - batch.color = Color.WHITE + batch.color = labelCol superLabels[0]().let { Toolkit.drawTextCentered(batch, App.fontGame, it, sideButtons[0].width, sideButtons[0].posX, posY + highlighterYPos + 0) @@ -314,6 +314,7 @@ class UIItemCatBar( } + private val labelCol = Color(0xe0e0e0ff.toInt())