完成多出修改

修复拾取界面点击无效问题
修复宠物训练界面不显示训练点问题
新增天赋分享到聊天界面
修复飞行界面无法关闭问题
修复术士宠物的显示问题
为天赋界面添加默认数据库支持
框架现在也可自主选择是否启用
玩家框架和目标框架可取消显示3D头像以及透明度修改
背包和银行也添加透明度自定义支持
优化tooltip性能和背包物品显示方式
修复布局模式在ui缩放后不能正常定位的问题
添加硬核模式危险和死亡的工会通报
添加拾取和已拾取的框体
等等
This commit is contained in:
rucky
2026-03-23 10:25:25 +08:00
parent 63337b14d2
commit ec9e3c29d6
34 changed files with 13897 additions and 578 deletions

View File

@@ -1677,20 +1677,31 @@ local function SkinPopupEditBox(popup)
local eb = GetPopupEditBox(popup)
if not eb or eb._sfSkinned then return end
eb._sfSkinned = true
local regions = { eb:GetRegions() }
for _, r in ipairs(regions) do
if r and r:GetObjectType() == "Texture" then
r:SetAlpha(0)
local name = eb:GetName() or ""
if name ~= "" then
for _, suffix in ipairs({"Left", "Middle", "Mid", "Right"}) do
local tex = _G[name .. suffix]
if tex and tex.SetAlpha then tex:SetAlpha(0) end
end
end
eb:SetBackdrop({
local bg = CreateFrame("Frame", nil, eb)
bg:SetPoint("TOPLEFT", eb, "TOPLEFT", -3, 3)
bg:SetPoint("BOTTOMRIGHT", eb, "BOTTOMRIGHT", 3, -3)
bg:SetFrameLevel(math.max((eb:GetFrameLevel() or 1) - 1, 0))
bg:SetBackdrop({
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
tile = true, tileSize = 16, edgeSize = 12,
insets = { left = 3, right = 3, top = 3, bottom = 3 },
})
eb:SetBackdropColor(0.08, 0.06, 0.1, 0.95)
eb:SetBackdropBorderColor(0.5, 0.4, 0.55, 0.8)
bg:SetBackdropColor(0.08, 0.06, 0.1, 0.95)
bg:SetBackdropBorderColor(0.5, 0.4, 0.55, 0.8)
eb._sfBg = bg
if eb.SetTextInsets then eb:SetTextInsets(6, 6, 2, 2) end
if eb.SetTextColor then eb:SetTextColor(1, 1, 1) end
end
local function ResolvePopupFrame(whichKey, dialog)
@@ -4496,7 +4507,7 @@ function SFrames.Chat:CreateContainer()
titleBtn:SetHeight(20)
titleBtn:SetFrameStrata("HIGH")
titleBtn:SetFrameLevel(f:GetFrameLevel() + 20)
titleBtn:RegisterForClicks("LeftButtonUp")
titleBtn:RegisterForClicks("LeftButtonUp", "RightButtonUp")
local titleBtnThrottle = 0
titleBtn:SetScript("OnUpdate", function()
titleBtnThrottle = titleBtnThrottle + arg1
@@ -4506,8 +4517,14 @@ function SFrames.Chat:CreateContainer()
this:SetWidth(tw + 28)
end)
titleBtn:SetScript("OnClick", function()
if SFrames and SFrames.ConfigUI then
SFrames.ConfigUI:OpenUI()
if arg1 == "RightButton" then
if SFrames.Movers and SFrames.Movers.ToggleLayoutMode then
SFrames.Movers:ToggleLayoutMode()
end
else
if SFrames and SFrames.ConfigUI then
SFrames.ConfigUI:OpenUI()
end
end
end)
titleBtn:SetScript("OnEnter", function()
@@ -4516,7 +4533,8 @@ function SFrames.Chat:CreateContainer()
GameTooltip:SetOwner(this, "ANCHOR_BOTTOMRIGHT")
GameTooltip:ClearLines()
GameTooltip:AddLine("Nanami UI 设置", 1, 0.84, 0.94)
GameTooltip:AddLine("点击打开主设置面板", 0.85, 0.85, 0.85)
GameTooltip:AddLine("左键打开主设置面板", 0.85, 0.85, 0.85)
GameTooltip:AddLine("右键开启布局模式", 0.85, 0.85, 0.85)
GameTooltip:Show()
end)
titleBtn:SetScript("OnLeave", function()
@@ -5296,6 +5314,8 @@ function SFrames.Chat:SwitchActiveChatFrame(tab)
if cf then
self:EnforceChatWindowLock(cf)
if cf == activeChatFrame then
if UIFrameFadeRemoveFrame then pcall(UIFrameFadeRemoveFrame, cf) end
cf.fadeInfo = nil
if cf.SetAlpha then cf:SetAlpha(1) end
if cf.EnableMouse then cf:EnableMouse(true) end
if cf.SetFrameLevel and self.frame and self.frame.inner then
@@ -5306,6 +5326,8 @@ function SFrames.Chat:SwitchActiveChatFrame(tab)
self.chatFrameIsCombat = isCombat
self:RefreshChatBounds()
else
if UIFrameFadeRemoveFrame then pcall(UIFrameFadeRemoveFrame, cf) end
cf.fadeInfo = nil
cf:Hide()
if cf.SetAlpha then cf:SetAlpha(0) end
if cf.EnableMouse then cf:EnableMouse(false) end
@@ -6775,6 +6797,11 @@ function SFrames.Chat:Initialize()
end
end
end
if SFrames.Movers and SFrames.Movers.RegisterMover and self.frame then
SFrames.Movers:RegisterMover("ChatFrame", self.frame, "聊天框",
"BOTTOMLEFT", "UIParent", "BOTTOMLEFT", 0, 0)
end
end
function SFrames.Chat:ShowCopyDialog(text)