blob: 052cea4e45f686f117f10b3decc55f16fcb77220 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
package at.hannibal2.skyhanni.features.chroma
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator
import at.hannibal2.skyhanni.config.features.chroma.ChromaConfig
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@SkyHanniModule
object ChromaManager {
val config get() = SkyHanniMod.feature.gui.chroma
@JvmStatic
fun resetChromaSettings() {
with(config) {
chromaSize = 30f
chromaSpeed = 6f
chromaSaturation = 0.75f
allChroma = false
ignoreChat = false
chromaDirection = ChromaConfig.Direction.FORWARD_RIGHT
}
}
@SubscribeEvent
fun onConfigFix(event: ConfigUpdaterMigrator.ConfigFixEvent) {
event.move(31, "chroma", "gui.chroma")
}
}
|