aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt')
-rw-r--r--src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt b/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt
index 40301fd..00bc099 100644
--- a/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt
+++ b/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt
@@ -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"