From 2507d18717f0477b9641fbd8c6ec163720022e6a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Sat, 31 Aug 2024 20:55:30 +0200 Subject: Improvement: Click on chat (#2428) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/utils/ChatUtils.kt') 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!", ) } } -- cgit