/Tukui/modules/blizzard/ghostframe.lua

http://github.com/Asphyxia/Tukui · Lua · 20 lines · 19 code · 0 blank · 1 comment · 0 complexity · 71d3c7291aa2e51bc7980a65aa504747 MD5 · raw file

  1. local T, C, L = unpack(select(2, ...)) -- Import: T - functions, constants, variables; C - config; L - locales
  2. -- GhostFrame at top
  3. GhostFrame:SetTemplate("Default")
  4. GhostFrame:SetBackdropColor(0,0,0,0)
  5. GhostFrame:SetBackdropBorderColor(0,0,0,0)
  6. GhostFrame.SetBackdropColor = T.dummy
  7. GhostFrame.SetBackdropBorderColor = T.dummy
  8. GhostFrameContentsFrame:SetTemplate("Default")
  9. GhostFrameContentsFrame:CreateShadow()
  10. GhostFrameContentsFrameIcon:SetTexture(nil)
  11. GhostFrameContentsFrame:Width(148)
  12. GhostFrameContentsFrame:ClearAllPoints()
  13. GhostFrameContentsFrame:SetPoint("CENTER")
  14. GhostFrameContentsFrame.SetPoint = T.dummy
  15. GhostFrame:SetFrameStrata("HIGH")
  16. GhostFrame:SetFrameLevel(10)
  17. GhostFrame:ClearAllPoints()
  18. GhostFrame:Point("TOP", UIParent, 0, -75)
  19. GhostFrameContentsFrameText:ClearAllPoints()
  20. GhostFrameContentsFrameText:Point("BOTTOM", 0, 5)