Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-25-24, 10:30 AM   #1
savo
A Murloc Raider
AddOn Author - Click to view addons
Join Date: May 2024
Posts: 4
Trying to Hide/Disable fields in bindings.xml via lua

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
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Trying to Hide/Disable fields in bindings.xml via lua


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off