From 156de663b37184bc2dc67f4004947c7de1d3413e Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Fri, 3 May 2024 03:09:49 +1000 Subject: Add /neugui command (#1140) --- .../moulberry/notenoughupdates/commands/misc/ScreenOpenCommands.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main/kotlin') diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ScreenOpenCommands.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ScreenOpenCommands.kt index 7a9b8d0e..4b0e31f1 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ScreenOpenCommands.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/misc/ScreenOpenCommands.kt @@ -25,6 +25,7 @@ import io.github.moulberry.notenoughupdates.events.RegisterBrigadierCommandEvent import io.github.moulberry.notenoughupdates.miscgui.GuiEnchantColour import io.github.moulberry.notenoughupdates.miscgui.GuiInvButtonEditor import io.github.moulberry.notenoughupdates.miscgui.NEUOverlayPlacements +import io.github.moulberry.notenoughupdates.options.NEUConfig import io.github.moulberry.notenoughupdates.util.brigadier.thenExecute import io.github.moulberry.notenoughupdates.util.brigadier.withHelp import net.minecraftforge.fml.common.eventhandler.SubscribeEvent @@ -48,5 +49,10 @@ class ScreenOpenCommands { NotEnoughUpdates.INSTANCE.openGui = NEUOverlayPlacements() } }.withHelp("Open the NEU gui overlay editor") + event.command("neugui") { + thenExecute { + NotEnoughUpdates.INSTANCE.openGui = NEUConfig.editOverlayForCommand() + } + }.withHelp("Open the NEU gui editor") } } -- cgit