Tags
Creators
Details
2.0.0
Compatibility
Required content
Changes
MenuKit 2.0.0 rebuilds the library around fewer systems. It adds little new surface.
Creating a slot and interacting with it are now separate. One window handles anything addressable in the same way: a vanilla slot, a created slot, an element, or a panel.
Placement is one system instead of three. Every panel positions by screen region and sizes itself to the screen at any GUI scale, wrapping its width and scrolling its height. Relative-verb placement and lambda anchors are gone.
Hiding and covering follow one rule. A hidden panel takes no input, a visible opaque panel stops clicks from passing through it, and anything it covers takes no input either.
Also in this release: groundwork for adaptive layouts, fixes to the widget gallery, HUD text merged into the core label (which wraps), and injected panels that default to every screen.
Breaking: the old slot and placement APIs do not compile against 2.0.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:3vGajyPr:R3BZelHc"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:3vGajyPr:R3BZelHc"
}

