I have an addon called Marking Bar that lets a player add raid target icons by targeting a mob, then clicking on the symbol they want to mark with. The addon itself works just fine, but I'm trying to add the ability to set keybindings.
There are already keybindings in the default kybinding list for all the raid markers, so I just need to call the SetBinding() function to assign the keybindings.
My problem is this: In my options panel, I want to let the user choose what key and/or key combination to press. How do I get this information, store it in a variable, and pass it to the SetBinding() function?
I'm also only using lua for my addon, so please no XML code.
Thanks in advance for any information or code you might be able to share!