From 0d288498a60718e2a165666ebd69b10aef658833 Mon Sep 17 00:00:00 2001 From: Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> Date: Mon, 3 Jun 2024 19:38:55 +0200 Subject: Backend: Widget abstractions (#1150) Co-authored-by: Cal --- src/main/java/at/hannibal2/skyhanni/utils/TabListData.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils') 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!") -- cgit