Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » General Authoring Discussion » Hide on Load Plus Minimap button actions.


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off