Skip to content

Commit

Permalink
no need this anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
ImToggle committed Jun 26, 2024
1 parent b092c53 commit df0c814
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/main/kotlin/org/polyfrost/crosshair/config/ModConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ import club.sk1er.patcher.config.OldPatcherConfig
import org.polyfrost.crosshair.PolyCrosshair
import org.polyfrost.crosshair.utils.*
import java.lang.reflect.Field
import java.util.stream.Collectors

object ModConfig : Config(Mod(PolyCrosshair.NAME, ModType.HUD, "/${PolyCrosshair.MODID}.svg"), "${PolyCrosshair.MODID}/config.json") {

@Exclude
var drawer = HashMap<Int, Int>()

var currentCrosshair = ""

@DualOption(
name = "Mode",
left = "Vanilla",
Expand All @@ -28,9 +25,7 @@ object ModConfig : Config(Mod(PolyCrosshair.NAME, ModType.HUD, "/${PolyCrosshair
var mode = false

@CustomOption
var crosshairs = ArrayList<String>()

var newCrosshairs: ArrayList<CrosshairEntry> = arrayListOf(CrosshairEntry())
var newCrosshairs = arrayListOf(CrosshairEntry())

var penColor = OneColor(-1)

Expand All @@ -55,14 +50,6 @@ object ModConfig : Config(Mod(PolyCrosshair.NAME, ModType.HUD, "/${PolyCrosshair
initialize()
this.generateOptionList(newCurrentCrosshair, mod.defaultPage, this.mod, false)
this.generateOptionList(renderConfig, mod.defaultPage, this.mod, false)
if (currentCrosshair.isNotEmpty()) {
newCurrentCrosshair.loadFrom(CrosshairEntry(currentCrosshair))
currentCrosshair = ""
}
if (crosshairs.isNotEmpty()) {
newCrosshairs.addAll(crosshairs.stream().map { CrosshairEntry(it) }.collect(Collectors.toList()))
crosshairs.clear()
}
var options = listOf("hostile", "passive", "player", "hostileColor", "passiveColor", "playerColor", "dynamicOpacity")
for (i in options) {
hideIf(i) { !renderConfig.dynamicColor }
Expand Down

0 comments on commit df0c814

Please sign in to comment.