root/GHI/SimpleItemMenu/GHI_SimpleItemMenu.lua

600611
39
	local inUse = false;
39
	local inUse = false;
40
	local actionDD,actionList,UpdateActionList;
40
	local actionDD,actionList,UpdateActionList;
41
	local actionsChanged;
41
	local actionsChanged;
42
	local advItemMenuList = GHI_AdvancedItemMenuList();
42
43
43
	local menuIndex = 1;
44
	local menuIndex = 1;
44
	while _G["GHI_Simple_Item_Menu"..menuIndex] do menuIndex = menuIndex + 1; end
45
	while _G["GHI_Simple_Item_Menu"..menuIndex] do menuIndex = menuIndex + 1; end
...
...
228
		ToggleDropDownMenu(1, nil, actionDD, self, 0, 0);
229
		ToggleDropDownMenu(1, nil, actionDD, self, 0, 0);
229
	end
230
	end
230
231
232
	local ConvertToAdvItem = function()
233
		if edit then
234
			advItemMenuList.Edit(item);
235
			menuFrame:Hide();
236
		else
237
			advItemMenuList.New(item);
238
			menuFrame:Hide();
239
		end
240
	end
231
241
232
233
	menuFrame = GHM_NewFrame(class,{
242
	menuFrame = GHM_NewFrame(class,{
234
		onOk = function(self) end,
243
		onOk = function(self) end,
235
		{
244
		{