From 5abc943439c1439a98ca06feb6d740cb3c1fa159 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sun, 8 May 2022 11:38:43 +0700 Subject: disable timestamps for now --- src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt | 5 ++++- src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/cc') diff --git a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt index 2b163c5..bc3aa31 100644 --- a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt +++ b/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt @@ -104,6 +104,7 @@ object ChattingConfig : ) var customFormatting = false + /*/ @Property( type = PropertyType.SWITCH, name = "Show Timestamp", @@ -120,6 +121,8 @@ object ChattingConfig : ) var showTimestampHover = true + */ + @Property( type = PropertyType.SWITCH, name = "Custom Chat Height", @@ -251,7 +254,7 @@ object ChattingConfig : chatShortcuts = funny ChatShortcuts.initialize() } - addDependency("showTimestampHover", "showTimestamp") + //addDependency("showTimestampHover", "showTimestamp") } private object ConfigSorting : SortingBehavior() { diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt b/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt index 7a5f5d4..19835ac 100644 --- a/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt +++ b/src/main/kotlin/cc/woverflow/chatting/utils/renderutils.kt @@ -216,7 +216,7 @@ fun Framebuffer.screenshot(file: File): BufferedImage { } return bufferedimage } - +/*/ private val timePattern = Regex("\\[\\d+:\\d+:\\d+]") private var lastLines = mutableListOf() fun timestampPre() { @@ -262,4 +262,6 @@ private fun getChatLineOverMouse(mouseX: Int, mouseY: Int): ChatLine? { return drawnChatLines[m] } return null -} \ No newline at end of file +} + + */ \ No newline at end of file -- cgit