View Single Post
09-25-18, 07:48 AM   #5
Brellison94
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2013
Posts: 36
Originally Posted by Xrystal View Post
If I understand you right you want to change this :

Lua Code:
  1. Yells = {
  2.    Vanilla Dungeons = {dungeon1, dungeon2, dungeon3},
  3.    Vanilla Raids = { raid1, raid2, raid3, raid4 },
  4.    Vanilla Events = { event1, event2, event3, event4 },
  5.    Vanilla Scenarios = { scenario1, scenario2, scenario3, scenario4 },
  6. }

to

Lua Code:
  1. Yells = {
  2.   Vanilla = {
  3.      Dungeons = { dungeon1, dungeon2, dungeon3},
  4.      Raids = { raid1, raid2, raid3, raid4 },
  5.      Events = { event1, event2, event3, event4 },
  6.      Scenarios = { scenario1, scenario2, scenario3, scenario4 },
  7.   }
  8. }

It would depend on how that menu is created. Some menu's are created in a way where you cannot access the data that created it. So that needs to be your first step, do you have access to the data table that created the menu ?

Where each menu section is created when you click on the arrow to open it the data is either located at that point or created. The latter hopefully will be somewhere you can access and the latter definitely won't. As far as I am aware.

Assuming in this example you have access to a table called Yells. You can traverse through the list using for i,v in pairs(Yells) to find the key ( i ) and its matching data (v). So for Yells this could be the first menu name for i and the contents of the menu as v. You could then create a new table structure that will ultimately replace it. But whether it will work outside of the initial source you will have to trial and error it.

This link will take you to a page on wowpedia that contains links to potential help to how you can use lua to do what you want. https://wow.gamepedia.com/Lua. Wow may not give us full access to its programming but it should have what you need once you have confirmed that the data is retrievable.
Excellent, but I'm referring to the list (Vanilla, BC, Cataclysm, Etc.) not User Yells. User Yells is fine, I just provided it as an example of what I wanted to replicate that to apply it to the list.

Last edited by Brellison94 : 09-25-18 at 08:11 AM.
  Reply With Quote