aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-16 20:11:54 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-16 20:11:54 +0100
commitb43be2f141e96e98c334371eccc17a823f26696c (patch)
tree4706cd510b60240f77428cdd26c8ff1e03c1ccee /src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
parentec1aefdaae5490d264d4d932394896f861981045 (diff)
downloadskyhanni-b43be2f141e96e98c334371eccc17a823f26696c.tar.gz
skyhanni-b43be2f141e96e98c334371eccc17a823f26696c.tar.bz2
skyhanni-b43be2f141e96e98c334371eccc17a823f26696c.zip
using sendTitle from lorenz utils everywhere
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
index 3de2298a6..8cd45d76d 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
@@ -19,9 +19,9 @@ class TitleManager {
private var display = ""
private var endTime = SimpleTimeMark.farPast()
private var heightModifier = 1.8
- private var fontSizeModifier = 4.0
+ private var fontSizeModifier = 4f
- fun sendTitle(text: String, duration: Duration, height: Double = 1.8, fontSize: Double = 4.0) {
+ fun sendTitle(text: String, duration: Duration, height: Double, fontSize: Float) {
display = "§f$text"
endTime = SimpleTimeMark.now() + duration
heightModifier = height
@@ -36,7 +36,7 @@ class TitleManager {
val duration = args[0].toInt().seconds
val height = args[1].toDouble()
- val fontSize = args[2].toDouble()
+ val fontSize = args[2].toFloat()
val title = "§6" + args.drop(3).joinToString(" ").replace("&", "§")
sendTitle(title, duration, height, fontSize)