View Single Post
02-08-13, 05:14 PM   #1
Doxramos
A Defias Bandit
Join Date: Feb 2013
Posts: 2
Hide on Load Plus Minimap button actions.

I'm hoping I can get some help on this. I'm trying to get an addon running. (First time with LUA)
The first thing I have in my LUA is:
Code:
function ServerPanel_OnLoad()
ServerPanel:Hide();
end
Essentially; When I start the client I want the addon to be hidden; afterwards I have my MiniMap Button and it's scripted with
Code:
function ServerCharacters_MinimapButton_OnClick()
	ServerPanel:Hide()
end
The minimap button works, but I want to have it as Show for one, but more along the lines of:
Code:
function ServerCharacters_MinimapButton_OnClick()
if ServerPanel == Show then
ServerPanel:Hide();
elseif
ServerPanel:Show();
end
I dont know if that's right or not, but that's why I'm here asking for help. Thank you.
  Reply With Quote