Switch to yarn mappings

This commit is contained in:
nea
2022-08-27 01:38:49 +02:00
parent 4c7bd601c4
commit 973c13e84f
18 changed files with 142 additions and 129 deletions

View File

@@ -1,31 +1,31 @@
package moe.nea.notenoughupdates.gui
import moe.nea.notenoughupdates.repo.RepoManager
import net.minecraft.network.chat.Component
import net.minecraft.text.Text
fun repoGui(): ConfigGui<RepoManager.Config> {
return ConfigGui(RepoManager) {
title(Component.literal("NotEnoughUpdates Repo Settings"))
toggle(Component.literal("Auto Update"), RepoManager.Config::autoUpdate)
title(Text.literal("NotEnoughUpdates Repo Settings"))
toggle(Text.literal("Auto Update"), RepoManager.Config::autoUpdate)
textfield(
Component.literal("Repo Username"),
Component.literal("<github user>"),
Text.literal("Repo Username"),
Text.literal("<github user>"),
RepoManager.Config::user,
maxLength = 255
)
textfield(
Component.literal("Repo Name"),
Component.literal("<repo name>"),
Text.literal("Repo Name"),
Text.literal("<repo name>"),
RepoManager.Config::repo
)
textfield(
Component.literal("Repo Branch"),
Component.literal("<repo branch>"),
Text.literal("Repo Branch"),
Text.literal("<repo branch>"),
RepoManager.Config::branch
)
button(
Component.literal("Reset to Defaults"),
Component.literal("Reset"),
Text.literal("Reset to Defaults"),
Text.literal("Reset"),
) {
RepoManager.config.user = "NotEnoughUpdates"
RepoManager.config.repo = "NotEnoughUpdates-REPO"