View Single Post
12-14-09, 07:23 PM   #1
Ferous
Sheer Sense of Doom
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 863
oUF_TotemBar Question

Yes, it is me again with a crazy question! I was wondering how I could implement this function into the oUF_TotemBar.lua. I have no idea what else I should add... maybe someone can give me an idea on how to do this? :O Im trying to make it to where you right click and it destroys the totem, here is my code and its ugly and im not sure what else i have to add

Code:
OnClick = function(self,TotemBar)
			
			if button == "RightButton" then
			
			DestroyTotem(1);
			DestroyTotem(2);
			DestroyTotem(3);
			DestroyTotem(4);
			
			end
			
		end
Adding this to the oUF TotemBar and im trying, but its like i have to add something else to make it to where its not clicking through? THanks for any help and sorry for me being so bothersome with questions!
  Reply With Quote