View Single Post
11-09-13, 04:13 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Haha, that's probably the highest concentration of Lua syntax errors I've ever seen in so little code.

Anyway, I'm not exactly sure what you're trying to do, but even if you fix the syntax errors on your code, I don't think it's going to do it. For one, your code basically says "show the frame on shift-right click, hide it on any other type of click". For another, you're using that script on the frame itself, and you can't click on a frame that's hidden, so you'd never be able to re-show it.

Do you want to show the frame when the button/key is pressed, and hide it again when the button/key is released; or show the frame on the first click/press and hide it on the second click/press?
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote