I put
Code:
ServerPanel:Hide();
and
at the beginning of my LUA and it didn't hide the addon on loadup but instead stopped all functions; afterwards I tried to used the third code to have the same thing happen =/ I'm not getting any LUA errors just all show hides stop working altogether.
Just a thought, but for the if else statement; Shouldn't there be something along the lines of
Code:
function myfunction_OnClick()
if ServerPanel:Hide == true then
ServerPanel:Show();
else
ServerPanel:Hide();
end