aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/Chatting.kt7
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt10
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt4
3 files changed, 21 insertions, 0 deletions
diff --git a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt
index 85204d8..2faa234 100644
--- a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt
@@ -113,6 +113,13 @@ object Chatting {
}
}
}
+ if (isBetterChat) {
+ Notifications.INSTANCE.send(
+ NAME,
+ "BetterChat can be removed as it is replaced by Chatting. Click here to open your mods folder to delete the BetterChat file.", Runnable {
+ UDesktop.open(File("./mods"))
+ })
+ }
}
}
diff --git a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt
index 9fa67ed..6e6e0ff 100644
--- a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt
@@ -14,6 +14,7 @@ import cc.woverflow.chatting.chat.ChatTab
import cc.woverflow.chatting.chat.ChatTabs
import cc.woverflow.chatting.gui.components.TabButton
import cc.woverflow.chatting.hook.ChatLineHook
+import cc.woverflow.chatting.utils.ModCompatHooks
import java.io.File
object ChattingConfig : Config(
@@ -222,6 +223,15 @@ object ChattingConfig : Config(
initialize()
addDependency("offsetNonPlayerMessages", "showChatHeads")
addDependency("hideChatHeadOnConsecutiveMessages", "showChatHeads")
+ addDependency("hypixelOnlyChatTabs", "chatTabs")
+ addDependency("hypixelOnlyChatShortcuts", "chatShortcuts")
+ addDependency("focusedHeight", "customChatHeight")
+ addDependency("unfocusedHeight", "customChatHeight")
+ addDependency("scrollingSpeed", "smoothScrolling")
+ addDependency("messageSpeed", "smoothChat")
+ addDependency("smoothChat", "BetterChat Smooth Chat") {
+ return@addDependency !ModCompatHooks.betterChatSmoothMessages
+ }
addListener("hideChatHeadOnConsecutiveMessages") {
ChatLineHook.chatLines.map { it.get() as ChatLineHook? }.forEach { it?.updatePlayerInfo() }
}
diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt b/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt
index b18bdaa..3c60c72 100644
--- a/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt
+++ b/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt
@@ -33,6 +33,10 @@ object ModCompatHooks {
get() = if (isPatcher && PatcherConfig.chatPosition) 12 else 0
@JvmStatic
+ val betterChatSmoothMessages
+ get() = if (isBetterChat) BetterChat.getSettings().smooth else false
+
+ @JvmStatic
val extendedChatLength
get() = if (isPatcher) 32667 else 0