View Single Post
09-25-18, 11:18 AM   #7
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,929
Looks like Boss talk creates it as it generates the menu.

Seeing that you are taking over the addon you can pretty much change that code to what you want.

It would simply mean another layer of menu ( 'group' ). Not knowing how the next menu knows what the previous menu is I can't give you precise code but simply creating another 'group' element for each parent menu for the zones and putting the zone related menus under it as a child menu ( however that is done ).

Now, after looking at the bosstalk code I can see what you were asking.


Here is a portion of the yell menu generate code:
Lua Code:
  1. ["User"] = {
  2.             type = 'group',
  3.             name = L["User Yells"],
  4.             desc = " ",
  5.             args = {
  6.                 ["World"] = {
  7.                     type = 'group',
  8.                     name = L["World"],
  9.                     desc = " ",
  10.                     args = {},
  11.                     order = 1
  12.                 },
  13.                 ["Dungeon"] = {
  14.                     type = 'group',
  15.                     name = L["Instance"],
  16.                     desc = " ",
  17.                     args = {},
  18.                     order = 2
  19.                 },
  20.                        }
  21.               }

This shows you how you can code the other menu the way you want. Here is how it looks like you will be able to do to convert the Vanilla trio of groups into sub groups of another zone level group.

Lua Code:
  1. ["Vanilla"] = {
  2.                type = "group",
  3.                name = "Vanilla",
  4.                desc = "",
  5.                args = {
  6.         ["Vanilla Events"] = {
  7.             type = 'group',
  8.             name = "Vanilla Events",
  9.             desc = " ",
  10.             args = {},
  11.             order = 1
  12.         },
  13.         ["Vanilla Dungeons"] = {
  14.             type = 'group',
  15.             name = "Vanilla Dungeons",
  16.             desc = " ",
  17.             args = {},
  18.             order = 2
  19.         },
  20.         ["Vanilla Raids"] = {
  21.             type = 'group',
  22.             name = "Vanilla Raids",
  23.             desc = " ",
  24.             args = {},
  25.             order = 3
  26.         },
  27.             },
  28.            order = 1,
  29.      }

In other words the args entry is where you place child menu contents. Hopefully this helps you understand a little better.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote