View Single Post
07-25-12, 12:42 AM   #1
Brozuf
A Defias Bandit
Join Date: Jul 2012
Posts: 2
Right Click Menus Question

Hey all,

I'm in the process of editing the default unitframes to change their appearance etc. I have a tiny bit of lua knowledge and have been able to figure everything out by using google and lurking this forum except for this one issue.

Since I've hidden my portraits and blizz art the right click menu for my target and player frames is just the empty space next to the frame. I've been trying to remove that and let the dropdown menu appear when I right click the healthbar of the respective frames.

I've been playing with the following but can't get it to work and it might be completely wrong:

Code:
TargetFrameHealthBar:SetScript('OnClick', function(self, button)
	if button == "RightButton" then
		ToggleDropDownMenu(1, nil, TargetFrameDropDown, TargetFrameHealthBar, 0, 0)
	end
end)

Any help is hugely appreciated!
  Reply With Quote