mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
tttarget: add tttarget unitframe and config
This commit is contained in:
+15
-2
@@ -285,6 +285,19 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "txthpright", "none")
|
||||
pfUI:UpdateConfig("unitframes", "ttarget", "overhealperc", "10")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "visible", "0")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "width", "100")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "height", "17")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "pheight", "3")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "buffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "buffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "debuffs", "off")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "debuffsize", "16")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "txthpleft", "none")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "txthpcenter", "name")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "txthpright", "none")
|
||||
pfUI:UpdateConfig("unitframes", "tttarget", "overhealperc", "10")
|
||||
|
||||
pfUI:UpdateConfig("unitframes", "pet", "happinessicon", "0")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "width", "100")
|
||||
pfUI:UpdateConfig("unitframes", "pet", "height", "14")
|
||||
@@ -308,7 +321,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", "ptarget", "txthpright", "none")
|
||||
pfUI:UpdateConfig("unitframes", "ptarget", "overhealperc", "10")
|
||||
|
||||
local ufs = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "ptarget", "fallback" }
|
||||
local ufs = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "ptarget", "fallback", "tttarget" }
|
||||
for _, unit in pairs(ufs) do
|
||||
pfUI:UpdateConfig("unitframes", unit, "visible", "1")
|
||||
pfUI:UpdateConfig("unitframes", unit, "showPVP", "0")
|
||||
@@ -757,7 +770,7 @@ function pfUI:MigrateConfig()
|
||||
|
||||
-- migrating glow settings (> 3.5.1)
|
||||
if checkversion(3, 5, 0) then
|
||||
local common = { "player", "target", "ttarget", "pet", "ptarget"}
|
||||
local common = { "player", "target", "ttarget", "pet", "ptarget", "tttarget"}
|
||||
for _, unitframe in pairs(common) do
|
||||
if pfUI_config.appearance.infight.group == "1" then
|
||||
pfUI_config.unitframes[unitframe].glowcombat = "1"
|
||||
|
||||
+1
-1
@@ -1187,7 +1187,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
||||
local component = component or ""
|
||||
|
||||
-- don't update scanner activity
|
||||
if unit.label == "target" or unit.label == "targettarget" then
|
||||
if unit.label == "target" or unit.label == "targettarget" or unit.label == "targettargettarget" then
|
||||
if pfScanActive == true then return end
|
||||
end
|
||||
|
||||
|
||||
Vendored
+14
@@ -137,6 +137,13 @@ f:SetScript("OnEvent", function()
|
||||
["pspace"] = "-1",
|
||||
["width"] = "125",
|
||||
},
|
||||
["tttarget"] = {
|
||||
["portrait"] = "off",
|
||||
["pheight"] = "6",
|
||||
["height"] = "16",
|
||||
["pspace"] = "-1",
|
||||
["width"] = "125",
|
||||
},
|
||||
["ptarget"] = {
|
||||
["portrait"] = "off",
|
||||
["pheight"] = "-1",
|
||||
@@ -198,6 +205,13 @@ f:SetScript("OnEvent", function()
|
||||
["width"] = "125",
|
||||
["pheight"] = "6",
|
||||
},
|
||||
["tttarget"] = {
|
||||
["portrait"] = "off",
|
||||
["height"] = "16",
|
||||
["pspace"] = "-1",
|
||||
["width"] = "125",
|
||||
["pheight"] = "6",
|
||||
},
|
||||
["ptarget"] = {
|
||||
["portrait"] = "off",
|
||||
["height"] = "8",
|
||||
|
||||
Vendored
+1
@@ -577,6 +577,7 @@ pfUI_translation["enUS"] = {
|
||||
["Target Castbar"] = nil,
|
||||
["Target Debuff Bar"] = nil,
|
||||
["Target-Target"] = nil,
|
||||
["Target-Target-Target"] = nil,
|
||||
["Text Color"] = nil,
|
||||
["Text Colors"] = nil,
|
||||
["The addon \"|cff33ffcc%s|r\" doesn't work with pfUI and has been disabled."] = nil,
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<Include file="..\modules\target.lua"/>
|
||||
<Include file="..\modules\combopoints.lua"/>
|
||||
<Include file="..\modules\targettarget.lua"/>
|
||||
<Include file="..\modules\targettargettarget.lua"/>
|
||||
<Include file="..\modules\pet.lua"/>
|
||||
<Include file="..\modules\group.lua"/>
|
||||
<Include file="..\modules\raid.lua"/>
|
||||
|
||||
+5
-3
@@ -1505,9 +1505,10 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
||||
[1] = { "player", T["Player"] },
|
||||
[2] = { "target", T["Target"] },
|
||||
[3] = { "ttarget", T["Target-Target"]},
|
||||
[4] = { "pet", T["Pet"] },
|
||||
[5] = { "ptarget", T["Pet-Target"]},
|
||||
[6] = { "focus", T["Focus"] },
|
||||
[4] = { "tttarget", T["Target-Target-Target"]},
|
||||
[5] = { "pet", T["Pet"] },
|
||||
[6] = { "ptarget", T["Pet-Target"]},
|
||||
[7] = { "focus", T["Focus"] },
|
||||
},
|
||||
|
||||
["gf"] = {
|
||||
@@ -1527,6 +1528,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
||||
CreateGUIEntry(label == "uf" and T["Unit Frames"] or T["Group Frames"], t, function()
|
||||
-- link Update tables
|
||||
U.ttarget = U["targettarget"]
|
||||
U.tttarget = U["targettargettarget"]
|
||||
U.ptarget = U["pettarget"]
|
||||
U.grouptarget = U["group"]
|
||||
U.grouppet = U["group"]
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
pfUI:RegisterModule("targettargettarget", "vanilla:tbc", function ()
|
||||
-- do not go further on disabled UFs
|
||||
if C.unitframes.disable == "1" then return end
|
||||
|
||||
pfUI.uf.targettargettarget = pfUI.uf:CreateUnitFrame("TargetTargetTarget", nil, C.unitframes.tttarget, .2)
|
||||
pfUI.uf.targettargettarget:UpdateFrameSize()
|
||||
pfUI.uf.targettargettarget:SetPoint("BOTTOM", UIParent , "BOTTOM", 0, 200)
|
||||
UpdateMovable(pfUI.uf.targettargettarget)
|
||||
end)
|
||||
+7
-6
@@ -21,12 +21,13 @@ pfUI:RegisterModule("unlock", "vanilla:tbc", function ()
|
||||
-- frame labels and their config section relation
|
||||
local frame_configs = {
|
||||
-- unitframes
|
||||
["Player"] = { T["Unit Frames"], T["Player"] },
|
||||
["Target"] = { T["Unit Frames"], T["Target"] },
|
||||
["TargetTarget"] = { T["Unit Frames"], T["Target-Target"] },
|
||||
["Pet"] = { T["Unit Frames"], T["Pet"] },
|
||||
["PetTarget"] = { T["Unit Frames"], T["Pet-Target"] },
|
||||
["Focus"] = { T["Unit Frames"], T["Focus"] },
|
||||
["Player"] = { T["Unit Frames"], T["Player"] },
|
||||
["Target"] = { T["Unit Frames"], T["Target"] },
|
||||
["TargetTarget"] = { T["Unit Frames"], T["Target-Target"] },
|
||||
["TargetTargetTarget"] = { T["Unit Frames"], T["Target-Target-Target"] },
|
||||
["Pet"] = { T["Unit Frames"], T["Pet"] },
|
||||
["PetTarget"] = { T["Unit Frames"], T["Pet-Target"] },
|
||||
["Focus"] = { T["Unit Frames"], T["Focus"] },
|
||||
|
||||
-- combopoints
|
||||
["Combo%d"] = { T["Unit Frames"], T["General"] },
|
||||
|
||||
Reference in New Issue
Block a user