From 088b8291cf410616baf31347f2e8b254bb9f3746 Mon Sep 17 00:00:00 2001 From: Linae Date: Tue, 4 Jul 2017 22:33:08 +0200 Subject: [PATCH] unitframes: health & power texts --- api/config.lua | 108 +++++++++++++++++++++++++++++++------------ api/unitframes.lua | 85 +++++++++++++++++++++++----------- modules/gui.lua | 99 ++++++++++++++++++++++++++++----------- modules/uf_tukui.lua | 78 +++++++++++++++++++++---------- 4 files changed, 262 insertions(+), 108 deletions(-) diff --git a/api/config.lua b/api/config.lua index 4ccc7b73..d26f20bb 100644 --- a/api/config.lua +++ b/api/config.lua @@ -114,13 +114,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "player", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "player", "clickcast", "0") pfUI:UpdateConfig("unitframes", "player", "faderange", "0") - pfUI:UpdateConfig("unitframes", "player", "txtleft", "unit") - pfUI:UpdateConfig("unitframes", "player", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "player", "txtright", "healthdyn") pfUI:UpdateConfig("unitframes", "player", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "player", "powercolor", "1") pfUI:UpdateConfig("unitframes", "player", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "player", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "player", "txthpleft", "unit") + pfUI:UpdateConfig("unitframes", "player", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "player", "txthpright", "healthdyn") + pfUI:UpdateConfig("unitframes", "player", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "player", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "player", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "player", "showPVPMinimap", "0") pfUI:UpdateConfig("unitframes", "player", "showPVP", "0") @@ -145,14 +148,17 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "target", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "target", "clickcast", "0") pfUI:UpdateConfig("unitframes", "target", "faderange", "0") - pfUI:UpdateConfig("unitframes", "target", "txtleft", "unit") - pfUI:UpdateConfig("unitframes", "target", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "target", "txtright", "healthdyn") pfUI:UpdateConfig("unitframes", "target", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "target", "powercolor", "1") pfUI:UpdateConfig("unitframes", "target", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "target", "classcolor", "1") pfUI:UpdateConfig("unitframes", "target", "animation", "0") + pfUI:UpdateConfig("unitframes", "target", "txthpleft", "unit") + pfUI:UpdateConfig("unitframes", "target", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "target", "txthpright", "healthdyn") + pfUI:UpdateConfig("unitframes", "target", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "target", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "target", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "focus", "visible", "1") pfUI:UpdateConfig("unitframes", "focus", "portrait", "bar") @@ -173,13 +179,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "focus", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "focus", "clickcast", "0") pfUI:UpdateConfig("unitframes", "focus", "faderange", "0") - pfUI:UpdateConfig("unitframes", "focus", "txtleft", "unit") - pfUI:UpdateConfig("unitframes", "focus", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "focus", "txtright", "healthdyn") pfUI:UpdateConfig("unitframes", "focus", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "focus", "powercolor", "1") pfUI:UpdateConfig("unitframes", "focus", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "focus", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "focus", "txthpleft", "unit") + pfUI:UpdateConfig("unitframes", "focus", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "focus", "txthpright", "healthdyn") + pfUI:UpdateConfig("unitframes", "focus", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "focus", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "focus", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "group", "visible", "1") pfUI:UpdateConfig("unitframes", "group", "portrait", "off") @@ -200,14 +209,17 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "group", "debuff_indicator", "1") pfUI:UpdateConfig("unitframes", "group", "clickcast", "0") pfUI:UpdateConfig("unitframes", "group", "faderange", "1") - pfUI:UpdateConfig("unitframes", "group", "txtleft", "unit") - pfUI:UpdateConfig("unitframes", "group", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "group", "txtright", "healthmiss") pfUI:UpdateConfig("unitframes", "group", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "group", "powercolor", "1") pfUI:UpdateConfig("unitframes", "group", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "group", "classcolor", "1") pfUI:UpdateConfig("unitframes", "group", "hide_in_raid", "0") + pfUI:UpdateConfig("unitframes", "group", "txthpleft", "unit") + pfUI:UpdateConfig("unitframes", "group", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "group", "txthpright", "healthmiss") + pfUI:UpdateConfig("unitframes", "group", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "group", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "group", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "grouptarget", "visible", "1") pfUI:UpdateConfig("unitframes", "grouptarget", "portrait", "off") @@ -228,13 +240,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "grouptarget", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "grouptarget", "clickcast", "0") pfUI:UpdateConfig("unitframes", "grouptarget", "faderange", "1") - pfUI:UpdateConfig("unitframes", "grouptarget", "txtleft", "unit") - pfUI:UpdateConfig("unitframes", "grouptarget", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "grouptarget", "txtright", "healthperc") pfUI:UpdateConfig("unitframes", "grouptarget", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "grouptarget", "powercolor", "1") pfUI:UpdateConfig("unitframes", "grouptarget", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "grouptarget", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "grouptarget", "txthpleft", "unit") + pfUI:UpdateConfig("unitframes", "grouptarget", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "grouptarget", "txthpright", "healthperc") + pfUI:UpdateConfig("unitframes", "grouptarget", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "grouptarget", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "grouptarget", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "grouppet", "visible", "1") pfUI:UpdateConfig("unitframes", "grouppet", "portrait", "off") @@ -255,13 +270,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "grouppet", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "grouppet", "clickcast", "0") pfUI:UpdateConfig("unitframes", "grouppet", "faderange", "1") - pfUI:UpdateConfig("unitframes", "grouppet", "txtleft", "unit") - pfUI:UpdateConfig("unitframes", "grouppet", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "grouppet", "txtright", "healthperc") pfUI:UpdateConfig("unitframes", "grouppet", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "grouppet", "powercolor", "1") pfUI:UpdateConfig("unitframes", "grouppet", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "grouppet", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "grouppet", "txthpleft", "unit") + pfUI:UpdateConfig("unitframes", "grouppet", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "grouppet", "txthpright", "healthperc") + pfUI:UpdateConfig("unitframes", "grouppet", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "grouppet", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "grouppet", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "raid", "visible", "1") pfUI:UpdateConfig("unitframes", "raid", "portrait", "off") @@ -282,13 +300,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "raid", "debuff_indicator", "1") pfUI:UpdateConfig("unitframes", "raid", "clickcast", "0") pfUI:UpdateConfig("unitframes", "raid", "faderange", "1") - pfUI:UpdateConfig("unitframes", "raid", "txtleft", "name") - pfUI:UpdateConfig("unitframes", "raid", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "raid", "txtright", "healthmiss") pfUI:UpdateConfig("unitframes", "raid", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "raid", "powercolor", "1") pfUI:UpdateConfig("unitframes", "raid", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "raid", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "raid", "txthpleft", "name") + pfUI:UpdateConfig("unitframes", "raid", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "raid", "txthpright", "healthmiss") + pfUI:UpdateConfig("unitframes", "raid", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "raid", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "raid", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "ttarget", "visible", "1") pfUI:UpdateConfig("unitframes", "ttarget", "portrait", "bar") @@ -309,13 +330,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "ttarget", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "ttarget", "clickcast", "0") pfUI:UpdateConfig("unitframes", "ttarget", "faderange", "0") - pfUI:UpdateConfig("unitframes", "ttarget", "txtleft", "none") - pfUI:UpdateConfig("unitframes", "ttarget", "txtcenter", "name") - pfUI:UpdateConfig("unitframes", "ttarget", "txtright", "none") pfUI:UpdateConfig("unitframes", "ttarget", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "ttarget", "powercolor", "1") pfUI:UpdateConfig("unitframes", "ttarget", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "ttarget", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "ttarget", "txthpleft", "none") + pfUI:UpdateConfig("unitframes", "ttarget", "txthpcenter", "name") + pfUI:UpdateConfig("unitframes", "ttarget", "txthpright", "none") + pfUI:UpdateConfig("unitframes", "ttarget", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "ttarget", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "ttarget", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "pet", "visible", "1") pfUI:UpdateConfig("unitframes", "pet", "portrait", "bar") @@ -336,13 +360,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "pet", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "pet", "clickcast", "0") pfUI:UpdateConfig("unitframes", "pet", "faderange", "0") - pfUI:UpdateConfig("unitframes", "pet", "txtleft", "none") - pfUI:UpdateConfig("unitframes", "pet", "txtcenter", "name") - pfUI:UpdateConfig("unitframes", "pet", "txtright", "none") pfUI:UpdateConfig("unitframes", "pet", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "pet", "powercolor", "1") pfUI:UpdateConfig("unitframes", "pet", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "pet", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "pet", "txthpleft", "none") + pfUI:UpdateConfig("unitframes", "pet", "txthpcenter", "name") + pfUI:UpdateConfig("unitframes", "pet", "txthpright", "none") + pfUI:UpdateConfig("unitframes", "pet", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "pet", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "pet", "txtpowerright", "none") pfUI:UpdateConfig("unitframes", "fallback", "visible", "1") pfUI:UpdateConfig("unitframes", "fallback", "portrait", "bar") @@ -363,13 +390,16 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", "fallback", "debuff_indicator", "0") pfUI:UpdateConfig("unitframes", "fallback", "clickcast", "0") pfUI:UpdateConfig("unitframes", "fallback", "faderange", "0") - pfUI:UpdateConfig("unitframes", "fallback", "txtleft", "unit") - pfUI:UpdateConfig("unitframes", "fallback", "txtcenter", "none") - pfUI:UpdateConfig("unitframes", "fallback", "txtright", "healthdyn") pfUI:UpdateConfig("unitframes", "fallback", "healthcolor", "1") pfUI:UpdateConfig("unitframes", "fallback", "powercolor", "1") pfUI:UpdateConfig("unitframes", "fallback", "levelcolor", "1") pfUI:UpdateConfig("unitframes", "fallback", "classcolor", "1") + pfUI:UpdateConfig("unitframes", "fallback", "txthpleft", "unit") + pfUI:UpdateConfig("unitframes", "fallback", "txthpcenter", "none") + pfUI:UpdateConfig("unitframes", "fallback", "txthpright", "healthdyn") + pfUI:UpdateConfig("unitframes", "fallback", "txtpowerleft", "none") + pfUI:UpdateConfig("unitframes", "fallback", "txtpowercenter", "none") + pfUI:UpdateConfig("unitframes", "fallback", "txtpowerright", "none") pfUI:UpdateConfig("bars", nil, "icon_size", "20") pfUI:UpdateConfig("bars", nil, "background", "1") @@ -570,6 +600,24 @@ function pfUI:MigrateConfig() if not strfind(pfUI_config.global.font_combat, "\\") then pfUI_config.global.font_combat = "Interface\\AddOns\\pfUI\\fonts\\" .. pfUI_config.global.font_combat .. ".ttf" end + + -- migrate unitframe texts + local unitframes = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "fallback" } + + for _, unitframe in pairs(unitframes) do + if pfUI_config.unitframes[unitframe].txtleft then + pfUI_config.unitframes[unitframe].txthpleft = pfUI_config.unitframes[unitframe].txtleft + pfUI_config.unitframes[unitframe].txtleft = nil + end + if pfUI_config.unitframes[unitframe].txtcenter then + pfUI_config.unitframes[unitframe].txthpcenter = pfUI_config.unitframes[unitframe].txtcenter + pfUI_config.unitframes[unitframe].txtcenter = nil + end + if pfUI_config.unitframes[unitframe].txtright then + pfUI_config.unitframes[unitframe].txthpright = pfUI_config.unitframes[unitframe].txtright + pfUI_config.unitframes[unitframe].txtright = nil + end + end end pfUI_config.version = pfUI.version.string diff --git a/api/unitframes.lua b/api/unitframes.lua index f9e315d5..08796864 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -89,32 +89,59 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick) f.power.bar:SetAllPoints(f.power) f.power.bar:SetMinMaxValues(0, 100) - f.leftText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") - f.leftText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") - f.leftText:SetJustifyH("LEFT") - f.leftText:SetFontObject(GameFontWhite) - f.leftText:SetParent(f.hp.bar) - f.leftText:ClearAllPoints() - f.leftText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1) - f.leftText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0) + f.hpLeftText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") + f.hpLeftText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") + f.hpLeftText:SetJustifyH("LEFT") + f.hpLeftText:SetFontObject(GameFontWhite) + f.hpLeftText:SetParent(f.hp.bar) + f.hpLeftText:ClearAllPoints() + f.hpLeftText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1) + f.hpLeftText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0) - f.rightText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") - f.rightText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") - f.rightText:SetJustifyH("RIGHT") - f.rightText:SetFontObject(GameFontWhite) - f.rightText:SetParent(f.hp.bar) - f.rightText:ClearAllPoints() - f.rightText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1) - f.rightText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0) + f.hpRightText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") + f.hpRightText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") + f.hpRightText:SetJustifyH("RIGHT") + f.hpRightText:SetFontObject(GameFontWhite) + f.hpRightText:SetParent(f.hp.bar) + f.hpRightText:ClearAllPoints() + f.hpRightText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1) + f.hpRightText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0) - f.centerText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") - f.centerText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") - f.centerText:SetJustifyH("CENTER") - f.centerText:SetFontObject(GameFontWhite) - f.centerText:SetParent(f.hp.bar) - f.centerText:ClearAllPoints() - f.centerText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1) - f.centerText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0) + f.hpCenterText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") + f.hpCenterText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") + f.hpCenterText:SetJustifyH("CENTER") + f.hpCenterText:SetFontObject(GameFontWhite) + f.hpCenterText:SetParent(f.hp.bar) + f.hpCenterText:ClearAllPoints() + f.hpCenterText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1) + f.hpCenterText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0) + + f.powerLeftText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") + f.powerLeftText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") + f.powerLeftText:SetJustifyH("LEFT") + f.powerLeftText:SetFontObject(GameFontWhite) + f.powerLeftText:SetParent(f.power.bar) + f.powerLeftText:ClearAllPoints() + f.powerLeftText:SetPoint("TOPLEFT",f.power.bar, "TOPLEFT", 2*default_border, 1) + f.powerLeftText:SetPoint("BOTTOMRIGHT",f.power.bar, "BOTTOMRIGHT", -2*default_border, 0) + + f.powerRightText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") + f.powerRightText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") + f.powerRightText:SetJustifyH("RIGHT") + f.powerRightText:SetFontObject(GameFontWhite) + f.powerRightText:SetParent(f.power.bar) + f.powerRightText:ClearAllPoints() + f.powerRightText:SetPoint("TOPLEFT",f.power.bar, "TOPLEFT", 2*default_border, 1) + f.powerRightText:SetPoint("BOTTOMRIGHT",f.power.bar, "BOTTOMRIGHT", -2*default_border, 0) + + f.powerCenterText = f:CreateFontString("Status", "OVERLAY", "GameFontNormalSmall") + f.powerCenterText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE") + f.powerCenterText:SetJustifyH("CENTER") + f.powerCenterText:SetFontObject(GameFontWhite) + f.powerCenterText:SetParent(f.power.bar) + f.powerCenterText:ClearAllPoints() + f.powerCenterText:SetPoint("TOPLEFT",f.power.bar, "TOPLEFT", 2*default_border, 1) + f.powerCenterText:SetPoint("BOTTOMRIGHT",f.power.bar, "BOTTOMRIGHT", -2*default_border, 0) f:RegisterForClicks('LeftButtonUp', 'RightButtonUp', 'MiddleButtonUp', 'Button4Up', 'Button5Up') @@ -811,9 +838,13 @@ function pfUI.uf:RefreshUnit(unit, component) unit.power.bar:SetStatusBarColor(pr, pg, pb) if UnitName(unit.label..unit.id) then - unit.leftText:SetText(pfUI.uf:GetStatusValue(unit, "left")) - unit.centerText:SetText(pfUI.uf:GetStatusValue(unit, "center")) - unit.rightText:SetText(pfUI.uf:GetStatusValue(unit, "right")) + unit.hpLeftText:SetText(pfUI.uf:GetStatusValue(unit, "hpleft")) + unit.hpCenterText:SetText(pfUI.uf:GetStatusValue(unit, "hpcenter")) + unit.hpRightText:SetText(pfUI.uf:GetStatusValue(unit, "hpright")) + + unit.powerLeftText:SetText(pfUI.uf:GetStatusValue(unit, "powerleft")) + unit.powerCenterText:SetText(pfUI.uf:GetStatusValue(unit, "powercenter")) + unit.powerRightText:SetText(pfUI.uf:GetStatusValue(unit, "powerright")) if UnitIsTapped(unit.label .. unit.id) and not UnitIsTappedByPlayer(unit.label .. unit.id) then unit.hp.bar:SetStatusBarColor(.5,.5,.5,.5) diff --git a/modules/gui.lua b/modules/gui.lua index de0fcc10..04f19d36 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -893,13 +893,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.player, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.player, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.player, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.player, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.player, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.player, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.player, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.player, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.player, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.player, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.player, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.player, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.player, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.player, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.player, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.player, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -928,13 +933,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.target, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.target, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.target, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.target, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.target, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.target, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.target, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.target, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.target, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.target, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.target, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.target, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.target, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.target, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.target, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.target, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -962,13 +972,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.ttarget, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.ttarget, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.ttarget, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.ttarget, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.ttarget, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.ttarget, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.ttarget, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.ttarget, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.ttarget, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.ttarget, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.ttarget, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.ttarget, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.ttarget, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.ttarget, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.ttarget, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.ttarget, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -996,13 +1011,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.pet, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.pet, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.pet, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.pet, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.pet, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.pet, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.pet, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.pet, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.pet, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.pet, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.pet, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.pet, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.pet, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.pet, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.pet, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.pet, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -1030,13 +1050,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.focus, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.focus, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.focus, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.focus, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.focus, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.focus, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.focus, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.focus, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.focus, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.focus, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.focus, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.focus, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.focus, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.focus, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.focus, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.focus, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -1086,13 +1111,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.raid, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.raid, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.raid, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.raid, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.raid, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.raid, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.raid, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.raid, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.raid, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.raid, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.raid, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.raid, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.raid, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.raid, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.raid, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.raid, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -1120,14 +1150,19 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.group, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.group, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.group, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.group, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.group, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.group, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Hide Group Frames When In A Raid"], C.unitframes.group, "hide_in_raid", "checkbox") CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.group, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.group, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.group, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.group, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.group, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.group, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.group, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.group, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.group, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.group, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -1155,13 +1190,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.grouptarget, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.grouptarget, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.grouptarget, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.grouptarget, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.grouptarget, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.grouptarget, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.grouptarget, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.grouptarget, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.grouptarget, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.grouptarget, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.grouptarget, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.grouptarget, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.grouptarget, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.grouptarget, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.grouptarget, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.grouptarget, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) @@ -1189,13 +1229,18 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Enable Debuff Indicators"], C.unitframes.grouppet, "debuff_indicator", "checkbox") CreateConfig(this, T["Enable Clickcast"], C.unitframes.grouppet, "clickcast", "checkbox") CreateConfig(this, T["Enable Range Fading"], C.unitframes.grouppet, "faderange", "checkbox") - CreateConfig(this, T["Left Text"], C.unitframes.grouppet, "txtleft", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Center Text"], C.unitframes.grouppet, "txtcenter", "dropdown", dropdown_unitframes_text) - CreateConfig(this, T["Right Text"], C.unitframes.grouppet, "txtright", "dropdown", dropdown_unitframes_text) CreateConfig(this, T["Enable Health Color in Text"], C.unitframes.grouppet, "healthcolor", "checkbox") CreateConfig(this, T["Enable Power Color in Text"], C.unitframes.grouppet, "powercolor", "checkbox") CreateConfig(this, T["Enable Level Color in Text"], C.unitframes.grouppet, "levelcolor", "checkbox") CreateConfig(this, T["Enable Class Color in Text"], C.unitframes.grouppet, "classcolor", "checkbox") + CreateConfig(this, T["Health Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.grouppet, "txthpleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.grouppet, "txthpcenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.grouppet, "txthpright", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Power Bar Texts"], nil, nil, "header") + CreateConfig(this, T["Left Text"], C.unitframes.grouppet, "txtpowerleft", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Center Text"], C.unitframes.grouppet, "txtpowercenter", "dropdown", dropdown_unitframes_text) + CreateConfig(this, T["Right Text"], C.unitframes.grouppet, "txtpowerright", "dropdown", dropdown_unitframes_text) this.setup = true end end) diff --git a/modules/uf_tukui.lua b/modules/uf_tukui.lua index 4153fa80..52238cbc 100644 --- a/modules/uf_tukui.lua +++ b/modules/uf_tukui.lua @@ -21,20 +21,35 @@ pfUI:RegisterModule("uf_tukui", function () pfUI.uf.player.caption:SetPoint("BOTTOMRIGHT",pfUI.uf.player, "BOTTOMRIGHT",0, 0) pfUI.uf.player.caption:SetPoint("BOTTOMLEFT",pfUI.uf.player, "BOTTOMLEFT",0, 0) - pfUI.uf.player.leftText:SetParent(pfUI.uf.player.caption) - pfUI.uf.player.leftText:ClearAllPoints() - pfUI.uf.player.leftText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) - pfUI.uf.player.leftText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) + pfUI.uf.player.hpLeftText:SetParent(pfUI.uf.player.caption) + pfUI.uf.player.hpLeftText:ClearAllPoints() + pfUI.uf.player.hpLeftText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) + pfUI.uf.player.hpLeftText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) - pfUI.uf.player.centerText:SetParent(pfUI.uf.player.caption) - pfUI.uf.player.centerText:ClearAllPoints() - pfUI.uf.player.centerText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) - pfUI.uf.player.centerText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) + pfUI.uf.player.hpCenterText:SetParent(pfUI.uf.player.caption) + pfUI.uf.player.hpCenterText:ClearAllPoints() + pfUI.uf.player.hpCenterText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) + pfUI.uf.player.hpCenterText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) - pfUI.uf.player.rightText:SetParent(pfUI.uf.player.caption) - pfUI.uf.player.rightText:ClearAllPoints() - pfUI.uf.player.rightText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) - pfUI.uf.player.rightText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) + pfUI.uf.player.hpRightText:SetParent(pfUI.uf.player.caption) + pfUI.uf.player.hpRightText:ClearAllPoints() + pfUI.uf.player.hpRightText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) + pfUI.uf.player.hpRightText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) + + pfUI.uf.player.powerLeftText:SetParent(pfUI.uf.player.caption) + pfUI.uf.player.powerLeftText:ClearAllPoints() + pfUI.uf.player.powerLeftText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) + pfUI.uf.player.powerLeftText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) + + pfUI.uf.player.powerCenterText:SetParent(pfUI.uf.player.caption) + pfUI.uf.player.powerCenterText:ClearAllPoints() + pfUI.uf.player.powerCenterText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) + pfUI.uf.player.powerCenterText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) + + pfUI.uf.player.powerRightText:SetParent(pfUI.uf.player.caption) + pfUI.uf.player.powerRightText:ClearAllPoints() + pfUI.uf.player.powerRightText:SetPoint("TOPLEFT",pfUI.uf.player.caption, "TOPLEFT", default_border, 1) + pfUI.uf.player.powerRightText:SetPoint("BOTTOMRIGHT",pfUI.uf.player.caption, "BOTTOMRIGHT", -default_border, 0) pfUI.castbar.player:SetAllPoints(pfUI.uf.player.caption) UpdateMovable(pfUI.castbar.player) @@ -50,20 +65,35 @@ pfUI:RegisterModule("uf_tukui", function () pfUI.uf.target.caption:SetPoint("BOTTOMRIGHT",pfUI.uf.target,"BOTTOMRIGHT", 0, 0) pfUI.uf.target.caption:SetPoint("BOTTOMLEFT",pfUI.uf.target,"BOTTOMLEFT", 0, 0) - pfUI.uf.target.leftText:SetParent(pfUI.uf.target.caption) - pfUI.uf.target.leftText:ClearAllPoints() - pfUI.uf.target.leftText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) - pfUI.uf.target.leftText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) + pfUI.uf.target.hpLeftText:SetParent(pfUI.uf.target.caption) + pfUI.uf.target.hpLeftText:ClearAllPoints() + pfUI.uf.target.hpLeftText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) + pfUI.uf.target.hpLeftText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) - pfUI.uf.target.centerText:SetParent(pfUI.uf.target.caption) - pfUI.uf.target.centerText:ClearAllPoints() - pfUI.uf.target.centerText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) - pfUI.uf.target.centerText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) + pfUI.uf.target.hpCenterText:SetParent(pfUI.uf.target.caption) + pfUI.uf.target.hpCenterText:ClearAllPoints() + pfUI.uf.target.hpCenterText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) + pfUI.uf.target.hpCenterText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) - pfUI.uf.target.rightText:SetParent(pfUI.uf.target.caption) - pfUI.uf.target.rightText:ClearAllPoints() - pfUI.uf.target.rightText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) - pfUI.uf.target.rightText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) + pfUI.uf.target.hpRightText:SetParent(pfUI.uf.target.caption) + pfUI.uf.target.hpRightText:ClearAllPoints() + pfUI.uf.target.hpRightText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) + pfUI.uf.target.hpRightText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) + + pfUI.uf.target.powerLeftText:SetParent(pfUI.uf.target.caption) + pfUI.uf.target.powerLeftText:ClearAllPoints() + pfUI.uf.target.powerLeftText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) + pfUI.uf.target.powerLeftText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) + + pfUI.uf.target.powerCenterText:SetParent(pfUI.uf.target.caption) + pfUI.uf.target.powerCenterText:ClearAllPoints() + pfUI.uf.target.powerCenterText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) + pfUI.uf.target.powerCenterText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) + + pfUI.uf.target.powerRightText:SetParent(pfUI.uf.target.caption) + pfUI.uf.target.powerRightText:ClearAllPoints() + pfUI.uf.target.powerRightText:SetPoint("TOPLEFT",pfUI.uf.target.caption, "TOPLEFT", default_border, 1) + pfUI.uf.target.powerRightText:SetPoint("BOTTOMRIGHT",pfUI.uf.target.caption, "BOTTOMRIGHT", -default_border, 0) pfUI.castbar.target:SetAllPoints(pfUI.uf.target.caption) UpdateMovable(pfUI.castbar.target)