Execute function - WoWInterface
Thread Tools Display Modes
03-07-08, 03:44 PM   #1
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Jul 2005
Posts: 28
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:

		   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);
Im pretty use the info object is the thing that needs executing,
I cant figure it out Any help would be greatly apriciated!

Last edited by Scale : 03-07-08 at 03:51 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Execute function

Thread Tools
Display Modes

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