diff --git a/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java b/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java index 35acb41..53b2104 100644 --- a/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java +++ b/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java @@ -5,20 +5,14 @@ import me.shedaniel.autoconfig.annotation.Config; import me.shedaniel.autoconfig.annotation.ConfigEntry; import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment; -@Config(name = "MCPHT Config") +@Config(name = "mcphtconf") public class MCPHTConfig implements ConfigData { - @Comment("Dummy Button") - public NetworkTrafficBarScheme netbar = new NetworkTrafficBarScheme(); - - public static class NetworkTrafficBarScheme { - public enum NetworkTrafficEnum { - None, - All, - Client, - Server, - } - public NetworkTrafficEnum state = NetworkTrafficEnum.None; + @ConfigEntry.Category("Networking") + @ConfigEntry.Gui.CollapsibleObject + @Comment("Foo") + NetworkLoggingScheme networkLogging = new NetworkLoggingScheme(); + static class NetworkLoggingScheme { + boolean RX = false; + boolean TX = false; } - @Comment("How much should network traffic be logged") - public int state = 0; } diff --git a/src/main/resources/assets/mcpht/icon.png b/src/main/resources/assets/mcpht/icon.png deleted file mode 100644 index 047b91f..0000000 Binary files a/src/main/resources/assets/mcpht/icon.png and /dev/null differ diff --git a/src/main/resources/assets/mcpht/lang/en_us.json b/src/main/resources/assets/mcpht/lang/en_us.json new file mode 100644 index 0000000..1295472 --- /dev/null +++ b/src/main/resources/assets/mcpht/lang/en_us.json @@ -0,0 +1,5 @@ +{ + "text.autoconfig.mcphtconf.option.networkLogging": "Network Packet Logging", + "text.autoconfig.mcphtconf.option.networkLogging.RX": "RX", + "text.autoconfig.mcphtconf.option.networkLogging.TX": "TX" +} \ No newline at end of file diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index c62ca56..2f4fe36 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -17,7 +17,7 @@ "issues": "https://git.cscherr.de/PlexSheep/mcpht/issues" }, "license": "MIT", - "icon": "assets/mcpht/icon.png", + "icon": "icon.png", "environment": "*", "entrypoints": { "main": ["de.cscherr.mcpht.Mcpht"], diff --git a/assets/mcpht/icon.png b/src/main/resources/icon.png similarity index 100% rename from assets/mcpht/icon.png rename to src/main/resources/icon.png