xlsean Posted January 5, 2023 Share Posted January 5, 2023 (edited) Is it possible to create a key binding control in mod options just like the vanilla keyboard options "Options>Controls"? Just press a key then the key is detected. Edited January 9, 2023 by xlsean Link to comment https://forums.kleientertainment.com/forums/topic/145457-resolvedkey-option-in-modinfo/ Share on other sites More sharing options...
Rickzzs Posted January 7, 2023 Share Posted January 7, 2023 There is already a solution, but it only accepts single key. See Lazy Controls made by Tony, see Character Keybinds adapted by RICK. Link to comment https://forums.kleientertainment.com/forums/topic/145457-resolvedkey-option-in-modinfo/#findComment-1616963 Share on other sites More sharing options...
xlsean Posted January 9, 2023 Author Share Posted January 9, 2023 @Rickzzs Thanks, but I am looking for solution by pressing a key to change the option. Lazy Controls still needs to use mouse to click and choose a "Letter"/key not by pressing keyboard. Link to comment https://forums.kleientertainment.com/forums/topic/145457-resolvedkey-option-in-modinfo/#findComment-1617070 Share on other sites More sharing options...
xlsean Posted January 9, 2023 Author Share Posted January 9, 2023 Sorry, after I read through the code, I think I should enable the mod then the modconfigurationscreen class is hooked. The UI is exactly what I am asking for. Link to comment https://forums.kleientertainment.com/forums/topic/145457-resolvedkey-option-in-modinfo/#findComment-1617082 Share on other sites More sharing options...
Rickzzs Posted January 9, 2023 Share Posted January 9, 2023 3 hours ago, xlsean said: Sorry, after I read through the code, I think I should enable the mod then the modconfigurationscreen class is hooked. The UI is exactly what I am asking for. It is suggested that you follow the grammar, 1.use is_keylist or iskey in modinfo; 2. use Tony's file or my file, you only need to modimport better_keyconfig.lua Link to comment https://forums.kleientertainment.com/forums/topic/145457-resolvedkey-option-in-modinfo/#findComment-1617092 Share on other sites More sharing options...
xlsean Posted January 9, 2023 Author Share Posted January 9, 2023 8 hours ago, Rickzzs said: It is suggested that you follow the grammar, 1.use is_keylist or iskey in modinfo; 2. use Tony's file or my file, you only need to modimport better_keyconfig.lua Sounds good! I will postpone the plan since I think it is still a kind of hacking way tho. Thanks for sharing the idea. Link to comment https://forums.kleientertainment.com/forums/topic/145457-resolvedkey-option-in-modinfo/#findComment-1617112 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now