From 5a550002d3ec891737a7c68cd22646a7cb47b9c1 Mon Sep 17 00:00:00 2001 From: olebeck <31539311+olebeck@users.noreply.github.com> Date: Fri, 21 Apr 2023 00:58:20 +0200 Subject: [PATCH] add it to gui --- ui/gui/settings/worlds.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/gui/settings/worlds.go b/ui/gui/settings/worlds.go index 1f18e15..f6c0c12 100644 --- a/ui/gui/settings/worlds.go +++ b/ui/gui/settings/worlds.go @@ -14,6 +14,7 @@ type worldSettings struct { withPacks widget.Bool voidGen widget.Bool saveImage widget.Bool + PacketCapture widget.Bool serverAddress widget.Editor } @@ -21,6 +22,7 @@ func (s *worldSettings) Init() { s.worlds = utils.ValidCMDs["worlds"].(*world.WorldCMD) s.serverAddress.SingleLine = true s.voidGen.Value = true + s.PacketCapture.Value = false } func (s *worldSettings) Apply() { @@ -37,6 +39,7 @@ func (s *worldSettings) Layout(gtx layout.Context, th *material.Theme) layout.Di layout.Rigid(material.CheckBox(th, &s.withPacks, "with Packs").Layout), layout.Rigid(material.CheckBox(th, &s.voidGen, "void Generator").Layout), layout.Rigid(material.CheckBox(th, &s.saveImage, "save image").Layout), + layout.Rigid(material.CheckBox(th, &s.PacketCapture, "packet capture").Layout), layout.Rigid(material.Editor(th, &s.serverAddress, "server Address").Layout), ) }