text in config

This commit is contained in:
Christoph J. Scherr 2023-11-08 22:49:33 +01:00
parent ed9eda1612
commit 4cdd0e817b
5 changed files with 14 additions and 15 deletions

View File

@ -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,
@ConfigEntry.Category("Networking")
@ConfigEntry.Gui.CollapsibleObject
@Comment("Foo")
NetworkLoggingScheme networkLogging = new NetworkLoggingScheme();
static class NetworkLoggingScheme {
boolean RX = false;
boolean TX = false;
}
public NetworkTrafficEnum state = NetworkTrafficEnum.None;
}
@Comment("How much should network traffic be logged")
public int state = 0;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 453 B

View File

@ -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"
}

View File

@ -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"],

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB