When I spawn units like player or target I would like to have the default right click menu enabled.
Everything works perfect (like showing health, castbar, etc.) but there are no right click menus.
The left click to select units works.
How can I make right click menu work?
Lua Code:
OUF:RegisterStyle(ADDON_NAME, function(frame, unit)
LybrialUnitFrames:Style(frame, unit);
end);
OUF:SetActiveStyle(ADDON_NAME);
OUF:Spawn("player", Player.MODULE_NAME);
OUF:Spawn("target", Target.MODULE_NAME)
function LybrialUnitFrames:Style(frame, unit)
if (unit == "player") then
self:Player_Create(frame); -- adds health, castbar, name and level
elseif (unit == "target") then
self:Target_Create(frame); -- adds health, castbar, name and level
end
end