diff options
author | nea <romangraef@gmail.com> | 2022-08-27 01:38:49 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-08-27 01:38:49 +0200 |
commit | 973c13e84f8e091a6a920779103d96559dcd32a8 (patch) | |
tree | 95741faaa85509216a3a5130a3d8cd48b1b415fd /src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt | |
parent | 4c7bd601c4df4d03536e97e18e4b88d858330ad9 (diff) | |
download | firmament-973c13e84f8e091a6a920779103d96559dcd32a8.tar.gz firmament-973c13e84f8e091a6a920779103d96559dcd32a8.tar.bz2 firmament-973c13e84f8e091a6a920779103d96559dcd32a8.zip |
Switch to yarn mappings
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt | 22 |
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" |