View Single Post
03/10/23, 04:36 PM   #11
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 245
Thank you. This stuff is way over my head but is last useful function and all our pain is over Well not entirely.. need todo this for guild list, friends list, group list and possibly chat.

Heres what i got so far but i need a break I cant even think anymore. I need to find a way to get the players @name down to the bottom function so it can be saved to the variable.

Code:
ONLOAD()
if LibCustomMenu ~= nil then
		local function func(rowData)
			MyAddon.AddMenuContext(rowData.displayName)
		end
		local category = LibCustomMenu.CATEGORY_LATE
		LibCustomMenu:RegisterGuildRosterContextMenu(MyAddon.AddMenuContext, category)
end

function MyAddon.AddMenuContext()
	AddCustomMenuItem("MyAddon Save",  function() MyAddon.SavePlayerContext(rowData.displayName) end)
end

function MyAddon.SavePlayerContext()
	--local playerToBeSaved = rowData.displayName
	df("|c6666FF[MyAddon]|r Saving: %s", rowData.displayName)
end

Last edited by sinnereso : 03/10/23 at 05:00 PM.
  Reply With Quote