target: fix icon placement

This commit is contained in:
shagu
2016-12-10 17:23:03 +01:00
parent c122aaec1d
commit 6cb5a52538
+3 -7
View File
@@ -234,29 +234,25 @@ pfUI:RegisterModule("target", function ()
pfUI.uf.target.hp.bar:SetAllPoints(pfUI.uf.target.hp)
pfUI.uf.target.hp.bar:SetMinMaxValues(0, 100)
pfUI.uf.target.hp.leaderIcon = CreateFrame("Frame",nil,pfUI.uf.target.hp)
pfUI.uf.target.hp.leaderIcon = CreateFrame("Frame",nil,pfUI.uf.target.hp.bar)
pfUI.uf.target.hp.leaderIcon:SetWidth(10)
pfUI.uf.target.hp.leaderIcon:SetHeight(10)
pfUI.uf.target.hp.leaderIcon:SetFrameStrata("HIGH")
pfUI.uf.target.hp.leaderIcon.texture = pfUI.uf.target.hp.leaderIcon:CreateTexture(nil,"BACKGROUND")
pfUI.uf.target.hp.leaderIcon.texture:SetTexture("Interface\\GROUPFRAME\\UI-Group-LeaderIcon")
pfUI.uf.target.hp.leaderIcon.texture:SetAllPoints(pfUI.uf.target.hp.leaderIcon)
pfUI.uf.target.hp.leaderIcon:SetPoint("TOPLEFT", pfUI.uf.target.hp, "TOPLEFT", -4, 4)
pfUI.uf.target.hp.leaderIcon:Hide()
pfUI.uf.target.hp.lootIcon = CreateFrame("Frame",nil,pfUI.uf.target.hp)
pfUI.uf.target.hp.lootIcon = CreateFrame("Frame",nil,pfUI.uf.target.hp.bar)
pfUI.uf.target.hp.lootIcon:SetWidth(10)
pfUI.uf.target.hp.lootIcon:SetHeight(10)
pfUI.uf.target.hp.lootIcon:SetFrameStrata("HIGH")
pfUI.uf.target.hp.lootIcon.texture = pfUI.uf.target.hp.lootIcon:CreateTexture(nil,"BACKGROUND")
pfUI.uf.target.hp.lootIcon.texture:SetTexture("Interface\\GROUPFRAME\\UI-Group-MasterLooter")
pfUI.uf.target.hp.lootIcon.texture:SetAllPoints(pfUI.uf.target.hp.lootIcon)
pfUI.uf.target.hp.lootIcon:SetPoint("TOPLEFT", pfUI.uf.target.hp, "LEFT", -4, 4)
pfUI.uf.target.hp.lootIcon:Hide()
pfUI.uf.target.hp.raidIcon = CreateFrame("Frame",nil,pfUI.uf.target.hp)
pfUI.uf.target.hp.raidIcon:SetFrameStrata("MEDIUM")
pfUI.uf.target.hp.raidIcon:SetParent(pfUI.uf.target.hp.bar)
pfUI.uf.target.hp.raidIcon = CreateFrame("Frame",nil,pfUI.uf.target.hp.bar)
pfUI.uf.target.hp.raidIcon:SetWidth(24)
pfUI.uf.target.hp.raidIcon:SetHeight(24)
pfUI.uf.target.hp.raidIcon.texture = pfUI.uf.target.hp.raidIcon:CreateTexture(nil,"ARTWORK")