Permalink
Browse files

fixed cfg.ShowTooltip, portrait background

  • Loading branch information...
1 parent 91450bc commit 64833af69d531dd1a8f2783b1085824d873b032b xmyno committed Dec 19, 2012
Showing with 9 additions and 14 deletions.
  1. +0 −1 cfg.lua
  2. +1 −13 core.lua
  3. +8 −0 lib.lua
View
1 cfg.lua
@@ -53,7 +53,6 @@ local cfg = CreateFrame("Frame")
cfg.targetCastBarHeight = 25
--raid&party frames
cfg.ShowRaid = true -- show raid frames
- cfg.ShowParty = true -- show party frames (shown as 5man raid)
cfg.RaidShowSolo = true -- show raid frames even when solo
cfg.ShowIncHeals = true -- Show incoming heals in player and raid frames
cfg.ShowTooltips = true -- Show Tooltips on raid frames
View
14 core.lua
@@ -272,18 +272,6 @@ local UnitSpecific = {
self.Power.PostUpdate = lib.PostUpdateRaidFramePower
self:RegisterEvent('PLAYER_TARGET_CHANGED', lib.ChangedTarget)
self:RegisterEvent('GROUP_ROSTER_UPDATE', lib.ChangedTarget)
- if cfg.ShowRoleIcons or not cfg.ShowTooltips then
- self:SetScript("OnEnter",function()
- if not cfg.ShowTooltips then GameTooltip:Hide() end
- if cfg.ShowRoleIcons then self.LFDRole:SetAlpha(1) end
- end)
- end
- if cfg.ShowRoleIcons then
- self:SetScript("OnLeave",function()
- self.LFDRole:SetAlpha(0)
- end)
- end
- if not cfg.ShowTooltips then end
--self:RegisterEvent("UNIT_THREAT_LIST_UPDATE", lib.UpdateThreat)
--self:RegisterEvent("UNIT_THREAT_SITUATION_UPDATE", lib.UpdateThreat)
end,
@@ -415,7 +403,7 @@ oUF:Factory(function(self)
header:SetPoint("TOPLEFT",UIParent,"BOTTOMRIGHT",cfg.raidX,cfg.raidY)
else
if cfg.raidOrientationHorizontal then
- header:SetPoint("TOPLEFT",raid[i-1],"BOTTOMLEFT",0,-4)
+ header:SetPoint("TOPLEFT",raid[i-1],"BOTTOMLEFT",0,-5)
else
header:SetPoint("TOPLEFT",raid[i-1],"TOPRIGHT",4,0)
end
View
8 lib.lua
@@ -95,6 +95,7 @@ end
lib.addHealthBar = function(f)
--statusbar
local s = CreateFrame("StatusBar", nil, f)
+ s:SetFrameLevel(1)
if f.mystyle=="boss" then
s:SetHeight(37)
s:SetWidth(f:GetWidth())
@@ -1432,13 +1433,20 @@ lib.addHighlight = function(f)
if f.Experience ~= nil then
f.Experience.Text:SetAlpha(0.9)
end
+ if f.mystyle == "raid" then
+ if not cfg.ShowTooltips then GameTooltip:Hide() end
+ if cfg.ShowRoleIcons then f.LFDRole:SetAlpha(1) end
+ end
end
local OnLeave = function(f)
UnitFrame_OnLeave(f)
f.Highlight:Hide()
if f.Experience ~= nil then
f.Experience.Text:SetAlpha(0)
end
+ if f.mystyle == "raid" then
+ if cfg.ShowRoleIcons then f.LFDRole:SetAlpha(0) end
+ end
end
f:SetScript("OnEnter", OnEnter)
f:SetScript("OnLeave", OnLeave)

0 comments on commit 64833af

Please sign in to comment.