GravityControl
v2.1: fixed GUI textures sometimes going blank, key rebind now a simple KeyCode config, cursor reliably unlocks while the window is open. Gravity slider + presets (1x/0.75x/0.5x/0.25x/0x/-1x).
By kiberzulies
CHANGELOG
Changelog
2.1.0
- Fixed custom GUI occasionally rendering with no background/buttons (only text), caused by runtime-created textures being destroyed by the engine. They're now protected and rebuilt automatically if this happens.
- Toggle key is now a plain
KeyCodeconfig entry instead of aKeyboardShortcut, so it's simpler to edit in the .cfg file and displays correctly in config-manager mods. - Cursor unlock is now re-applied every frame while the window is open, fixing cases where the game's own camera script re-locked the cursor right after ours ran.
2.0.0
- Reworked GUI with a custom purple theme (replacing the plain PeakAdminMenu-style look).
- Added negative gravity support: slider range extended to -1x..1x by default, plus a -1x preset.
- Slider range is now configurable (
MinGravityMultiplier/MaxGravityMultiplierin the .cfg file). - Toggle key remains a BepInEx config entry (
ToggleKey), intentionally kept out of the in-window GUI.
1.0.1
- Version bump for re-upload, no code changes.
1.0.0
- Initial release: gravity slider (0x-1x) with presets (1x/0.75x/0.5x/0.25x/0x), toggled with I.