完成多出修改
修复拾取界面点击无效问题 修复宠物训练界面不显示训练点问题 新增天赋分享到聊天界面 修复飞行界面无法关闭问题 修复术士宠物的显示问题 为天赋界面添加默认数据库支持 框架现在也可自主选择是否启用 玩家框架和目标框架可取消显示3D头像以及透明度修改 背包和银行也添加透明度自定义支持 优化tooltip性能和背包物品显示方式 修复布局模式在ui缩放后不能正常定位的问题 添加硬核模式危险和死亡的工会通报 添加拾取和已拾取的框体 等等
This commit is contained in:
@@ -20,7 +20,9 @@ function SFrames:GetBuffName(buffIndex)
|
||||
SFrames.Tooltip:ClearLines()
|
||||
SFrames.Tooltip:SetPlayerBuff(buffIndex)
|
||||
local nameObj = SFramesScanTooltipTextLeft1
|
||||
return nameObj and nameObj:GetText()
|
||||
local name = nameObj and nameObj:GetText()
|
||||
SFrames.Tooltip:Hide()
|
||||
return name
|
||||
end
|
||||
|
||||
function SFrames:IsBuffHidden(buffIndex)
|
||||
@@ -239,13 +241,19 @@ end
|
||||
|
||||
function MB:ApplyPosition()
|
||||
if not self.buffContainer then return end
|
||||
local db = GetDB()
|
||||
local pos = db.position or "TOPRIGHT"
|
||||
local x = BASE_X + (db.offsetX or 0)
|
||||
local y = BASE_Y + (db.offsetY or 0)
|
||||
|
||||
self.buffContainer:ClearAllPoints()
|
||||
self.buffContainer:SetPoint(pos, UIParent, pos, x, y)
|
||||
local saved = SFramesDB and SFramesDB.Positions and SFramesDB.Positions["MinimapBuffs"]
|
||||
if saved and saved.point and saved.relativePoint then
|
||||
self.buffContainer:ClearAllPoints()
|
||||
self.buffContainer:SetPoint(saved.point, UIParent, saved.relativePoint, saved.xOfs or 0, saved.yOfs or 0)
|
||||
else
|
||||
local db = GetDB()
|
||||
local pos = db.position or "TOPRIGHT"
|
||||
local x = BASE_X + (db.offsetX or 0)
|
||||
local y = BASE_Y + (db.offsetY or 0)
|
||||
self.buffContainer:ClearAllPoints()
|
||||
self.buffContainer:SetPoint(pos, UIParent, pos, x, y)
|
||||
end
|
||||
|
||||
self:AnchorDebuffs()
|
||||
end
|
||||
@@ -478,6 +486,7 @@ function MB:UpdateDebuffs()
|
||||
SFrames.Tooltip:ClearLines()
|
||||
SFrames.Tooltip:SetPlayerBuff(buffIndex)
|
||||
local dTypeStr = SFramesScanTooltipTextRight1 and SFramesScanTooltipTextRight1:GetText()
|
||||
SFrames.Tooltip:Hide()
|
||||
if dTypeStr and dTypeStr ~= "" then debuffType = dTypeStr end
|
||||
|
||||
local c = DEBUFF_TYPE_COLORS[debuffType] or DEBUFF_DEFAULT_COLOR
|
||||
@@ -662,4 +671,16 @@ function MB:Initialize()
|
||||
end)
|
||||
|
||||
self:UpdateBuffs()
|
||||
|
||||
if SFrames.Movers and SFrames.Movers.RegisterMover then
|
||||
if self.buffContainer then
|
||||
SFrames.Movers:RegisterMover("MinimapBuffs", self.buffContainer, "Buff",
|
||||
"TOPRIGHT", "UIParent", "TOPRIGHT", BASE_X + (db.offsetX or 0), BASE_Y + (db.offsetY or 0),
|
||||
function() MB:AnchorDebuffs() end)
|
||||
end
|
||||
if self.debuffContainer then
|
||||
SFrames.Movers:RegisterMover("MinimapDebuffs", self.debuffContainer, "Debuff",
|
||||
"TOPRIGHT", "UIParent", "TOPRIGHT", BASE_X + (db.offsetX or 0), BASE_Y - 50)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user