WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Execute function (https://www.wowinterface.com/forums/showthread.php?t=15191)

Scale 03-07-08 03:44 PM

Execute function
 
If have been messing around with MetaMap,
When you click a node it will create a menu which will allow you to set it as a waypoint.

When you click it a menu is created with only one option (set as waypoint),
Now what i want to do it remove the menu and just set waypoint.

This is the code that does this:

Code:

                  info = {};
                  info.text = BWP_INFO_TEXT2..tempitem_XBWP.Name..BWP_INFO_TEXT3;
                  info.func = QuickSetMiniMenu;
                  info.value = tempitem_XBWP
                  tempitem_XBWP = nil
                  UIDropDownMenu_AddButton(info); //create button

function  QuickSetMiniMenu()
        UIDropDownMenu_SetText(this.value.Name, BWP_MenuFrame_DropDown);
        setmininote(this.value.X,this.value.Y,this.value.Name, "7", this.value.zone);
        BWP_OptionsInit();
end

Im pretty use the info object is the thing that needs executing,
I cant figure it out Any help would be greatly apriciated!


All times are GMT -6. The time now is 02:59 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI