Tags
Creators
Details
1.0.9-8
Compatibility
Changes
[1.0.9-8]

Added
-
SliderSetting — new context menu setting type — The Settings API previously had no way to expose integer/float values through the context menu. A new
SliderSettingtype has been added tocom.eymistaken.simplecps.api, allowing module authors to bind anyintconfig field to a draggable slider bar rendered directly inside the context menu. The slider displays a live value label inside the bar and includes a Reset button that restores the field to a configurable default value. -
Per-key pressed color in Keystrokes Designer — It was only possible to set a per-key normal color via Change Color. A new Change Pressed Color option has been added to the right-click context menu in KeystrokesDesignerScreen. The selected color is stored in a new
btnPressedColorfield onKeyButtonDatawith sentinel value-1(meaning: use global pressed color), and is respected byKeystrokesModuleat render time.
Fixed
-
Slider value not persisting after drag release — When the user finished dragging a slider in
HudEditorScreen,SimpleCPSConfig.save()was not called onmouseReleased. The config was updated in memory during the drag but never written to disk, so the value was lost on game exit.save()is now called whendraggingSlideris cleared. -
Keystrokes Designer not reflecting per-key color — Button labels in
KeystrokesDesignerScreenwere always drawn in0xFFFFFFFFregardless of a button'sbtnColorvalue. The render path now checksbtnColorand applies it when set, matching the in-game rendering behavior ofKeystrokesModule. -
Color picker opening in wrong color for pressed color — When opening Change Pressed Color from the Designer context menu, the picker always initialized to black. The root cause was Gson deserializing missing
btnPressedColorfields as0rather than-1, causing the== -1fallback to the global pressed color to be skipped. The initialization guard now treats any value<= 0as unset.
API
For full API documentation and usage examples, see the API Guide.
SliderSetting has been added as a new public class to com.eymistaken.simplecps.api. This is an additive API change — no existing interfaces, abstract methods, or method signatures were modified. All existing HudModule implementations and getContextMenuSettings() overrides remain fully binary-compatible without recompilation. The new btnPressedColor field on KeyButtonData uses @SerializedName and defaults to -1, so existing config files deserialize without issue.
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:F3jIqIf4:R2rlzhkc"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:F3jIqIf4:R2rlzhkc"
}

