Skip to content

Commit a19203f

Browse files
committed
Fix rebase conflicts
1 parent 1eeddc0 commit a19203f

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

common/src/main/kotlin/com/lambda/gui/impl/clickgui/module/setting/settings/EnumSlider.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import com.lambda.config.settings.comparable.EnumSetting.Companion.enumValues
2222
import com.lambda.gui.component.core.UIBuilder
2323
import com.lambda.gui.component.layout.Layout
2424
import com.lambda.util.NamedEnum
25-
import com.lambda.gui.impl.clickgui.module.settings.SettingSlider
2625
import com.lambda.gui.impl.clickgui.module.setting.SettingSlider
2726
import com.lambda.util.math.MathUtils.floorToInt
2827
import com.lambda.util.math.transform

common/src/main/kotlin/com/lambda/module/hud/Coordinates.kt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
package com.lambda.module.hud
1919

2020
import com.lambda.context.SafeContext
21-
import com.lambda.graphics.renderer.gui.font.FontRenderer
22-
import com.lambda.graphics.renderer.gui.font.FontRenderer.drawString
23-
import com.lambda.gui.component.core.TextField.Companion.textField
21+
import com.lambda.graphics.renderer.gui.FontRenderer
2422
import com.lambda.module.HudModule
2523
import com.lambda.module.tag.ModuleTag
2624
import com.lambda.threading.runSafe
@@ -39,19 +37,7 @@ object Coordinates : HudModule.Text(
3937
private val showDimension by setting("Show Dimension", true)
4038
private val decimals by setting("Decimals", 2, 0..4, 1)
4139

42-
private val text: String
43-
get() = runSafe { "XYZ ${if (showDimension) dimensionName else ""} ${positionForDimension()}" } ?: ""
44-
45-
override val height: Double get() = FontRenderer.getHeight()
46-
override val width: Double get() = FontRenderer.getWidth(text)
47-
48-
init {
49-
onRender {
50-
runSafe {
51-
drawString(text, position)
52-
}
53-
}
54-
}
40+
override fun getText() = runSafe { "XYZ ${if (showDimension) dimensionName else ""} ${positionForDimension()}" } ?: ""
5541

5642
private fun SafeContext.positionForDimension() =
5743
when {

common/src/main/kotlin/com/lambda/module/hud/TPS.kt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
package com.lambda.module.hud
1919

20-
import com.lambda.graphics.renderer.gui.font.FontRenderer
21-
import com.lambda.graphics.renderer.gui.font.FontRenderer.drawString
2220
import com.lambda.module.HudModule
2321
import com.lambda.module.tag.ModuleTag
2422
import com.lambda.util.Formatting.string
@@ -35,17 +33,6 @@ object TPS : HudModule.Text(
3533
override fun getText() =
3634
"${format.displayName}: ${format.output().string}${format.unit}"
3735

38-
// TODO: Replace by LambdaAtlas height cache and actually build a proper text with highlighted parameters
39-
40-
override val height: Double get() = FontRenderer.getHeight()
41-
override val width: Double get() = FontRenderer.getWidth(text)
42-
43-
init {
44-
onRender {
45-
drawString(text, position)
46-
}
47-
}
48-
4936
@Suppress("unused")
5037
private enum class TickFormat(
5138
val output: () -> Double,

0 commit comments

Comments
 (0)