General Updates and fixed (see commit description)

- Added the 'Remove Battleground Segments' option to the menu that opens when hovering over the erase button.
- Attempt to fix Battleground faction icons, shown on enemy players damage bars.
- Fixed custom scripts showing the damage text too close to the dps text.
- Lib OpenRaid updated.
- Framework Updated.
This commit is contained in:
Tercio Jose
2023-12-21 14:34:21 -03:00
parent 0bd0343034
commit 2efc5a58f8
9 changed files with 116 additions and 32 deletions
+55 -1
View File
@@ -1,6 +1,6 @@
local dversion = 493
local dversion = 495
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary(major, minor)
@@ -523,6 +523,60 @@ function DF.table.find(t, value)
end
end
function DF:GetParentKeyPath(object)
local parentKey = object:GetParentKey()
if (not parentKey) then
return ""
end
local path = "" .. parentKey
local parent = object:GetParent()
while (parent) do
parentKey = parent:GetParentKey()
if (parentKey) then
path = parentKey .. "." .. path
else
return path
end
parent = parent:GetParent()
end
return path
end
function DF:GetParentNamePath(object)
local parent = object
local path = ""
while (parent) do
local parentName = parent:GetName()
if (not parentName) then
local parentOfParent = parent:GetParent()
if (parentOfParent) then
local parentKey = parentOfParent:GetParentKey()
if (parentKey) then
parentName = parentKey
else
return path:gsub("%.$", "")
end
end
end
if (parentName) then
path = parentName .. "." .. path
else
return path:gsub("%.$", "")
end
parent = parent:GetParent()
end
return path:gsub("%.$", "")
end
---get a value from a table using a path, e.g. getfrompath(tbl, "a.b.c") is the same as tbl.a.b.c
---@param t table
---@param path string
+2 -1
View File
@@ -2074,10 +2074,11 @@ function detailsFramework:CreateSimplePanel(parent, width, height, title, frameN
--set the backdrop
if (panelOptions.RoundedCorners) then
local tRoundedCornerPreset = {
roundness = 6,
roundness = 3,
color = {.1, .1, .1, 0.98},
border_color = {.05, .05, .05, 0.834},
use_titlebar = true,
titlebar_height = 26,
}
detailsFramework:AddRoundedCornersToFrame(simplePanel, tRoundedCornerPreset)
else
+1 -1
View File
@@ -43,7 +43,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
end
local major = "LibOpenRaid-1.0"
local CONST_LIB_VERSION = 116
local CONST_LIB_VERSION = 117
if (LIB_OPEN_RAID_MAX_VERSION) then
if (CONST_LIB_VERSION <= LIB_OPEN_RAID_MAX_VERSION) then
@@ -217,6 +217,7 @@ do
}
LIB_OPEN_RAID_ALL_POTIONS = {
[415569] = 1, --Dreamwalker's Healing Potion
[370511] = 1, --Refreshing Healing Potion
[371039] = 1, --Potion of Withering Vitality
[370607] = 1, --Aerated Mana Potion
@@ -229,6 +230,7 @@ do
--spellId of healing from potions
LIB_OPEN_RAID_HEALING_POTIONS = {
[415569] = 1, --Dreamwalker's Healing Potion
[370511] = 1, --Refreshing Healing Potion
[371039] = 1, --Potion of Withering Vitality
[6262] = 1, --Warlock's Healthstone