summaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/ChatUi.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/gui/ChatUi.kt')
-rw-r--r--src/main/kotlin/gui/ChatUi.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/gui/ChatUi.kt b/src/main/kotlin/gui/ChatUi.kt
index 0ec3063..e88c375 100644
--- a/src/main/kotlin/gui/ChatUi.kt
+++ b/src/main/kotlin/gui/ChatUi.kt
@@ -10,6 +10,8 @@ import java.awt.Color
class ChatUi(val chatScreen: ChatScreen) {
+ val Double.value get() = this
+ val Float.value get() = this
fun getChatBgOpacity(opacityMultiplier: Double = 1.0): Color {
return Color((MC.instance.options.textBackgroundOpacity.value * opacityMultiplier * 255).toInt() shl 24, true)
}
@@ -21,7 +23,7 @@ class ChatUi(val chatScreen: ChatScreen) {
40
val chatTop =
(chatScreen.height - chatOffset) / ch.chatScale - ch.visibleLineCount * ch.lineHeight_ultranotifier
- return chatTop
+ return chatTop.toDouble()
}
var selectedTab = "Bazaar"