View Single Post
05-05-14, 04:22 AM   #4
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Alright, then you just need to create the level 3 items.

Something like this:
Code:
	elseif tier == 3 then
		local info = UIDropDownMenu_CreateInfo();
		info.text = "All";
		info.func = DropdownTier3;
		info.arg1 = module; --Sets?
		UIDropDownMenu_AddButton(info,tier);
		
		local info = UIDropDownMenu_CreateInfo();
		info.text = "Recolor";
		info.func = DropdownTier3;
		info.arg1 = module; --Sets?
		UIDropDownMenu_AddButton(info,tier);
		
		local info = UIDropDownMenu_CreateInfo();
		info.text = "Lookalike";
		info.func = DropdownTier3;
		info.arg1 = module; --Sets?
		UIDropDownMenu_AddButton(info,tier);
	end
Either use the same function for all three items, and differentiate using the .arg1 field (you can assign any value you want to it), or use three different functions and don't bother with arg1. Former should be "better" but won't really matter.
__________________
Grab your sword and fight the Horde!
  Reply With Quote