Verified Commit 9ab39d57 authored by Merathilis's avatar Merathilis

Added an additional highlight texture if you hover over the UFs

parent 43ba1ce2
......@@ -19,6 +19,8 @@ function module:Update_BossFrames(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitBoss()
......
......@@ -19,6 +19,8 @@ function module:Update_PartyFrames(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitParty()
......
......@@ -19,6 +19,8 @@ function module:Update_RaidFrames(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitRaid()
......
......@@ -19,6 +19,8 @@ function module:Update_Raid40Frames(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitRaid40()
......
......@@ -15,6 +15,24 @@ function module:ADDON_LOADED(event, addon)
module:UnregisterEvent(event)
end
function module:CreateHighlight(self)
local hl = self:CreateTexture(nil, "OVERLAY")
hl:SetAllPoints()
hl:SetTexture("Interface\\PETBATTLES\\PetBattle-SelectedPetGlow")
hl:SetTexCoord(0, 1, .5, 1)
hl:SetVertexColor(.6, .6, .6)
hl:SetBlendMode("ADD")
hl:Hide()
self.Highlight = hl
self:HookScript("OnEnter", function()
self.Highlight:Show()
end)
self:HookScript("OnLeave", function()
self.Highlight:Hide()
end)
end
function module:StyleUFs()
local db = E.db.mui.unitframes
......
......@@ -19,6 +19,8 @@ function module:Update_FocusFrame(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitFocus()
......
......@@ -19,6 +19,8 @@ function module:Update_FocusTargetFrame(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitFocusTarget()
......
......@@ -19,6 +19,8 @@ function module:Update_PetFrame(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitPet()
......
......@@ -53,6 +53,8 @@ function module:Update_PlayerFrame(frame)
frame:DisableElement('CounterBar')
end
end
module:CreateHighlight(frame)
end
function module:InitPlayer()
......
......@@ -19,6 +19,8 @@ function module:Update_TargetFrame(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitTarget()
......
......@@ -19,6 +19,8 @@ function module:Update_TargetTargetFrame(frame)
frame.isStyled = true
end
end
module:CreateHighlight(frame)
end
function module:InitTargetTarget()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment