Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

3x12 Bottom 2x12 Right - panels.lua

By: a guest on Feb 28th, 2011  |  syntax: Lua  |  size: 2.72 KB  |  views: 4,866  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. local TukuiBar1 = CreateFrame("Frame", "TukuiBar1", UIParent, "SecureHandlerStateTemplate")
  2. TukuiBar1:CreatePanel("Default", 1, 1, "BOTTOM", UIParent, "BOTTOM", 0, 14)
  3. TukuiBar1:SetWidth((T.buttonsize * 12) + (T.buttonspacing * 13))
  4. TukuiBar1:SetHeight((T.buttonsize * 1) + (T.buttonspacing * 2))
  5. TukuiBar1:SetFrameStrata("BACKGROUND")
  6. TukuiBar1:SetFrameLevel(1)
  7. local TukuiBar2 = CreateFrame("Frame", "TukuiBar2", TukuiBar1)
  8. TukuiBar2:CreatePanel("Default", 1, 1, "BOTTOM", TukuiBar1, "BOTTOM", 0, 0)
  9. TukuiBar2:SetWidth((T.buttonsize * 12) + (T.buttonspacing * 13))
  10. TukuiBar2:SetHeight((T.buttonsize * 2) + (T.buttonspacing * 3))
  11. TukuiBar2:SetFrameStrata("BACKGROUND")
  12. TukuiBar2:SetFrameLevel(2)
  13. local TukuiBar3 = CreateFrame("Frame", "TukuiBar3", TukuiBar2)
  14. TukuiBar3:CreatePanel("Default", 1, 1, "BOTTOM", TukuiBar2, "BOTTOM", 0, 0)
  15. TukuiBar3:SetWidth((T.buttonsize * 12) + (T.buttonspacing * 13))
  16. TukuiBar3:SetHeight((T.buttonsize * 3) + (T.buttonspacing * 4))
  17. TukuiBar3:SetFrameStrata("BACKGROUND")
  18. TukuiBar3:SetFrameLevel(3)
  19. local TukuiBar4 = CreateFrame("Frame", "TukuiBar4", UIParent)
  20. TukuiBar4:CreatePanel("Default", 1, 1, "RIGHT", UIParent, "RIGHT", -23, -14)
  21. TukuiBar4:SetWidth((T.buttonsize * 1) + (T.buttonspacing * 2))
  22. TukuiBar4:SetHeight((T.buttonsize * 12) + (T.buttonspacing * 13))
  23. TukuiBar4:SetFrameStrata("BACKGROUND")
  24. TukuiBar4:SetFrameLevel(1)
  25. local TukuiBar5 = CreateFrame("Frame", "TukuiBar5", TukuiBar4)
  26. TukuiBar5:CreatePanel("Default", 1, 1, "RIGHT", TukuiBar4, "RIGHT", 0, 0)
  27. TukuiBar5:SetWidth((T.buttonsize * 2) + (T.buttonspacing * 3))
  28. TukuiBar5:SetHeight((T.buttonsize * 12) + (T.buttonspacing * 13))
  29. TukuiBar5:SetFrameStrata("BACKGROUND")
  30. TukuiBar5:SetFrameLevel(2)
  31. local petbg = CreateFrame("Frame", "TukuiPetBar", UIParent, "SecureHandlerStateTemplate")
  32. petbg:CreatePanel("Default", T.petbuttonsize + (T.petbuttonspacing * 2), (T.petbuttonsize * 10) + (T.petbuttonspacing * 11), "RIGHT", TukuiBar5, "LEFT", -6, 0)
  33. petbg:SetAlpha(0)
  34. local ltpetbg1 = CreateFrame("Frame", "TukuiLineToPetActionBarBackground", petbg)
  35. ltpetbg1:CreatePanel("Default", 24, 265, "LEFT", petbg, "RIGHT", 0, 0)
  36. ltpetbg1:SetParent(petbg)
  37. ltpetbg1:SetFrameStrata("BACKGROUND")
  38. ltpetbg1:SetFrameLevel(0)
  39. ltpetbg1:SetAlpha(0)
  40. -- INVISIBLE FRAME COVERING BOTTOM ACTIONBARS JUST TO PARENT UF CORRECTLY
  41. local invbarbg = CreateFrame("Frame", "InvTukuiActionBarBackground", UIParent)
  42. invbarbg:SetPoint("BOTTOM", TukuiBar1,"BOTTOM", 0, 0)
  43. if T.lowversion then
  44.     invbarbg:SetHeight((T.buttonsize * 3) + (T.buttonspacing * 4))
  45.     invbarbg:SetWidth((T.buttonsize * 12) + (T.buttonspacing * 13))
  46. else
  47.     invbarbg:SetHeight((T.buttonsize * 3) + (T.buttonspacing * 4))
  48.     invbarbg:SetWidth((T.buttonsize * 24) + (T.buttonspacing * 25))
  49. end