diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-03-21 21:07:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 21:07:59 +0100 |
commit | e66f45ac7ea014bcf579b7a3d56033d082ebb763 (patch) | |
tree | 703722ab1f9394936b796386c3950c1b0e0d40be /src/main/java/at/hannibal2/skyhanni/features/skillprogress | |
parent | 505b963af2b27e6f5a2783f27c20ff209628b60b (diff) | |
download | skyhanni-e66f45ac7ea014bcf579b7a3d56033d082ebb763.tar.gz skyhanni-e66f45ac7ea014bcf579b7a3d56033d082ebb763.tar.bz2 skyhanni-e66f45ac7ea014bcf579b7a3d56033d082ebb763.zip |
Improvement: HoverTips improvements (#821)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/skillprogress')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt index ca9c5b5fe..ceb8f1922 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/skillprogress/SkillProgress.kt @@ -374,17 +374,16 @@ object SkillProgress { ) } - val session = xpInfo.timeActive.seconds.format(TimeUnit.HOUR) add( - Renderable.clickAndHover( - "§7Session: §e$session ${if (xpInfo.sessionTimerActive) "" else "§c(PAUSED)"}", - listOf("§eClick to reset!") - ) { - xpInfo.sessionTimerActive = false - xpInfo.timeActive = 0L - chat("Timer for §b${activeSkill.displayName} §ehas been reset!") - }) + Renderable.clickAndHover("§7Session: §e$session ${if (xpInfo.sessionTimerActive) "" else "§c(PAUSED)"}", + listOf("§eClick to reset!"), onClick = { + xpInfo.sessionTimerActive = false + + xpInfo.timeActive = 0L + chat("Timer for §b${activeSkill.displayName} §ehas been reset!") + }) + ) } private fun drawDisplay() = buildList { |