aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/ConfigGuiManager.kt
blob: d1b84f09c98c15ba967bd7f9ee66c6e2c49f95bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package at.hannibal2.skyhanni.config

import at.hannibal2.skyhanni.SkyHanniMod
import io.github.moulberry.moulconfig.gui.GuiScreenElementWrapper
import io.github.moulberry.moulconfig.gui.MoulConfigEditor

object ConfigGuiManager {
    val configEditor by lazy { MoulConfigEditor(SkyHanniMod.configManager.processor) }

    fun openConfigGui(search: String? = null) {
        if (search != null) {
            configEditor.search(search)
        }
        SkyHanniMod.screenToOpen = GuiScreenElementWrapper(configEditor)
    }


}