Save default keybinding in Keybinding UI
Hi all
I have set up a number of keybinds in the Binding UI; 4 of these bindings have default bindings. Whene I first login they work without an issue; however if I /reload the default bindings disappear. If I /logout and then log back in the defaults are once again working. The none default bindings can be set and they will always be available; they are written to the bindings-cache.wtf file. Here is my xml. Lua Code:
Is there a way to have the defaults saved to the bindings-cache.wtf file as well to ensure they are not wiped on /reload? |
Hi all
After playing around for a while I decided to approach this problem in a different way. I now check to see if the keybinding is set, if not I add it. It does not write it to the bindings-cache.wtf file; instead it sets it upon login and /reload. Here is my function; Lua Code:
This is most likely the nasty/inefficient solution but it gets me to where I need to be. Any advice or better solutions would be great, but if not I will just keep playing with this and report back when/if I find a better solution. Cheers |
All times are GMT -6. The time now is 08:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI