diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-08-31 20:55:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 20:55:30 +0200 |
commit | 2507d18717f0477b9641fbd8c6ec163720022e6a (patch) | |
tree | 5792b907b16b58424034d6113eda857095947d86 /src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt | |
parent | 025073ba4d380d696530c28536a0667478c3ebb6 (diff) | |
download | skyhanni-2507d18717f0477b9641fbd8c6ec163720022e6a.tar.gz skyhanni-2507d18717f0477b9641fbd8c6ec163720022e6a.tar.bz2 skyhanni-2507d18717f0477b9641fbd8c6ec163720022e6a.zip |
Improvement: Click on chat (#2428)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt index e07e16a08..18519a364 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt @@ -258,6 +258,7 @@ object ChatUtils { return this } + fun clickToActionOrDisable(message: String, option: KMutableProperty0<*>, actionName: String, action: () -> Unit) { ChatUtils.clickableChat( "$message\n§e[CLICK to $actionName or disable this feature]", @@ -269,7 +270,7 @@ object ChatUtils { } }, hover = "§eClick to $actionName!\n" + - "§eShift-Click to disable this feature!", + "§eShift-Click or Control-Click to disable this feature!", ) } } |