## [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 `SliderSetting` type has been added to `com.eymistaken.simplecps.api`, allowing module authors to bind any `int` config 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 `btnPressedColor` field on `KeyButtonData` with sentinel value `-1` (meaning: use global pressed color), and is respected by `KeystrokesModule` at render time.
### Fixed
- **Slider value not persisting after drag release** — When the user finished dragging a slider in `HudEditorScreen`, `SimpleCPSConfig.save()` was not called on `mouseReleased`. 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 when `draggingSlider` is cleared.
- **Keystrokes Designer not reflecting per-key color** — Button labels in `KeystrokesDesignerScreen` were always drawn in `0xFFFFFFFF` regardless of a button's `btnColor` value. The render path now checks `btnColor` and applies it when set, matching the in-game rendering behavior of `KeystrokesModule`.
- **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 `btnPressedColor` fields as `0` rather than `-1`, causing the `== -1` fallback to the global pressed color to be skipped. The initialization guard now treats any value `<= 0` as unset.
### API
> For full API documentation and usage examples, see the [API Guide](https://eymistaken.github.io/Eymistaken-s-HUD-Website/api-guide.html).
`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.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }