unitframes: add support for focus target frames

This commit is contained in:
shagu
2021-01-18 16:15:45 +01:00
parent 815da34149
commit ab3d853f02
4 changed files with 36 additions and 10 deletions
+6
View File
@@ -7,6 +7,12 @@ pfUI:RegisterModule("focus", "vanilla:tbc", function ()
pfUI.uf.focus:SetPoint("BOTTOMLEFT", UIParent, "BOTTOM", 220, 220)
UpdateMovable(pfUI.uf.focus)
pfUI.uf.focus:Hide()
pfUI.uf.focustarget = pfUI.uf:CreateUnitFrame("FocusTarget", nil, C.unitframes.focustarget, .2)
pfUI.uf.focustarget:UpdateFrameSize()
pfUI.uf.focustarget:SetPoint("BOTTOMLEFT", pfUI.uf.focus, "TOP", 0, 10)
UpdateMovable(pfUI.uf.focustarget)
pfUI.uf.focustarget:Hide()
end)
-- register focus emulation commands for vanilla
+5 -4
View File
@@ -1595,10 +1595,11 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
[5] = { "pet", T["Pet"] },
[6] = { "ptarget", T["Pet-Target"]},
[7] = { "focus", T["Focus"] },
[8] = { "group", T["Group"] },
[9] = { "grouptarget", T["Group-Target"]},
[10] = { "grouppet", T["Group-Pet"] },
[11] = { "raid", T["Raid"] },
[8] = { "focustarget", T["Focus-Target"] },
[9] = { "group", T["Group"] },
[10] = { "grouptarget", T["Group-Target"]},
[11] = { "grouppet", T["Group-Pet"] },
[12] = { "raid", T["Raid"] },
}
CreateGUIEntry(T["Unit Frames"], T["Click Casting"], function()