hey, i wanna preface this with that i'm very new to lua.
Link to code:
https://www.wowinterface.com/downloa...nds.html#other
i'm creating an addon that adds common macros as additional bindings in the default keybinds menu, like "/stopcast + /stopattack" for same keybind, "/cast [@focus] shadowstep" etc..
My issue is that the list of additional fields added to the keybindings menu became flooded, and starts to lag the menu when i added macros for every class, so what i'm trying to do is only display whichever class the player is currently playing and hide macros for other classes.
So basically i have 1000 lines of <binding> tags inside bindings.xml, they are grouped to the specific class. Since it's XML im wondering how i go about hiding or disabling them via lua.
I only know of how to change name/header: "BINDING_NAME_" and "BINDING_HEADER_".
any help appreciated