diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-06-03 19:38:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 19:38:55 +0200 |
commit | 0d288498a60718e2a165666ebd69b10aef658833 (patch) | |
tree | 7898767bcf970e77321a806afd9337e971d186e5 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 960009ef6883b49fa13293f05567bd3d7e4977a3 (diff) | |
download | skyhanni-0d288498a60718e2a165666ebd69b10aef658833.tar.gz skyhanni-0d288498a60718e2a165666ebd69b10aef658833.tar.bz2 skyhanni-0d288498a60718e2a165666ebd69b10aef658833.zip |
Backend: Widget abstractions (#1150)
Co-authored-by: Cal <cwolfson58@gmail.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt b/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt index 22032ff84..e3df7086c 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt @@ -1,6 +1,7 @@ package at.hannibal2.skyhanni.utils import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.data.model.TabWidget import at.hannibal2.skyhanni.events.LorenzTickEvent import at.hannibal2.skyhanni.events.PacketEvent import at.hannibal2.skyhanni.events.TabListUpdateEvent @@ -70,7 +71,10 @@ object TabListData { val tabHeader = header.conditionalTransform(noColor, { this.removeColor() }, { this }) val tabFooter = footer.conditionalTransform(noColor, { this.removeColor() }, { this }) - val string = "Header:\n\n$tabHeader\n\nBody:\n\n${resultList.joinToString("\n")}\n\nFooter:\n\n$tabFooter" + val widgets = TabWidget.entries.filter { it.isActive } + .joinToString("\n") { "\n${it.name} : \n${it.lines.joinToString("\n")}" } + val string = + "Header:\n\n$tabHeader\n\nBody:\n\n${resultList.joinToString("\n")}\n\nFooter:\n\n$tabFooter\n\nWidgets:$widgets" OSUtils.copyToClipboard(string) ChatUtils.chat("Tab list copied into the clipboard!") |