diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/gui/repogui.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/gui/repogui.kt | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/repogui.kt b/src/main/kotlin/moe/nea/firmament/gui/repogui.kt deleted file mode 100644 index da681e4..0000000 --- a/src/main/kotlin/moe/nea/firmament/gui/repogui.kt +++ /dev/null @@ -1,36 +0,0 @@ -package moe.nea.firmament.gui - -import net.minecraft.text.Text -import moe.nea.firmament.repo.RepoManager - -fun repoGui(): ConfigGui<RepoManager.Config> { - return ConfigGui(RepoManager) { - title(Text.translatable("firmament.gui.repo.title")) - toggle(Text.translatable("firmament.gui.repo.autoupdate"), RepoManager.Config::autoUpdate) - textfield( - Text.translatable("firmament.gui.repo.username"), - Text.translatable("firmament.gui.repo.hint.username"), - RepoManager.Config::user, - maxLength = 255 - ) - textfield( - Text.translatable("firmament.gui.repo.reponame"), - Text.translatable("firmament.gui.repo.hint.reponame"), - RepoManager.Config::repo - ) - textfield( - Text.translatable("firmament.gui.repo.branch"), - Text.translatable("firmament.gui.repo.hint.branch"), - RepoManager.Config::branch - ) - button( - Text.translatable("firmament.gui.repo.reset.label"), - Text.translatable("firmament.gui.repo.reset"), - ) { - RepoManager.data.user = "NotEnoughUpdates" - RepoManager.data.repo = "NotEnoughUpdates-REPO" - RepoManager.data.branch = "dangerous" - reload() - } - } -} |