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.autoconfig.annotation.ConfigEntry;
import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment; import me.shedaniel.cloth.clothconfig.shadowed.blue.endless.jankson.Comment;
@Config(name = "MCPHT Config") @Config(name = "mcphtconf")
public class MCPHTConfig implements ConfigData { public class MCPHTConfig implements ConfigData {
@Comment("Dummy Button") @ConfigEntry.Category("Networking")
public NetworkTrafficBarScheme netbar = new NetworkTrafficBarScheme(); @ConfigEntry.Gui.CollapsibleObject
@Comment("Foo")
public static class NetworkTrafficBarScheme { NetworkLoggingScheme networkLogging = new NetworkLoggingScheme();
public enum NetworkTrafficEnum { static class NetworkLoggingScheme {
None, boolean RX = false;
All, boolean TX = false;
Client,
Server,
}
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" "issues": "https://git.cscherr.de/PlexSheep/mcpht/issues"
}, },
"license": "MIT", "license": "MIT",
"icon": "assets/mcpht/icon.png", "icon": "icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": ["de.cscherr.mcpht.Mcpht"], "main": ["de.cscherr.mcpht.Mcpht"],

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB