Skip to content

Commit

Permalink
add coloured tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMWolfs committed Nov 2, 2023
1 parent 0daa91a commit 39cb2fd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ class SacksPage(pvInstance: GuiProfileViewer) : GuiProfileViewerPage(pvInstance)
private fun createTooltip(name: String, value: Double, amount: Int, isSack: Boolean): List<String> {
val baseList = mutableListOf(
"§2$name",
"Items Stored: ${StringUtils.formatNumber(amount)}",
"Total Value: ${StringUtils.formatNumber(value.toLong())}"
"Items Stored: §a${StringUtils.formatNumber(amount)}",
"Total Value: §6${StringUtils.formatNumber(value.toLong())}"
)
if (isSack) baseList.add("Click for more details")
if (isSack) baseList.add("§eClick for more details")
return baseList
}

Expand Down

0 comments on commit 39cb2fd

Please sign in to comment.