aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-06-03 19:38:55 +0200
committerGitHub <noreply@github.com>2024-06-03 19:38:55 +0200
commit0d288498a60718e2a165666ebd69b10aef658833 (patch)
tree7898767bcf970e77321a806afd9337e971d186e5 /src/main/java/at/hannibal2/skyhanni/utils
parent960009ef6883b49fa13293f05567bd3d7e4977a3 (diff)
downloadskyhanni-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.kt6
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!")