Skip to content

Add Malilib soft-dependency integration with dynamic hotkey Selection…#2

Open
mahirsn wants to merge 1 commit intovelolib:mainfrom
mahirsn:main
Open

Add Malilib soft-dependency integration with dynamic hotkey Selection…#2
mahirsn wants to merge 1 commit intovelolib:mainfrom
mahirsn:main

Conversation

@mahirsn
Copy link
Copy Markdown

@mahirsn mahirsn commented Mar 25, 2026

Description
This PR introduces full compatibility with malilib-based mods (such as Tweakeroo, Litematica, and MiniHUD), allowing their extensive hotkeys to be mapped and directly executed from the radial menu.
Since masa mods bypass the standard Vanilla KeyBinding registry, they previously couldn't be assigned to radial slices. This update resolves that via a clean, soft-dependency integration.
Key Features
Soft Dependency: malilib is implemented as an optional dependency via safe classloading/wrappers. If a user does not have malilib installed, Radial continues to function perfectly as a Vanilla-only mod with zero crashes.
Custom Selection GUI: Added a dedicated MalilibSelectionScreen to seamlessly bind malilib actions to radial slices.
Mod Tabs & Search Bar: The new UI dynamically generates top tabs for each installed masa mod. It also includes a real-time Search Bar (TextFieldWidget) to easily filter through hundreds of available hotkeys.
Direct Callback Execution: Instead of simulating Vanilla keypresses (which can be unreliable), clicking a configured radial slice now directly invokes the underlying IHotkeyCallback (via onKeyAction), ensuring perfect execution.
Testing
[x] Tested on pure Vanilla (no malilib) - works perfectly.
[x] Tested with Tweakeroo, Litematica, and MiniHUD installed.
[x] Verified the custom GUI renders correctly and the search filter updates dynamically.
[x] Verified malilib actions execute successfully in-game upon slice click.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant