Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. -- HIDE/SHOW ZONE & MENU
  2. MenuButton:SetScript("OnMouseDown", function()
  3.     if not MenuBackground:IsVisible() then
  4.         if not AddOnBackground:IsVisible() then
  5.             SlideIn(MenuBackground)
  6.         end
  7.     else
  8.         SlideOut(MenuBackground)
  9.     end
  10.    
  11.     if AddOnBackground:IsVisible() then
  12.         SlideOut(AddOnBackground)
  13.         if TukuiCF.datatext.topzone then
  14.             SlideIn(ZoneBackground)
  15.         end
  16.     end
  17.    
  18.     if MenuBackground:IsVisible() and (TukuiCF.datatext.topzone and ZoneBackground:IsVisible()) then
  19.         SlideOut(ZoneBackground)
  20.     end
  21.    
  22.     if MenuBackground:IsVisible() and (TukuiCF.datatext.topzone and not ZoneBackground:IsVisible()) then
  23.         SlideIn(ZoneBackground)
  24.     end
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement