View Single Post
09-24-12, 07:27 AM   #5
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Just to make it clear, your sintax for 'IsShown' is that it's a function, meaning just as I showed above, IsShown() requires ()'s.

Lua Code:
  1. if pressed then
  2.    if SLDT_Clock:IsShown then
  3.       UIFrameFadeOut(SLDT_Clock, 1, 1, 0)
  4.    else
  5.       UIFrameFadeIn(SLDT_Clock, 1, 0, 1)
  6.    end
  7. end

should be..

Lua Code:
  1. if pressed then
  2.    if SLDT_Clock:IsShown() then
  3.       UIFrameFadeOut(SLDT_Clock, 1, 1, 0)
  4.    else
  5.       UIFrameFadeIn(SLDT_Clock, 1, 0, 1)
  6.    end
  7. end
  Reply With Quote