mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +09:00
toned down label colour
This commit is contained in:
@@ -285,14 +285,14 @@ class UIItemCatBar(
|
|||||||
batch.draw(underlineIndTex, (highlighterXPos - buttonGapSize / 2), posY + highlighterYPos.toFloat())
|
batch.draw(underlineIndTex, (highlighterXPos - buttonGapSize / 2), posY + highlighterYPos.toFloat())
|
||||||
|
|
||||||
// label
|
// label
|
||||||
batch.color = Color.WHITE
|
batch.color = labelCol
|
||||||
catIconsLabels[selectedIndex]().let {
|
catIconsLabels[selectedIndex]().let {
|
||||||
App.fontGame.draw(batch, it, posX + ((width - App.fontGame.getWidth(it)) / 2), posY + highlighterYPos + 0)
|
App.fontGame.draw(batch, it, posX + ((width - App.fontGame.getWidth(it)) / 2), posY + highlighterYPos + 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// generic label
|
// generic label
|
||||||
batch.color = Color.WHITE
|
batch.color = labelCol
|
||||||
superLabels[1]().let {
|
superLabels[1]().let {
|
||||||
App.fontGame.draw(batch, it, posX + ((width - App.fontGame.getWidth(it)) / 2), posY + highlighterYPos + 0)
|
App.fontGame.draw(batch, it, posX + ((width - App.fontGame.getWidth(it)) / 2), posY + highlighterYPos + 0)
|
||||||
}
|
}
|
||||||
@@ -301,7 +301,7 @@ class UIItemCatBar(
|
|||||||
|
|
||||||
// label under sidebuttons
|
// label under sidebuttons
|
||||||
if (showSideButtons) {
|
if (showSideButtons) {
|
||||||
batch.color = Color.WHITE
|
batch.color = labelCol
|
||||||
|
|
||||||
superLabels[0]().let {
|
superLabels[0]().let {
|
||||||
Toolkit.drawTextCentered(batch, App.fontGame, it, sideButtons[0].width, sideButtons[0].posX, posY + highlighterYPos + 0)
|
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())
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user